A container holding a single cost term. More...
#include <cost_term.h>
Public Member Functions | |
CostTerm (const std::string &name) | |
virtual VecBound | GetBounds () const override final |
Returns infinite bounds (e.g. no bounds). | |
virtual VectorXd | GetValues () const override final |
Wrapper function that converts double to Eigen::VectorXd. | |
virtual | ~CostTerm () |
Private Member Functions | |
virtual double | GetCost () const =0 |
Returns the scalar cost term calculated from the variables . |
A container holding a single cost term.
This container builds a scalar cost term from the values of the variables. This can be seen as a constraint with only one row and no bounds.
Definition at line 45 of file cost_term.h.
ifopt::CostTerm::CostTerm | ( | const std::string & | name | ) |
virtual ifopt::CostTerm::~CostTerm | ( | ) | [virtual] |
CostTerm::VecBound ifopt::CostTerm::GetBounds | ( | ) | const [override, virtual] |
Returns infinite bounds (e.g. no bounds).
Implements ifopt::Component.
virtual double ifopt::CostTerm::GetCost | ( | ) | const [private, pure virtual] |
Returns the scalar cost term calculated from the variables
.
Implemented in ifopt::ExCost.
CostTerm::VectorXd ifopt::CostTerm::GetValues | ( | ) | const [override, virtual] |
Wrapper function that converts double to Eigen::VectorXd.
Implements ifopt::Component.