Search found 4 matches

by alonzo
5 years ago
Forum: Modeling
Topic: Question about max function
Replies: 0
Views: 1659

Question about max function

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? ...
by alonzo
5 years ago
Forum: Modeling
Topic: Logical Constraints for Counting
Replies: 1
Views: 4178

Logical Constraints for Counting

Hello all, I would like to know how to write logical constraints for counting in GAMS. I know CPLEX provides logical constraints . First example, I have three variables and at least two of three variables must be greater than 20. Then following CPLEX constraint describes above idea. (x[0] >= 20) + (...
by alonzo
6 years ago
Forum: Syntax
Topic: Operator for strictly less (Greater) than
Replies: 2
Views: 2786

Operator for strictly less (Greater) than

Hello All, I am GAMS beginner and I would like to know how to express strictly less than Right Hand Side (RHS). According to tutorial, =l= operator expresses less than or equal to RHS. However, I can't find operator showing strictly less than RHS, i.e. x1+x2 < 7 Thank you for all your help in advanc...