Go to the documentation of this file.
18 #ifndef __solvers_osqp_hpp__
19 #define __solvers_osqp_hpp__
22 #include "OsqpEigen/OsqpEigen.h"
23 #include <Eigen/Sparse>
26 #define START_PROFILER_OSQP(x) START_PROFILER(x)
27 #define STOP_PROFILER_OSQP(x) STOP_PROFILER(x)
29 #define START_PROFILER_OSQP(x)
30 #define STOP_PROFILER_OSQP(x)
40 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
51 void resize(
unsigned int n,
unsigned int neq,
unsigned int nin)
override;
54 void retrieveQPData(
const HQPData& problemData,
55 const bool hessianRegularization =
false)
override;
64 double getObjectiveValue()
override;
67 bool setMaximumIterations(
unsigned int maxIter)
override;
69 void setSigma(
double sigma);
70 void setAlpha(
double alpha);
71 void setRho(
double rho);
72 void setEpsilonAbsolute(
double epsAbs);
73 void setEpsilonRelative(
double epsRel);
74 void setVerbose(
bool isVerbose =
false);
77 void sendMsg(
const std::string&
s);
101 #endif // ifndef __solvers_osqp_hpp__
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Matrix Matrix
QPDataTpl< double > m_qpData
number of variables
math::ConstRefMatrix ConstRefMatrix
Mat & solve(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< Mat > &y)
Eigen::Ref< Vector > RefVector
double m_hessian_regularization
Abstract interface for a Quadratic Program (HQP) solver.
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > Matrix
const typedef Eigen::Ref< const Vector > ConstRefVector
unsigned int m_nin
number of equality constraints
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
OsqpEigen::Solver m_solver
const QPData getQPData() const
const typedef Eigen::Ref< const Matrix > ConstRefMatrix
math::ConstRefVector ConstRefVector
math::RefVector RefVector
pinocchio::container::aligned_vector< ConstraintLevel > HQPData
unsigned int m_n
number of inequality constraints
tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Thu Apr 3 2025 02:47:16