how to add an equation to indice

Problems with modeling
Post Reply
dsuur
User
User
Posts: 1
Joined: 4 years ago

how to add an equation to indice

Post by dsuur »

hello,

I'm new in gams trying to implement the fallowing toy model.

set c(e,e);
c(e,e) = not sameas(e,e);
set d(t,t);
d(t,t) = not sameas(t,t);

binary variables
x(e,t)
delta(e,e,i);
delta.l(e,e,i) = 0;

I have 2 binary variables. I assigned delta to 0 initially.

logc(c(e,e),d(t,t))..x(e,t)+x(e,t)-1=l=delta(e,e,i);

for the " i " I need an equation like i=t-t

How can I do that?
Post Reply