Dear all,
I am trying to model a situation, x1(t) = f(t) when f(t) >= 200, otherwise x1(t) = 0, where x1, x2, and f are variables.
I am not sure how to do this in GAMS. It will be a big help if someone can help me with correcting codes in the attached toy problem . Thanks in advance!
Kind regards,
David
BigM formulation Topic is solved
Re: BigM formulation
Does not look like that you are struggling with the GAMS syntax, more the logical stuff. I have attached a model that does what you ask for. Be sure you understand the point about implication of f<200 => y=0 and equivalence f<200 <=> y=0 and the requirement to have the equation eq1x in the model or not.
Hope this helps,
-Michael
Hope this helps,
-Michael
Re: BigM formulation
Thanks a lot for sharing codes and most importantly explaining the codes!
Kind regards,
Rofice
Kind regards,
Rofice