Hi,
Could you please to help me how to solve my problem:
Sets t time /t1*t5/;
Parameter o(t) /t1=28,t2=28,t3=28,t4=28,t5=28/;
Parameter q(t) /t1=0.5,t2=0.5,t3=0.5,t4=0.5,t5=0.5/;
Parameter S(t) /t1=1900,t2=1900,t3=1900,t4=2000,t5=2000/;
Scalar E /1300/;
Scalar H /1600152/ ;
Scalar A /256/;
Scalar I_res /20/;
scalar Io /22/;
Variables I(t),z(t),k(t),obj;
Binary variable Y(t);
How to write on the “loop” and “if statement” when I have equation:
I(t)=Io+((q(t)AS(t)(o(t)-Io)/H))-((ES(t)*Y(t))/H);
J(t)=sum(I(t)-I_res)^2
J(t)=Sumk(t)
k=1 if J(t)>25
k=1 if J(t)<20
Else k=0
Please and thank so much
Marwan
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.