Conditionals

Top  Previous  Next

Frequently GAMS modelers need to be able to write expressions that operate over less than full sets or incorporate various model features conditionally depending on data.  Such tasks are accomplished in GAMS using conditionals.

 

Basic forms of conditionals

Conditional placement and program execution speed

Forms of conditional / logical true false statements

Nesting logical conditions

The conditional alternative – the tuple