Creating a Horizon
Description
To create a new horizon in the Model Tree:
Select the position in a Declaration Section where the new horizon should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>key)In the dialog box select
Horizon and press OKEnter a name for the new horizon
Press
<Enter>to create the new horizon (or press<Esc>to abort the operation)
The newly created horizon is not yet ready for use, because you should at least specify some mandatory attributes. To modify the attributes of the newly created horizon:
Press
<Enter>or double click on the horizon node.
The most commonly used attributes of a horizon identifier are discussed below.
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 place to declare indices in the current horizon. The
wizard allows you to declare new index, delete or rename an existing index or move an index to another set.PARAMETER: ThePARAMETERattribute is like theINDEXattribute except that it allows you to declare scalar element parameters (instead of indices) in the current horizon.DEFINITION: TheDEFINITIONattribute is mandatory and should be used to determine the ordering of the periods in the horizon.CURRENT PERIOD: TheCURRENT PERIODattribute is used to specify the first period of the planning interval. TheCURRENT PERIODattribute together with theINTERVAL LENGTHattribute determine the generation of constraints and variables in your model. The
wizard will display an Identifier Selection Dialog box containing all element parameters that are defined over the current horizon.INTERVAL LENGTH: TheINTERVAL LENGTHattribute is used to specify the number of periods that should be considered during the model generation. If not specified, all periods from the current period onward are part of the planning interval.
Remark
A horizon is a special kind of set. When variables and constraints are indexed over a horizon, AIMMS automatically restricts the generation of these constraints and variables to periods within the planning interval.
How to …
Learn more about