Constraints tab

Use the Constraints tab to define constraints which are logical conditions that a solution to an optimization problem must satisfy. A constraint is a hard limit placed on the value of a variable, which prevents the product from going forever in certain directions.

With nonlinear functions, the optimum values can occur at the boundaries or between them. With linear functions, the optimum values can only occur at the boundaries. Here the data grid has the free text editor columns and lists to setup the required configuration. You can open the Expression builder by clicking the Pencil icon in the last column.

Constraints are always equations or inequations meaning the functional declaration in the constraints should have only one of these operators: < =, >=, <, >, =, <>, !=.

Component Required Data type Description
Name Yes String Label the constraint as required for identification purpose.
Dimension Yes Integer This value must be less than or equal to number of variables declared on the Sets/Indices & Constant tab.

Specify 0 if nothing needs to be declared.

Index Yes String Specify only those variables that are declared on the Sets/Indices & Constant tab.

Leave this blank for a 0 value.

Condition Optional Free text editor Specify the condition so the model picks up respective function declaration for the execution as per the condition that would get satisfied.

Click the Pencil icon to open the Expression builder where you can specify the equation. The Expression builder also has pickup lists which you can use to insert functions, sets, indices, constants, and parameters.

Function declaration Yes Free text editor Specify the constraints for the model.

Click the Pencil icon to open the Expression builder where you can specify the equation. The Expression builder also has pickup lists which you can use to insert functions, sets, indices, constants, and parameters.