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