Repititive equations over time

Problems with syntax of GAMS
Post Reply
ikeato
User
User
Posts: 10
Joined: 6 years ago

Repititive equations over time

Post by ikeato »

Hi,

Am writing a code where I have to cater for when time is 1 and the next equation is supposed to be when t is 1 plus t =2, and it follows where when the next equation is when t=1 plus when t=2 plus when t=3.

Below is the equation:

set t periods /1*3/

Prece6cons1(t).. SW*sum((b,i,j,Fpr),deff(b,t,i,j,Fpr)*xa(b,i,j,Fpr,t))
+ sum((s,j,Fpr),dseo2f(s,j,t,Fpr)*xsb(s,j,Fpr,t))- sum(L22, Cd1(L22)* y(L22,t)) =g=0


Regards,
Post Reply