Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
:: (Matrix Double, VS.Vector Double) | The function to minimize. It should be of the form
|
-> Maybe (Matrix Double, VS.Vector Double) | Optional equality constraints. When given, this
argument should be of the form |
-> Maybe (Matrix Double, VS.Vector Double) | Optional inequality constraints. When given, this
argument should be of the form |
-> Either QuadProgPPError (VS.Vector Double, Double) |
Solve a strictly convex quadratic program with optional linear constraints. It returns a pair of the optimal solution and the value of the objective function at that point. On error it returns Left.
data QuadProgPPError Source
Errors that can happen in solveQuadProg
.
QuadProgInfeasible | The problem has no feasible solution. |
QuadProgSizeMismatch | The given matrices and vectors have inconsistent dimensionalities. |
QuadProgOtherError String | Other errors. Currently this is used for C++ exceptions thrown by QuadProg++. |