Abstract interface for a Quadratic Program (HQP) solver. More...
#include <solver-HQP-base.hpp>
Public Types | |
typedef math::ConstRefMatrix | ConstRefMatrix |
typedef math::ConstRefVector | ConstRefVector |
typedef math::RefVector | RefVector |
Public Member Functions | |
virtual unsigned int | getMaximumIterations () |
virtual double | getMaximumTime () |
virtual double | getObjectiveValue ()=0 |
virtual bool | getUseWarmStart () |
virtual const std::string & | name () const |
virtual void | resize (unsigned int n, unsigned int neq, unsigned int nin)=0 |
virtual void | retrieveQPData (const HQPData &problemData, const bool hessianRegularization)=0 |
virtual bool | setMaximumIterations (unsigned int maxIter) |
virtual bool | setMaximumTime (double seconds) |
virtual void | setUseWarmStart (bool useWarmStart) |
virtual const HQPOutput & | solve (const HQPData &problemData)=0 |
SolverHQPBase (const std::string &name) | |
virtual | ~SolverHQPBase ()=default |
Static Public Attributes | |
static EIGEN_MAKE_ALIGNED_OPERATOR_NEW const std::string | HQP_status_string [5] |
Protected Attributes | |
unsigned int | m_maxIter |
double | m_maxTime |
std::string | m_name |
HQPOutput | m_output |
bool | m_useWarmStart |
Abstract interface for a Quadratic Program (HQP) solver.
Definition at line 34 of file solver-HQP-base.hpp.
typedef math::ConstRefMatrix tsid::solvers::SolverHQPBase::ConstRefMatrix |
Definition at line 42 of file solver-HQP-base.hpp.
typedef math::ConstRefVector tsid::solvers::SolverHQPBase::ConstRefVector |
Definition at line 41 of file solver-HQP-base.hpp.
Definition at line 40 of file solver-HQP-base.hpp.
tsid::solvers::SolverHQPBase::SolverHQPBase | ( | const std::string & | name | ) |
Definition at line 29 of file solver-HQP-base.cpp.
|
virtualdefault |
|
inlinevirtual |
Get the current maximum number of iterations performed by the solver.
Definition at line 70 of file solver-HQP-base.hpp.
|
inlinevirtual |
Get the maximum time allowed to solve a problem.
Definition at line 75 of file solver-HQP-base.hpp.
|
pure virtual |
Get the objective value of the last solved problem.
Implemented in tsid::solvers::SolverProxQP, tsid::solvers::SolverOSQP, tsid::solvers::SolverHQuadProgRT< nVars, nEqCon, nIneqCon >, tsid::solvers::SolverHQuadProgFast, tsid::solvers::SolverHQuadProg, and tsid::solvers::SolverHQpmad.
|
inlinevirtual |
Return true if the solver is allowed to warm start, false otherwise.
Definition at line 63 of file solver-HQP-base.hpp.
|
inlinevirtual |
Definition at line 47 of file solver-HQP-base.hpp.
|
pure virtual |
|
pure virtual |
Retrieve the matrices describing a QP problem from the problem data.
Implemented in tsid::solvers::SolverHQpmad, tsid::solvers::SolverHQuadProgFast, tsid::solvers::SolverHQuadProg, tsid::solvers::SolverProxQP, tsid::solvers::SolverOSQP, and tsid::solvers::SolverHQuadProgRT< nVars, nEqCon, nIneqCon >.
|
virtual |
Set the current maximum number of iterations performed by the solver.
Reimplemented in tsid::solvers::SolverProxQP, tsid::solvers::SolverOSQP, tsid::solvers::SolverHQuadProgRT< nVars, nEqCon, nIneqCon >, and tsid::solvers::SolverHQuadProgFast.
Definition at line 36 of file solver-HQP-base.cpp.
|
virtual |
Set the maximum time allowed to solve a problem.
Definition at line 42 of file solver-HQP-base.cpp.
|
inlinevirtual |
Specify whether the solver is allowed to use warm-start techniques.
Definition at line 65 of file solver-HQP-base.hpp.
|
pure virtual |
Solve the specified Hierarchical Quadratic Program.
Implemented in tsid::solvers::SolverProxQP, tsid::solvers::SolverOSQP, tsid::solvers::SolverHQuadProgRT< nVars, nEqCon, nIneqCon >, tsid::solvers::SolverHQpmad, tsid::solvers::SolverHQuadProgFast, and tsid::solvers::SolverHQuadProg.
|
static |
Definition at line 38 of file solver-HQP-base.hpp.
|
protected |
Definition at line 82 of file solver-HQP-base.hpp.
|
protected |
Definition at line 83 of file solver-HQP-base.hpp.
|
protected |
Definition at line 80 of file solver-HQP-base.hpp.
|
protected |
Definition at line 84 of file solver-HQP-base.hpp.
|
protected |
Definition at line 81 of file solver-HQP-base.hpp.