|
This resets GAMS items to their default values. This command is invoked using the syntax
$clear item1 item2
Notes:
| • | A list of items follows $clear and results in multiple items being cleared. While the example above lists two items one, two or many more can be listed. |
| • | This is carried out during compile time, and not when the GAMS program executes and it is carried out before any calculations. |
| • | There is an associated option command called clear which operates at execution time. It is usually the better choice. |
| • | Not all items can be cleared - only set, parameter, equation and variable types can be reset. |
| • | The result is that sets are emptied and data are zeroed. |
|