30 #ifndef IFOPT_INCLUDE_IFOPT_COST_TERM_H_ 31 #define IFOPT_INCLUDE_IFOPT_COST_TERM_H_ 55 virtual double GetCost()
const = 0;
71 void Print (
double tol,
int& index)
const final;
virtual double GetCost() const =0
Returns the scalar cost term calculated from the variables.
A container holding a single cost term.
A container holding a set of related constraints.
VecBound GetBounds() const final
Returns infinite bounds (e.g. no bounds).
void Print(double tol, int &index) const final
virtual ~CostTerm()=default
common namespace for all elements in this library.
CostTerm(const std::string &name)
VectorXd GetValues() const final
Wrapper function that converts double to Eigen::VectorXd.
std::vector< Bounds > VecBound