Question about max function

Problems with modeling
Post Reply
alonzo
User
User
Posts: 4
Joined: 11 months ago

Question about max function

Post by alonzo » 3 months ago

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

Post Reply