|
Within GAMS replacement statements are evaluated in a three-step hierarchy (unless they are enclosed in parentheses). That hierarchy is
| Operator Description | Priority |
| * / multiplication and division | 2 |
| + - addition and subtraction | 3 |
The priority 1 items are done before the priority 2 and then the 3. However, items in parentheses or brackets are always resolved first. But within the parentheses the above hierarchy is followed. When multiple items appear of the same priority resolution is from left to right. Calculation hierarchy also involves logical conditions as fully specified in the Conditional notes.
|