|
LinearConstraintCollectionCreateMatrix Method (Int32, Double, 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 double[] tolerances,
out int equalities
)
Public Function CreateMatrix (
numberOfVariables As Integer,
<OutAttribute> ByRef b As Double(),
<OutAttribute> ByRef tolerances 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). - tolerances
- Type: SystemDouble
The amount each constraint can be violated before the answer is declared close enough. - equalities
- Type: SystemInt32
The number of equalities in the matrix.
Return Value
Type:
DoubleThe matrix
A of linear constraints.
See Also