Constructs an optimization model with linear constraints in standard form.
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16073.0)
Func<string, DecisionVariable> variableConstructor,
Protected Sub New (
variableConstructor As Func(Of String, DecisionVariable),
constraints As Matrix,
rightHandSides As Vector,
equalities As Integer
Func<String^, DecisionVariable^>^ variableConstructor,
variableConstructor : Func<string, DecisionVariable> *
constraints : Matrix *
rightHandSides : Vector *
equalities : int -> OptimizationModel
- Type: SystemFuncString, DecisionVariable
A function that creates a decision variable from a specified name.
- Type: Extreme.MathematicsMatrix
The matrix of coefficients of the constraints.
- Type: Extreme.MathematicsVector
The vector of right-hand-sides of the constraints.
- Type: SystemInt32
The number of equality constraints.
Use this constructor to create a linear program in standard form with equality constraints.
It is more efficient to specify an equality constraint as a single constraint
rather than as two inequality constraints with opposite bounds. This constructor is preferred
for linear programs in standard form with equality constraints.
The equalities must be listed first in the constraint matrix and in the right-hand sides,
followed by the inequalities.
Note that it is much more efficient to specify bounds on variables directly than to encode
the bounds in additional constraints. It is also more efficient to specify a boxed constraint
as a single constraint than as two inequality constraints with opposite bounds.
For linear programs with such constraints, the more general constructor is recommended.
The variables are given the names x1, x2... Constraints are given the names
Supported in: 5.x, 4.x