- Set CurrentInputs
CurrentInputs
The predefined set CurrentInputs
contains the names of the
identifiers which can actually be modified from within the graphical
end-user interface.
Set CurrentInputs {
SubsetOf : AllUpdatableIdentifiers;
Index : IndexCurrentInputs;
InitialData : AllUpdatableIdentifiers;
}
Definition
The set
CurrentInputs
contains the names of the model identifiers that can actually modified from within the graphical end-user interface of AIMMS.
Updatability
The contents of
CurrentInputs
can be modified programmatically from within an AIMMS model. The set cannot be updated from within the end-user interface.
Note
The set
AllUpdatableIdentifiers
determines which identifiers are updatable in principle. Therefore, you can only add identifiers toCurrentInputs
which are already contained in the setAllUpdatableIdentifiers
By default, variables are considered not updatable by AIMMS, and cannot be modified from within the end-user interface. If you want to allow your end-users to update some or all variables from within the end-user interface, you can accomplish this by adding these variables to both the sets
AllUpdatableIdentifiers
andCurrentInputs
.Please be careful when changing the content of this set, because it has a side-effect which may be overlooked easily. For example, when executing the following statement:
CurrentInputs := 'MyIdentifier';
you are not only assigning your identifier to the set, but also totally replacing the previous content of the set! In order to prevent this, you should use the following statement instead of the one above:
CurrentInputs := CurrentInputs - 'Main_My_Model' + 'MyIdentifier'
(if your model is called ‘My Model’)
See also
The sets AllIdentifiers
, CurrentInputs
.