Click or drag to resize

ConstrainedLeastSquaresSolve(ConstrainedLeastSquaresProblem) Method

Solves the given least squares problem using the default quadratic programming solver.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public bool Solve(
	ConstrainedLeastSquaresProblem problem
)

Parameters

problem  ConstrainedLeastSquaresProblem
A constrained least squares problem.

Return Value

Boolean
true if the solver is successful
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the dimension of the matrix A and the vector b do not match for the problem Ax = b.
NMathExceptionThrown if there are more variables than equations (an under-determined system).
Remarks
If your problem is has more variables than equations (an under-determined solver) you must use the Solver method that uses the InteriorPointQPSolver quadratic programming solver.
See Also