WHEN

From ASCEND
Jump to: navigation, search

When logical variables have certain values, use certain relations or model parts in defining a mathematical problem. The relations are not defined inside the WHEN statement because all the relations must be compiled regardless of which values the logical variables have at any given moment.

For more detail, see conditional modelling.

See also SWITCH, SELECT, and IF.