Creating a Mathematical Program
Description
To create a new mathematical program in the Model Tree:
Select the position in a Declaration Section where the new mathematical program should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>key)In the dialog box select
Mathematical program and press OKEnter a name for the new mathematical program
Press
<Enter>to create the new mathematical program (or press<Esc>to abort the operation)
The newly created mathematical program is not yet ready for use, because you have to specify some mandatory attributes. To modify the attributes of the newly created mathematical program:
Press
<Enter>or double click on the mathematical program.
The most commonly used attributes of a mathematical program are discussed below.
OBJECTIVE: TheOBJECTIVEattribute defines the variable that should be optimized for when solving the mathematical program. The specified variable should be a free, scalar variable. The
wizard will let you select a scalar variable from your model.DIRECTION: TheDIRECTIONattribute specifies whether the mathematical program describes a minimization or a maximization problem. The
wizard will let you select either minimizingormaximizing.VARIABLES: TheVARIABLESattribute is used to specify the set of variables that are to be considered in the mathematical program. Its contents can either be empty (in which case the predefined setAllVariablesis assumed) or a subset ofAllVariables. The
wizard will display an Identifier Selection Dialog box containing all sets that are a subset of AllVariables.CONSTRAINTS: TheCONSTRAINTSattribute is used to specify the set of constraints that are to be considered in the mathematical program. Its contents can either be empty (in which case the predefined setAllConstraintsis assumed) or a subset ofAllConstraints. The
wizard will display an Identifier Selection Dialog box containing all sets that are a subset of AllConstraints.TYPE: TheTYPEattribute specifies the type of mathematical program. The type is used to determine the type of solver that will be used when solving the mathematical program. The
wizard will display a set of radio buttons, one for every possible type in AIMMS. Note that the ability to use a particular solver is determined by your AIMMS license. The contents of your AIMMS license can be seen with the AIMMS license viewer.VIOLATION PENALTY: With the Violation Penalty attribute you can instruct AIMMS to automatically add artificial terms to the constraints of your mathematical program to help resolve and/or track infeasibilities in your mathematical program.
Learn more about