Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.
Hi,
sub.mod
subject to { x<=2; }
and then the main.mod
dvar int x; maximize x; subject to { x<=3; } include "sub.mod"; execute { writeln("x=",x); }
dvar int x;
maximize x; subject to { x<=3; }
include "sub.mod";
execute { writeln("x=",x); }
gives
x=2
which shows how easy it is to add additional constraints through include
regards