wbc
wbc::EiquadprogSolver Class Reference

The EiquadprogSolver class is a wrapper for the qp-solver eiquadprog (see https://github.com/stack-of-tasks/eiquadprog). It solves problems of shape: More...

#include <EiquadprogSolver.hpp>

Inheritance diagram for wbc::EiquadprogSolver:
wbc::QPSolver

Public Member Functions

 EiquadprogSolver ()
 
virtual ~EiquadprogSolver ()
 
virtual void solve (const wbc::HierarchicalQP &hierarchical_qp, base::VectorXd &solver_output)
 solve Solve the given quadratic program
 
void setMaxNIter (const uint &n)
 
uint getMaxNIter ()
 
int getNter ()
 
- Public Member Functions inherited from wbc::QPSolver
 QPSolver ()
 
virtual ~QPSolver ()
 
void reset ()
 reset Enforces reconfiguration at next call to solve()
 

Protected Attributes

eiquadprog::solvers::EiquadprogFast _solver
 
int _n_iter
 
int _actual_n_iter
 
Eigen::MatrixXd _CI_mtx
 
Eigen::VectorXd _ci0_vec
 
- Protected Attributes inherited from wbc::QPSolver
bool configured
 

Detailed Description

The EiquadprogSolver class is a wrapper for the qp-solver eiquadprog (see https://github.com/stack-of-tasks/eiquadprog). It solves problems of shape:

\[ \begin{array}{ccc} min(\mathbf{x}) & \frac{1}{2} \mathbf{x}^T\mathbf{G}\mathbf{x}+\mathbf{x}^T\mathbf{g0}& \\ & & \\ s.t. & \mathbf{CE}x + ce0 = 0& \\ & \mathbf{CI}x + ci0 \geq 0& \\ \end{array} \]

Constructor & Destructor Documentation

◆ EiquadprogSolver()

wbc::EiquadprogSolver::EiquadprogSolver ( )

◆ ~EiquadprogSolver()

wbc::EiquadprogSolver::~EiquadprogSolver ( )
virtual

Member Function Documentation

◆ getMaxNIter()

uint wbc::EiquadprogSolver::getMaxNIter ( )
inline

Get the maximum number of working set recalculations to be performed during the initial homotopy

◆ getNter()

int wbc::EiquadprogSolver::getNter ( )
inline

Get number of working set recalculations actually performed

◆ setMaxNIter()

void wbc::EiquadprogSolver::setMaxNIter ( const uint & n)
inline

Set the maximum number of working set recalculations to be performed during the initial homotopy

◆ solve()

void wbc::EiquadprogSolver::solve ( const wbc::HierarchicalQP & hierarchical_qp,
base::VectorXd & solver_output )
virtual

solve Solve the given quadratic program

Parameters
constraintsDescription of the hierarchical quadratic program to solve. Each vector entry correspond to a stage in the hierarchy where the first entry has the highest priority. Currently only one priority level is implemented.
solver_outputsolution of the quadratic program

Implements wbc::QPSolver.

Member Data Documentation

◆ _actual_n_iter

int wbc::EiquadprogSolver::_actual_n_iter
protected

◆ _ci0_vec

Eigen::VectorXd wbc::EiquadprogSolver::_ci0_vec
protected

◆ _CI_mtx

Eigen::MatrixXd wbc::EiquadprogSolver::_CI_mtx
protected

◆ _n_iter

int wbc::EiquadprogSolver::_n_iter
protected

◆ _solver

eiquadprog::solvers::EiquadprogFast wbc::EiquadprogSolver::_solver
protected

The documentation for this class was generated from the following files: