QPALM
1.1.3
Proximal Augmented Lagrangian method for Quadratic Programs
|
#include <qpalm.hpp>
Public Member Functions | |
QPALM_CXX_EXPORT | Solver (const Data &data, const Settings &settings) |
Create a new solver for the problem defined by data and with the parameters defined by settings . | |
QPALM_CXX_EXPORT void | update_settings (const Settings &settings) |
QPALM_CXX_EXPORT void | update_bounds (std::optional< const_ref_vec_t > bmin, std::optional< const_ref_vec_t > bmax) |
QPALM_CXX_EXPORT void | update_q (const_ref_vec_t q) |
QPALM_CXX_EXPORT void | update_Q_A (const_ref_vec_t Q_vals, const_ref_vec_t A_vals) |
QPALM_CXX_EXPORT void | warm_start (std::optional< const_ref_vec_t > x, std::optional< const_ref_vec_t > y) |
QPALM_CXX_EXPORT void | solve () |
Solve the problem. | |
QPALM_CXX_EXPORT SolutionView | get_solution () const |
Get the solution computed by solve(). | |
QPALM_CXX_EXPORT const QPALMInfo & | get_info () const |
Get the solver information from the last call to solve(). | |
QPALM_CXX_EXPORT const_borrowed_vec_t | get_prim_inf_certificate () const |
Get the certificate of primal infeasibility of the problem. | |
QPALM_CXX_EXPORT const_borrowed_vec_t | get_dual_inf_certificate () const |
Get the certificate of dual infeasibility of the problem. | |
index_t | get_n () const |
Get the problem dimension \( n \) (size of \( x \)). | |
index_t | get_m () const |
Get the number of constraints \( m \). | |
QPALM_CXX_EXPORTconst ::QPALMWorkspace * | get_c_work_ptr () const |
Get a pointer to the underlying C workspace data structure. | |
|
inline |
Get a pointer to the underlying C workspace data structure.
const_borrowed_vec_t qpalm::Solver::get_dual_inf_certificate | ( | ) | const |
const QPALMInfo & qpalm::Solver::get_info | ( | ) | const |
Get the solver information from the last call to solve().
|
inline |
Get the number of constraints \( m \).
|
inline |
Get the problem dimension \( n \) (size of \( x \)).
const_borrowed_vec_t qpalm::Solver::get_prim_inf_certificate | ( | ) | const |
SolutionView qpalm::Solver::get_solution | ( | ) | const |
Get the solution computed by solve().
void qpalm::Solver::solve | ( | ) |
Solve the problem.
The solution will be available through get_solution() and the solver information and statistics through get_info().
Definition at line 52 of file qpalm.cpp.
void qpalm::Solver::update_bounds | ( | std::optional< const_ref_vec_t > | bmin, |
std::optional< const_ref_vec_t > | bmax | ||
) |
Definition at line 32 of file qpalm.cpp.
void qpalm::Solver::update_q | ( | const_ref_vec_t | q | ) |
Definition at line 38 of file qpalm.cpp.
void qpalm::Solver::update_Q_A | ( | const_ref_vec_t | Q_vals, |
const_ref_vec_t | A_vals | ||
) |
Definition at line 42 of file qpalm.cpp.
void qpalm::Solver::update_settings | ( | const Settings & | settings | ) |
Definition at line 28 of file qpalm.cpp.
void qpalm::Solver::warm_start | ( | std::optional< const_ref_vec_t > | x, |
std::optional< const_ref_vec_t > | y | ||
) |
Definition at line 46 of file qpalm.cpp.