Hello Andy!
But I want it is set to 1 if sum{i in I} x[i,j] >= demand[j]
You might try something like:
# Big M, use the smallest possible value.
param M := 1e6;
# Binary
var b[j in J] binary;
s.t. gt_demand{j in J} :
sum{i in I} x[i,j] - demand[j] - M * b[j] <= 0;
Best regards
Xypron
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk
