|
LinearConstraintCollectionCreateMatrix Method (Int32, Double, Int32)
|
Creates a matrix of linear constraints in canonical form.
Namespace:
Accord.Math.Optimization
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public double[,] CreateMatrix(
int numberOfVariables,
out double[] b,
out int equalities
)
Public Function CreateMatrix (
numberOfVariables As Integer,
<OutAttribute> ByRef b As Double(),
<OutAttribute> ByRef equalities As Integer
) As Double(,)
Request Example
View SourceParameters
- numberOfVariables
- Type: SystemInt32
The number of variables in the objective function. - b
- Type: SystemDouble
The vector of independent terms (the right hand side of the constraints). - equalities
- Type: SystemInt32
The number of equalities in the matrix.
Return Value
Type:
DoubleThe matrix
A of linear constraints.
See Also