Creates linear constraints based on the specified coefficients.
Namespace: Extreme.Mathematics.OptimizationAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
protected ConstraintCollection CreateLinearConstraints(
Matrix<double> coefficients,
Vector<double> rightHandSides,
int equalities
)
Protected Function CreateLinearConstraints (
coefficients As Matrix(Of Double),
rightHandSides As Vector(Of Double),
equalities As Integer
) As ConstraintCollection
protected:
ConstraintCollection^ CreateLinearConstraints(
Matrix<double>^ coefficients,
Vector<double>^ rightHandSides,
int equalities
)
member CreateLinearConstraints :
coefficients : Matrix<float> *
rightHandSides : Vector<float> *
equalities : int -> ConstraintCollection
Parameters
- coefficients
- Type: Extreme.MathematicsMatrixDouble
A matrix containing the coefficients of the constraints. - rightHandSides
- Type: Extreme.MathematicsVectorDouble
A vector containing the right-hand sides of the constraints. - equalities
- Type: SystemInt32
The number of equality constraints.
Return Value
Type:
ConstraintCollectionA collection that contains the new constraints.
The first
equalities constraints are defined as equality constraints.
The remaining constraints are defined as less-than or equal constraints.
Numerical Libraries
Supported in: 6.0
Reference