Re: how to control the number of variables
Posted: Tue Mar 14, 2017 10:11 pm
Hi, the final number of variables depends on the constraints.
Forum for questions on the use of GAMS
https://forum.gamsworld.org/
Code: Select all
sets A /1*5/
A1(A) /2,3/
variable d,t;
equation Q,dummy;
Q(A1).. d(a1) =E= 0;
dummy.. t=l=2;
model p /all/;
solve p using lp maximizing t