ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::fun::SPRLinearlyWeightedCost Class Reference

#include <basicsetpointrequestevaluators.h>

Inheritance diagram for adore::fun::SPRLinearlyWeightedCost:
Inheritance graph
Collaboration diagram for adore::fun::SPRLinearlyWeightedCost:
Collaboration graph

Public Member Functions

void add (double wi, ASPRCost *ci)
 
virtual double getCost (const adore::fun::SetPointRequest &spr) const override
 
virtual std::string getName () const override
 

Private Attributes

std::vector< adore::fun::ASPRCost * > c_
 
std::vector< double > w_
 

Member Function Documentation

◆ add()

void adore::fun::SPRLinearlyWeightedCost::add ( double  wi,
ASPRCost ci 
)
inline

◆ getCost()

virtual double adore::fun::SPRLinearlyWeightedCost::getCost ( const adore::fun::SetPointRequest spr) const
inlineoverridevirtual

getCost - return w_[0]*c_[0](spr) + ... +w_[end]*c_[end](spr)

Implements adore::fun::ASPRCost.

Here is the call graph for this function:

◆ getName()

virtual std::string adore::fun::SPRLinearlyWeightedCost::getName ( ) const
inlineoverridevirtual
Returns
name of cost function or objective

Implements adore::fun::ASPRCost.

Member Data Documentation

◆ c_

std::vector<adore::fun::ASPRCost*> adore::fun::SPRLinearlyWeightedCost::c_
private

◆ w_

std::vector<double> adore::fun::SPRLinearlyWeightedCost::w_
private

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