User Tools

Site Tools


gams:formulate_a_constraint_with_a_condition

This is an old revision of the document!


How do I formulate a constraint with a "<" condition?

  • There is no difference between < and for continuous variables when dealing with numerical algorithms.
  • For discrete variables, the constraints mean exactly what they say. =L= means , thus a constraint with an integer variable =L= 9 means it can be less or equal to 9. If you want it to be less than 9, write the constraint as =L= 8.
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/formulate_a_constraint_with_a_condition.1186735900.txt.gz · Last modified: 2010/07/19 14:36 (external edit)