Solves a linear system.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public DoubleVector Solve(
	DoubleVector objectiveFunction,
	DoubleMatrix constraints,
	DoubleVector rightHandSides,
	int numLessThan,
	int numGreaterThan,
	int numEqual
)
Visual Basic (Declaration)
Public Function Solve ( _
	objectiveFunction As DoubleVector, _
	constraints As DoubleMatrix, _
	rightHandSides As DoubleVector, _
	numLessThan As Integer, _
	numGreaterThan As Integer, _
	numEqual As Integer _
) As DoubleVector
Visual C++
public:
DoubleVector^ Solve(
	DoubleVector^ objectiveFunction, 
	DoubleMatrix^ constraints, 
	DoubleVector^ rightHandSides, 
	int numLessThan, 
	int numGreaterThan, 
	int numEqual
)

Parameters

objectiveFunction
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of coefficients representing the objective function.
constraints
Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix of constraint coefficients.
rightHandSides
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of right-hand sides.
numLessThan
Type: System..::.Int32
The number of less-than constraints.
numGreaterThan
Type: System..::.Int32
The number of greater-than constraints.
numEqual
Type: System..::.Int32
The number of equality constraints.

Return Value

The solution.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeException Thrown if the given structures are not of compatible sizes.

See Also