Search found 2 matches

by jonkaneshiro
7 years ago
Forum: Modeling
Topic: Conditions in equations (Making a decision variable 0, if it is not greater than a particular value)
Replies: 1
Views: 2965

Conditions in equations (Making a decision variable 0, if it is not greater than a particular value)

Hello, I am trying to make a minimum value for a decision variable, but also want a constraint where it can be 0, if it is below the minimum. I understand there is the $ conditional, but I can't seem to get it work in GAMS. For example: Area(p,crop) =g= (minimum_value)$(Area(p,crop) > 0) or, Area(p,...
by jonkaneshiro
7 years ago
Forum: Modeling
Topic: How to iterate/loop until GAMS solution is infeasible
Replies: 2
Views: 4114

How to iterate/loop until GAMS solution is infeasible

Hello, I am currently creating an optimization model that maximizes entropy with respect to a varying population. I'll be doing a lot of scenarios and was wondering if there is a way to make GAMS stop at an infeasible solution while in the loop. I noticed there are some answers about this with model...