10 #ifndef _OCRABASE_CML_QUADRATIC_SOLVER_H_ 11 #define _OCRABASE_CML_QUADRATIC_SOLVER_H_ 14 #include "ocra/optim/CompositeVariable.h" 18 #include "cml/QPSolver.h" 85 virtual const MatrixBase&
getP(
void)
const;
86 virtual const MatrixBase&
getA(
void)
const;
87 virtual const MatrixBase&
getC(
void)
const;
88 virtual const VectorBase&
getq(
void)
const;
89 virtual const VectorBase&
getb(
void)
const;
90 virtual const VectorBase&
getd(
void)
const;
91 virtual const VectorBase&
getu(
void)
const;
92 virtual const VectorBase&
getl(
void)
const;
102 virtual const Solver::Result&
doSolve(
void);
118 void updateMatrixDimension(
void);
119 void updateSize(
void);
121 void updateMatrices(
void);
122 void updateEqualityEquations(std::vector<cfl_size_t>& workingMapping);
123 void updateInequalityEquations(std::vector<cfl_size_t>& workingMapping);
124 void updateObjectiveEquations(std::vector<cfl_size_t>& workingMapping);
138 xde::cmlQPSolver* _solver;
148 mutable Vector _minus_k;
149 mutable Matrix _minus_G;
150 mutable Vector _minus_c;
169 #endif //_OCRABASE_CML_QUADRATIC_SOLVER_H_ virtual void addLinearEqualityConstraint(LinearConstraint *constraint)
Declaration file of the QuadraticSolver class.
bool checkConstraints(void)
virtual void removeObjective(QuadraticFunction *obj)
void testSolveCmlQPWithNonFeasiblePb(void)
virtual void addLinearInequalityConstraint(LinearConstraint *constraint)
virtual const VectorBase & getd(void) const
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
virtual const MatrixBase & getA(void) const
virtual const std::string & getMoreInfo(void) const
virtual const MatrixBase & getC(void) const
virtual void removeConstraint(LinearConstraint *constraint)
virtual const VectorBase & getb(void) const
virtual const Solver::Result & doSolve(void)
virtual const MatrixBase & getP(void) const
void setTolerance(double epsilon)
virtual void recomputeVariable(void)
virtual void addObjective(QuadraticFunction *obj, real weight=1.)
virtual const VectorBase & getu(void) const
void setMaxIteration(cfl_size_t maxIter)
virtual void setObjective(QuadraticFunction *obj, real weight=1.)
virtual const VectorBase & getl(void) const
virtual void printValuesAtSolution(void)
void testSolveCmlQP(void)
cfl_size_t getMaxIteration(void) const
virtual const VectorBase & getq(void) const
CmlQuadraticSolver class.
virtual void doPrepare(void)