Public Member Functions | Private Member Functions
ifopt::CostTerm Class Reference

A container holding a single cost term. More...

#include <cost_term.h>

Inheritance diagram for ifopt::CostTerm:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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.

See also:
Component

Definition at line 45 of file cost_term.h.


Constructor & Destructor Documentation

ifopt::CostTerm::CostTerm ( const std::string &  name)

Definition at line 78 of file leaves.cc.

virtual ifopt::CostTerm::~CostTerm ( ) [virtual]

Member Function Documentation

CostTerm::VecBound ifopt::CostTerm::GetBounds ( ) const [override, virtual]

Returns infinite bounds (e.g. no bounds).

Implements ifopt::Component.

Definition at line 91 of file leaves.cc.

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.

Definition at line 83 of file leaves.cc.


The documentation for this class was generated from the following files:


ifopt_core
Author(s): Alexander W. Winkler
autogenerated on Sat Apr 21 2018 03:01:48