Creating a Set
Description
To create a new set in the Model Tree:
Select the position in a Declaration Section where the new set should be inserted
From the Edit menu select Insert – Set

Enter a name for the new set (if you are creating an indexed set, you can type these indices as well)
Press
<Enter>to create the new set (or press<Esc> to abort the operation)
The newly created set is now ready for use, but you probably want to specify some additional attributes (for example the indices in the set). To modify the attributes of the newly created set:
Press
<Enter>or double click on the set node.
The most commonly used attributes of a set identifier are discussed below.
INDEX DOMAIN: TheINDEX DOMAINattribute should be specified in order to declare indexed sets. However, in most models scalar, simple (or compound) sets suffice to formulate your model. The
wizard will display the Set Dependency Tree of your model and allows you to select one or more indices.SUBSET OF: TheSUBSET OFattribute should be specified in order to declare a subset. The
wizard will display the Set Dependency Tree of your model and allows you to select one or more sets.INDEX: TheINDEXattribute is the most natural place to declare indices in the current set. The
wizard allows you to declare a new index, delete or rename an existing index or move an index to another set. When declaring an index this way, the index is bound to the corresponding set. To declare an index that is not bound, you should explicitly declare an index identifier.PARAMETER: ThePARAMETERattribute is like theINDEXattribute except that it allows you to declare scalar element parameters (instead of indices) in the current set. Another common way to achieve the same is to explicitly declare an element parameter.DEFINITION: TheDEFINITIONattribute can (and should) be used to specify the definition of an identifier by means of a global relationship. AIMMS stores the result of a definition and recomputes it only when necessary.
How to …
Learn more about