Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

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: Double
The matrix A of linear constraints.
See Also