Description Usage Arguments Value References See Also Examples
Solves
argmin_x 0.5 x'P x + q'x
s.t.
li < (A x)i < ui
for real matrices P (nxn, positive semidefinite) and A (mxn) with m number of constraints
1 2 | solve_osqp(P = NULL, q = NULL, A = NULL, l = NULL, u = NULL,
pars = osqpSettings())
|
P, A |
sparse matrices of class dgCMatrix or coercible into such, with P positive semidefinite. |
q, l, u |
Numeric vectors, with possibly infinite elements in l and u |
pars |
list with optimization parameters, conveniently set with the function |
A list with elements x (the primal solution), y (the dual solution), prim_inf_cert, dual_inf_cert, and info.
Stellato, B., Banjac, G., Goulart, P., Bemporad, A., Boyd and S. (2017). “OSQP: An Operator Splitting Solver for Quadratic Programs.” ArXiv e-prints. 1711.08013.
osqp
. The underlying OSQP documentation: http://osqp.readthedocs.io/
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.