 | ConstrainedLeastSquaresSolve(ConstrainedLeastSquaresProblem, InteriorPointQPSolver, InteriorPointQPSolverParams) Method |
Solves the given least squares problem using an interior point quadratic
programming solver.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic bool Solve(
ConstrainedLeastSquaresProblem problem,
InteriorPointQPSolver solver,
InteriorPointQPSolverParams qpSolverParams = null
)
Public Function Solve (
problem As ConstrainedLeastSquaresProblem,
solver As InteriorPointQPSolver,
Optional qpSolverParams As InteriorPointQPSolverParams = Nothing
) As Boolean
public:
bool Solve(
ConstrainedLeastSquaresProblem^ problem,
InteriorPointQPSolver^ solver,
InteriorPointQPSolverParams^ qpSolverParams = nullptr
)
member Solve :
problem : ConstrainedLeastSquaresProblem *
solver : InteriorPointQPSolver *
?qpSolverParams : InteriorPointQPSolverParams
(* Defaults:
let _qpSolverParams = defaultArg qpSolverParams null
*)
-> bool
Parameters
- problem ConstrainedLeastSquaresProblem
- A constrained least squares problem.
- solver InteriorPointQPSolver
- An instance of the QP solver to use.
- qpSolverParams InteriorPointQPSolverParams (Optional)
- Optional solver parameters for the passed QP solver.
If none are provided default values will be used.
Return Value
Booleantrue if the solver is successful
ExceptionsException | Condition |
---|
MismatchedSizeException | Thrown if the dimension
of the matrix A and the vector b do not match for the problem
Ax = b. |
See Also