proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
|
This class defines the API of PROXQP solver with sparse backend. More...
#include <proxsuite/proxqp/sparse/wrapper.hpp>
Public Member Functions | |
QP (isize dim, isize n_eq, isize n_in) | |
QP (const SparseMat< bool, I > &H, const SparseMat< bool, I > &A, const SparseMat< bool, I > &C) | |
void | init (optional< SparseMat< T, I > > H, optional< VecRef< T > > g, optional< SparseMat< T, I > > A, optional< VecRef< T > > b, optional< SparseMat< T, I > > C, optional< VecRef< T > > l, optional< VecRef< T > > u, bool compute_preconditioner_=true, optional< T > rho=nullopt, optional< T > mu_eq=nullopt, optional< T > mu_in=nullopt, optional< T > manual_minimal_H_eigenvalue=nullopt) |
void | update (const optional< SparseMat< T, I > > H, optional< VecRef< T > > g, const optional< SparseMat< T, I > > A, optional< VecRef< T > > b, const optional< SparseMat< T, I > > C, optional< VecRef< T > > l, optional< VecRef< T > > u, bool update_preconditioner=false, optional< T > rho=nullopt, optional< T > mu_eq=nullopt, optional< T > mu_in=nullopt, optional< T > manual_minimal_H_eigenvalue=nullopt) |
void | solve () |
void | solve (optional< VecRef< T > > x, optional< VecRef< T > > y, optional< VecRef< T > > z) |
void | cleanup () |
Public Attributes | |
Results< T > | results |
Settings< T > | settings |
Model< T, I > | model |
Workspace< T, I > | work |
preconditioner::RuizEquilibration< T, I > | ruiz |
This class defines the API of PROXQP solver with sparse backend.
Wrapper class for using proxsuite API with dense backend for solving linearly constrained convex QP problem using ProxQp algorithm.
Example usage:
Definition at line 90 of file wrapper.hpp.
|
inline |
Default constructor using the dimension of the matrices in entry.
dim | primal variable dimension. |
n_eq | number of equality constraints. |
n_in | number of inequality constraints. |
Definition at line 103 of file wrapper.hpp.
|
inline |
Default constructor using the sparsity structure of the matrices in entry.
H | boolean mask of the quadratic cost input defining the QP model. |
A | boolean mask of the equality constraint matrix input defining the QP model. |
C | boolean mask of the inequality constraint matrix input defining the QP model. |
Definition at line 122 of file wrapper.hpp.
|
inline |
Setups the QP model (with sparse matrix format) and equilibrates it.
H | quadratic cost input defining the QP model. |
g | linear cost input defining the QP model. |
A | equality constraint matrix input defining the QP model. |
b | equality constraint vector input defining the QP model. |
C | inequality constraint matrix input defining the QP model. |
l | lower inequality constraint vector input defining the QP model. |
u | upper inequality constraint vector input defining the QP model. |
compute_preconditioner | boolean parameter for executing or not the preconditioner. |
rho | proximal step size wrt primal variable. |
mu_eq | proximal step size wrt equality constrained multiplier. |
mu_in | proximal step size wrt inequality constrained multiplier. |
Definition at line 165 of file wrapper.hpp.
|
inline |
Updates the QP model (with sparse matrix format) and re-equilibrates it if specified by the user. If matrices in entry are not null, the update is effective only if the sparsity structure of entry is the same as the one used for the initialization.
H | quadratic cost input defining the QP model. |
g | linear cost input defining the QP model. |
A | equality constraint matrix input defining the QP model. |
b | equality constraint vector input defining the QP model. |
C | inequality constraint matrix input defining the QP model. |
l | lower inequality constraint vector input defining the QP model. |
u | lower inequality constraint vector input defining the QP model. |
update_preconditioner | bool parameter for updating or not the preconditioner and the associated scaled model. |
rho | proximal step size wrt primal variable. |
mu_eq | proximal step size wrt equality constrained multiplier. |
mu_in | proximal step size wrt inequality constrained multiplier. |
Definition at line 352 of file wrapper.hpp.
|
inline |
Solves the QP problem using PRXOQP algorithm.
Definition at line 637 of file wrapper.hpp.
|
inline |
Solves the QP problem using PROXQP algorithm and a warm start.
x | primal warm start. |
y | dual equality warm start. |
z | dual inequality warm start. |
Definition at line 652 of file wrapper.hpp.
|
inline |
Clean-ups solver's results.
Definition at line 667 of file wrapper.hpp.
Results<T> proxsuite::proxqp::sparse::QP< T, I >::results |
Definition at line 92 of file wrapper.hpp.
Settings<T> proxsuite::proxqp::sparse::QP< T, I >::settings |
Definition at line 93 of file wrapper.hpp.
Model<T, I> proxsuite::proxqp::sparse::QP< T, I >::model |
Definition at line 94 of file wrapper.hpp.
Workspace<T, I> proxsuite::proxqp::sparse::QP< T, I >::work |
Definition at line 95 of file wrapper.hpp.
preconditioner::RuizEquilibration<T, I> proxsuite::proxqp::sparse::QP< T, I >::ruiz |
Definition at line 96 of file wrapper.hpp.