* JNI allows using ASL via the C++ API
* The JaCoP driver can be used as an example
* Initialization is tricky on Windows (delay loading of jvm.dll,
check installation path in registry, ...)
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];