0

I have a problem with my model in GAMS. I have two variables iand k for the same class of products, so that they are alias. In my model is a restriction for which iand k have to be unequal. I'm not sure how to write this... The code of the restriction looks as follow:

NB6(i,k,t)..
ST(k,t) =g= ET(i,t) - (1-GAM(i,k,t))
;

tdescribes a time variable. Can you help me to set the parameters iand kin that way, that they are unequal? Or do you need some more code? Thank you very much!

njb
  • 1
  • 1

1 Answers1

0

Try this:

NB6(i,k,t)$(not sameAs(i,k))..
ST(k,t) =g= ET(i,t) - (1-GAM(i,k,t))
;

More info about this topic can be found here.

Lutz
  • 2,197
  • 1
  • 10
  • 12