38 for (
auto factor : qp.
cost) {
42 return no_constant_factor;
46 using QPSolver = ActiveSetSolver<QP, QPPolicy, QPInitSolver>;
Active set method for solving LP, QP problems.
Struct contains factor graphs of a Quadratic Programming problem.
Definition: QP.h:31
static const GaussianFactorGraph buildCostFunction(const QP &qp, const VectorValues &xk=VectorValues())
Simply the cost of the QP problem.
Definition: QPSolver.h:35
A Linear Factor Graph is a factor graph where all factors are Gaussian, i.e.
Definition: GaussianFactorGraph.h:65
Policy for ActivetSetSolver to solve Linear Programming.
Definition: QPSolver.h:29
This class represents a collection of vector-valued variables associated each with a unique integer i...
Definition: VectorValues.h:73
Factor graphs of a Quadratic Programming problem.
This finds a feasible solution for a QP problem.
static constexpr double maxAlpha
Maximum alpha for line search x'=xk + alpha*p, where p is the cost gradient For QP,...
Definition: QPSolver.h:32
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
A Gaussian factor using the canonical parameters (information form)
Definition: HessianFactor.h:101
std::enable_if< std::is_base_of< FactorType, DERIVEDFACTOR >::value >::type push_back(boost::shared_ptr< DERIVEDFACTOR > factor)
Add a factor directly using a shared_ptr.
Definition: FactorGraph.h:159
GaussianFactorGraph cost
Quadratic cost factors.
Definition: QP.h:32