17 #ifndef HPP_CORE_PATH_OPTIMIZATION_QUADRATIC_PROGRAM_HH 18 # define HPP_CORE_PATH_OPTIMIZATION_QUADRATIC_PROGRAM_HH 28 namespace pathOptimization {
53 typedef Eigen::LLT <matrix_t, Eigen::Lower>
LLT_t;
56 H (inputSize, inputSize),
b (inputSize),
57 dec (inputSize, inputSize,
Eigen::ComputeThinU |
Eigen::ComputeThinV),
66 H (lc.PK.cols(), lc.PK.cols()),
b (lc.PK.cols()),
bIsZero (false),
67 dec (lc.PK.cols(), lc.PK.cols(),
Eigen::ComputeThinU |
Eigen::ComputeThinV),
82 H.conservativeResize(
H.rows() + nbRows,
H.cols());
83 b.conservativeResize(
b.rows() + nbRows,
b.cols());
85 H.bottomRows(nbRows).setZero();
100 QPr.
H.noalias() = lc.
PK.transpose() * H_PK;
101 QPr.
b.noalias() = H_PK.transpose() * lc.
xStar;
103 QPr.
b.noalias() += lc.
PK.transpose() *
b;
155 #endif // HPP_CORE_PATH_OPTIMIZATION_QUADRATIC_PROGRAM_HH void solve()
Definition: quadratic-program.hh:110
QuadraticProgram(const QuadraticProgram &QP, const LinearConstraint &lc)
Definition: quadratic-program.hh:65
pinocchio::size_type size_type
Definition: fwd.hh:156
Eigen::JacobiSVD< matrix_t > Decomposition_t
Definition: quadratic-program.hh:52
void addRows(const std::size_t &nbRows)
Definition: quadratic-program.hh:80
matrix_t H
Definition: quadratic-program.hh:132
LLT_t llt
Definition: quadratic-program.hh:139
QuadraticProgram(const QuadraticProgram &QP)
Definition: quadratic-program.hh:73
vector_t b
Definition: quadratic-program.hh:133
vector_t xStar
Definition: quadratic-program.hh:148
pinocchio::matrix_t matrix_t
Definition: fwd.hh:145
pinocchio::vector_t vector_t
Definition: fwd.hh:201
pinocchio::value_type value_type
Definition: fwd.hh:157
Definition: quadratic-program.hh:50
Decomposition_t dec
Definition: quadratic-program.hh:147
int activeSetSize
Definition: quadratic-program.hh:142
QuadraticProgram(size_type inputSize)
Definition: quadratic-program.hh:55
Eigen::LLT< matrix_t, Eigen::Lower > LLT_t
Definition: quadratic-program.hh:53
bool bIsZero
Definition: quadratic-program.hh:134
A linear constraint .
Definition: linear-constraint.hh:28
vector_t xStar
is a particular solution.
Definition: linear-constraint.hh:131
matrix_t PK
Projector onto .
Definition: linear-constraint.hh:129
Eigen::VectorXi activeConstraint
Definition: quadratic-program.hh:141
value_type trace
Definition: quadratic-program.hh:140
void reduced(const LinearConstraint &lc, QuadraticProgram &QPr) const
Definition: quadratic-program.hh:97