CGAL 5.6.1 - CGAL and Solvers
|
#include <CGAL/OSQP_quadratic_program_traits.h>
wraps the external OSQP solver.
This class provides an interface for formulating and solving constrained or unconstrained quadratic programs using the OSQP library, which must be available on the system.
FT | number type that FieldNumberType |
FT
type is provided for convenience. Internally, this FT type is converted to OSQPFloat
type that can be set either to float
or double
. By default, the double
type is used. After the optimization is complete, the OSQPFloat
type is converted back to FT
. See more about OSQPFloat
here.Public Member Functions | |
OSQP_quadratic_program_traits () | |
Default constructor | |
OSQP_quadratic_program_traits (const std::size_t n) | |
Constructor. More... | |
OSQP_quadratic_program_traits (const std::size_t n, const std::size_t m) | |
Constructor. More... | |
void | clear () |
Resets the problem, removing all existing entries and setting sizes to 0 . | |
void | resize (const std::size_t new_n, const std::size_t new_m=0) |
Changes the number of variables and the number of constraints of the problem. More... | |
CGAL::OSQP_quadratic_program_traits< FT >::OSQP_quadratic_program_traits | ( | const std::size_t | n | ) |
Constructor.
n | the number of variables |
CGAL::OSQP_quadratic_program_traits< FT >::OSQP_quadratic_program_traits | ( | const std::size_t | n, |
const std::size_t | m | ||
) |
Constructor.
n | the number of variables |
m | the number of constraints |
void CGAL::OSQP_quadratic_program_traits< FT >::resize | ( | const std::size_t | new_n, |
const std::size_t | new_m = 0 |
||
) |
Changes the number of variables and the number of constraints of the problem.