|
Conditionals can be formed employing logical conditions which compare two numerical expressions to see if they are equal, unequal, or if one or the other is larger. The general form is
Term$(terma operator termb)
The operators are as follows:
| Relation | GAMS operator Explanation |
| Equality | Eq or = Does terma = termb |
| Not Equal | Ne or <> Does terma ≠ termb |
| Greater than | GT or > Is terma > termb |
| Greater or = | GE or >= Is terma > termb |
| Less than | LT or < Is terma < termb |
| Less or = | LE or >= Is terma < termb |
Each is discussed below.
|