solver-HQP-eiquadprog-fast.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
3 //
4 // This file is part of tsid
5 // tsid is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 // tsid is distributed in the hope that it will be
10 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Lesser Public License for more details. You should have
13 // received a copy of the GNU Lesser General Public License along with
14 // tsid If not, see
15 // <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef __invdyn_solvers_hqp_eiquadprog_fast_hpp__
19 #define __invdyn_solvers_hqp_eiquadprog_fast_hpp__
20 
21 #include "tsid/deprecated.hh"
24 
25 namespace tsid {
26 namespace solvers {
30 class TSID_DLLAPI SolverHQuadProgFast : public SolverHQPBase {
31  public:
32  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
33 
39 
40  SolverHQuadProgFast(const std::string& name);
41 
42  void resize(unsigned int n, unsigned int neq, unsigned int nin) override;
43 
46  const HQPOutput& solve(const HQPData& problemData) override;
47 
49  void retrieveQPData(const HQPData& problemData,
50  const bool hessianRegularization = true) override;
51 
53  const QPDataQuadProg getQPData() const { return m_qpData; }
54 
56  double getObjectiveValue() override;
57 
59  bool setMaximumIterations(unsigned int maxIter) override;
60 
61  protected:
62  void sendMsg(const std::string& s);
63 
64  // <nVars, nEqCon, 2*nIneqCon>
66 
67  TSID_DEPRECATED Matrix m_H;
68  TSID_DEPRECATED Vector m_g;
69  TSID_DEPRECATED Matrix m_CE;
70  TSID_DEPRECATED Vector m_ce0;
71  TSID_DEPRECATED Matrix
72  m_CI;
73  TSID_DEPRECATED Vector m_ci0;
74  double m_objValue;
76 
80 
81  unsigned int m_neq;
82  unsigned int m_nin;
83  unsigned int m_n;
84 
86 };
87 } // namespace solvers
88 } // namespace tsid
89 
90 #endif // ifndef __invdyn_solvers_hqp_eiquadprog_fast_hpp__
tsid::solvers::SolverHQuadProgFast::m_solver
eiquadprog::solvers::EiquadprogFast m_solver
Definition: solver-HQP-eiquadprog-fast.hpp:65
tsid::solvers::QPDataQuadProgTpl< double >
tsid::solvers::SolverHQuadProgFast
Definition: solver-HQP-eiquadprog-fast.hpp:30
tsid::solvers::SolverHQuadProgFast::m_activeSet
Eigen::VectorXi m_activeSet
Definition: solver-HQP-eiquadprog-fast.hpp:78
test_Solvers.neq
int neq
Definition: test_Solvers.py:13
tsid::solvers::SolverHQuadProgFast::m_qpData
QPDataQuadProgTpl< double > m_qpData
number of variables
Definition: solver-HQP-eiquadprog-fast.hpp:85
tsid::solvers::SolverHQuadProgFast::m_ci0
TSID_DEPRECATED Vector m_ci0
twice the rows because inequality constraints are bilateral
Definition: solver-HQP-eiquadprog-fast.hpp:73
tsid::solvers::SolverHQuadProgFast::m_CI
TSID_DEPRECATED Matrix m_CI
Definition: solver-HQP-eiquadprog-fast.hpp:72
eiquadprog::solvers::EiquadprogFast
tsid::solvers::SolverHQuadProgFast::Vector
math::Vector Vector
Definition: solver-HQP-eiquadprog-fast.hpp:35
solve
Mat & solve(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< Mat > &y)
tsid::solvers::SolverHQuadProgFast::m_g
TSID_DEPRECATED Vector m_g
Definition: solver-HQP-eiquadprog-fast.hpp:68
tsid::math::VectorXi
Eigen::VectorXi VectorXi
Definition: math/fwd.hpp:37
tsid::solvers::SolverHQuadProgFast::RefVector
math::RefVector RefVector
Definition: solver-HQP-eiquadprog-fast.hpp:36
tsid::math::RefVector
Eigen::Ref< Vector > RefVector
Definition: math/fwd.hpp:47
tsid::solvers::HQPOutput
Definition: solver-HQP-output.hpp:29
tsid::solvers::SolverHQPBase
Abstract interface for a Quadratic Program (HQP) solver.
Definition: solver-HQP-base.hpp:34
test_Solvers.nin
int nin
Definition: test_Solvers.py:14
eiquadprog-fast.hpp
tsid::solvers::SolverHQuadProgFast::m_neq
unsigned int m_neq
Definition: solver-HQP-eiquadprog-fast.hpp:81
tsid::math::Matrix
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > Matrix
Definition: math/fwd.hpp:36
tsid::solvers::SolverHQuadProgFast::m_activeSetSize
int m_activeSetSize
vector containing the indexes of the active inequalities
Definition: solver-HQP-eiquadprog-fast.hpp:79
setup.name
name
Definition: setup.in.py:179
tsid::solvers::SolverHQuadProgFast::getQPData
const QPDataQuadProg getQPData() const
Definition: solver-HQP-eiquadprog-fast.hpp:53
solver-HQP-base.hpp
tsid::solvers::SolverHQuadProgFast::m_CE
TSID_DEPRECATED Matrix m_CE
Definition: solver-HQP-eiquadprog-fast.hpp:69
tsid::math::ConstRefVector
const typedef Eigen::Ref< const Vector > ConstRefVector
Definition: math/fwd.hpp:48
tsid::math::Vector
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: math/fwd.hpp:35
tsid
Definition: bindings/python/constraint/constraint-bound.cpp:21
tsid::solvers::SolverHQuadProgFast::m_n
unsigned int m_n
number of inequality constraints
Definition: solver-HQP-eiquadprog-fast.hpp:83
test_Formulation.s
s
Definition: test_Formulation.py:115
tsid::solvers::SolverHQuadProgFast::m_objValue
double m_objValue
Definition: solver-HQP-eiquadprog-fast.hpp:74
tsid::math::ConstRefMatrix
const typedef Eigen::Ref< const Matrix > ConstRefMatrix
Definition: math/fwd.hpp:51
tsid::solvers::SolverHQuadProgFast::m_ce0
TSID_DEPRECATED Vector m_ce0
Definition: solver-HQP-eiquadprog-fast.hpp:70
tsid::solvers::SolverHQuadProgFast::m_nin
unsigned int m_nin
number of equality constraints
Definition: solver-HQP-eiquadprog-fast.hpp:82
tsid::solvers::HQPData
pinocchio::container::aligned_vector< ConstraintLevel > HQPData
Definition: solvers/fwd.hpp:99
tsid::solvers::SolverHQuadProgFast::m_hessian_regularization
double m_hessian_regularization
Definition: solver-HQP-eiquadprog-fast.hpp:75
n
Vec3f n
tsid::solvers::SolverHQuadProgFast::ConstRefVector
math::ConstRefVector ConstRefVector
Definition: solver-HQP-eiquadprog-fast.hpp:37
tsid::solvers::SolverHQuadProgFast::ConstRefMatrix
math::ConstRefMatrix ConstRefMatrix
Definition: solver-HQP-eiquadprog-fast.hpp:38
tsid::solvers::SolverHQuadProgFast::m_H
TSID_DEPRECATED Matrix m_H
Definition: solver-HQP-eiquadprog-fast.hpp:67
tsid::solvers::SolverHQuadProgFast::Matrix
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Matrix Matrix
Definition: solver-HQP-eiquadprog-fast.hpp:34


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sat May 3 2025 02:48:16