Creating a Complementarity Variable
Description
To create a new complementarity variable in the Model Tree:
Select the position in a Declaration Section where the new complementarity variable should be inserted
From the Edit menu select Insert – Other – Complementarity Variable

Enter a name for the new complementarity variable (if you are creating a multi-dimensional complementarity variable, you can type the indices of each dimension as well)
Press
<Enter>to create the new complementarity variable (or press<Esc>to abort the operation)
The newly created complementarity variable is not yet ready for use, because you should at least specify its Complement via the attributes. To modify the attributes of the newly created complementarity variable:
Press
<Enter>or double click on the complementarity variable node.
The most commonly used attributes of a complementarity variable are discussed below.
INDEX DOMAIN: TheINDEX DOMAINattribute should be specified in order to declare indexed complementarity variables. The
wizard will display the Set Dependency Tree of your model and allows you to select one or more indices.RANGE: TheRANGEattribute should be specified in order to restrict the values to certain intervals. The
wizard will let you either select one of the predefined ranges, like Real,Nonnegative,Nonpositive,Integer, orBinary, or specify a (parametric) interval range.UNIT: TheUNITattribute is used to specify the unit in which the complementarity variable’s value is measured. By specifying a unit, AIMMS is able to perform automatic unit conversions and unit consistency checks. The
wizard will let you select a unit and quantity from the list made up from your model quantities and units together with the information in the AIMMS SI unit base.DEFAULT: TheDEFAULTattribute should be used in order to specify a nonzero default value for the complementarity variable. Note that AIMMS will explicitly store all values that are non-default.PROPERTY: ThePROPERTYattribute should be used to specify additional properties. Note that in case of a complementarity variable only the NoSave property can be set..COMPLEMENT: The mandatoryCOMPLEMENTattribute for complementarity variables should be used to specify the complement.
Learn more about