Hello everyone I am new to gams and I have some very prozaic issue.
So, in my MILP model I have defined a variable : D(s,t)
and I want to write an equation that will make something like :
(for t=4) : D(s,1)+D(s,2)+D(s,3)+D(s,4) =g=30
(for t=96) : D(s,1)+D(s,2)+D(s,3)+D(s,4)+...D(s,96) =g= 30
but what I receive is not what I want.
(for t=4) : D(s,4) =g= 30
(for t=96): D(s,96)=g= 30
How to change this equation to obtain a sum of the all elements ?
limitP1(s,t)$(P1(s)).. sum((tt), D(state,time))=g=30 ;
Problems with modeling
2 posts • Page 1 of 1