10 #ifndef _OCRABASE_SOLVER_H_ 11 #define _OCRABASE_SOLVER_H_ 24 #include <boost/circular_buffer.hpp> 142 void dump(
const std::string& file =
"")
const;
222 bool _isVariableUpToDate;
230 std::vector<const GenericObjective*> _objectives;
234 std::vector<const GenericConstraint*> _constraints;
238 boost::circular_buffer<std::string> _memory;
242 std::string _autodumpFile;
247 #endif //_OCRABASE_SOLVER_H_ void internalAddConstraint(const GenericConstraint &constraint)
void setVariableValue(const VectorXd &value)
void printStatus(std::ostream &os)
void internalRemoveConstraint(const GenericConstraint &constraint)
void internalAddObjective(const GenericObjective &objective)
virtual void doPrepare()=0
OptimizationResult _result
void setValue(const VectorXd &val) const
const OptimizationResult & solve()
const std::vector< int > & findMapping(Variable &var)
#define DEFINE_CLASS_POINTER_TYPEDEFS(Class)
void internalRemoveObjective(const GenericObjective &objective)
void dump(const std::string &file="") const
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
virtual void onObjectiveResize(int timestamp)
void deactivateAutoDump()
virtual void onConstraintResize(int timestamp)
Variable & getProblemVariable()
virtual void doConclude()=0
void setAutoDumpFile(const std::string &file)
This class represents a variable in a mathematical sense.
virtual const std::string & getMoreInfo() const
Declaration file of the Constraint class.
void setMemoryLevel(int level)
const OptimizationResult & getLastResult() const
CompositeVariable & getVariable()
virtual std::string toString()=0
Declaration file of the Objective class.
Declaration file of the Variable class.
virtual void printValuesAtSolution()=0
Declaration file of the OptimizationVariable class.