Click or drag to resize
Accord.NET (logo)

LinearConstraintCollectionFromMatrix Method

Note: This API is now obsolete.

Creates a LinearConstraintCollection from a matrix specifying the constraint variables and a vector specifying their expected value.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
[ObsoleteAttribute("This method is obsolete because the convention is inconsistent with GoldfarbIdnani. Use Create(...) instead.")]
public static LinearConstraintCollection FromMatrix(
	double[,] a,
	double[] b,
	int meq
Request Example View Source


Type: SystemDouble
The constraint matrix.
Type: SystemDouble
The constraint values.
Type: SystemInt32
The number of equalities at the start of the matrix a. Contraints thereafter are taken to be less than or equal to the constraint values.

Return Value

Type: LinearConstraintCollection
See Also