condition on endogenous variables in GAMS

I am trying to model this problem: x is a positive and nonzero parameter, y is a nonnegative integer variable, and z is a binary variable. I'd like to model this condition in a linear model in GAMS:

z=1 if y>0 & x>y and z=0 otherwise

I appreciate any help or idea on modeling this problem.

Thanks,



Read more here: https://stackoverflow.com/questions/66995417/condition-on-endogenous-variables-in-gams

Content Attribution

This content was originally published by Mary at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: