VoseOptConstraintString | Vose Software

VoseOptConstraintString

See also: VoseOptConstraintBetween, VoseOptConstraintEquals, VoseOptConstraintMax, VoseOptConstraintMin

VoseOptConstraintString (Name, String, Enabled )

 

 

Example model
 

This function is used to define linear string decision constraints.

Name - Constraint Name

String – The linear constraint string that can contain Decision variable names

Enabled - Set to TRUE if Constraint is Enabled

Linear constraints describe a linear relationship among decision variables. A linear constraint is a mathematical expression where linear terms (i.e., a coefficient multiplied by a decision variable) are added or subtracted and the resulting expression is forced to be greater-than-or-equal, less-than-or-equal, or exactly equal to a right-hand side value.

The following are examples of linear constraints on the decision variables:

Var1 + Var2 + Var3 + Var4 + Var5  = 10500

0 <= Var1 + 2*Var2 – Var3 <= 5000

Var1 - 3*Var5 >= 300

Var1 >= 6 or Var2 >= 6 or Var1+Var2 = 4

For more information about this function refer to the topic on Optimization Decision Constraints.

 

Navigation