Map AMPL expressions into the most efficient solver equivalents.
Examples:
*numberof
with constant values IloDistribute
(ilogcp) usenumberof
option
* if *logical-expr* then 1 (else 0)
Disjunctive constraint:
subject to Multi_Min_Ship {i in ORIG, j in DEST}:
sum {p in PROD} Trans[i,j,p] = 0 or
minload <= sum {p in PROD} Trans[i,j,p] <= limit[i,j];
Implication:
subject to Multi_Min_Ship {i in ORIG, j in DEST}:
sum {p in PROD} Trans[i,j,p] > 0 ==>
minload <= sum {p in PROD} Trans[i,j,p] <= limit[i,j];