30 #ifndef IFOPT_INCLUDE_IFOPT_COST_TERM_H_ 31 #define IFOPT_INCLUDE_IFOPT_COST_TERM_H_ 54 virtual double GetCost()
const = 0;
virtual double GetCost() const =0
Returns the scalar cost term calculated from the variables.
virtual VecBound GetBounds() const overridefinal
Returns infinite bounds (e.g. no bounds).
A container holding a single cost term.
A container holding a set of related constraints.
virtual ~CostTerm()=default
CostTerm(const std::string &name)
virtual VectorXd GetValues() const overridefinal
Wrapper function that converts double to Eigen::VectorXd.
std::vector< Bounds > VecBound