Page 1 of 1

Question about max function

Posted: Tue Jan 22, 2019 3:34 pm
by alonzo
Hello,

I would like to describe the below expression in the GAMS model.

y_i = max (0, x_i - capacity) for all i in I

- Both y_i and x_i are positive decision variables.

- If x_i >= capacity then y_i should be 0. Otherwise, y_i is equal to (x_i - capacity).

Would you please let me know how to do it?

Thank you for all your comments in advance.

Thanks