WSF
wsf::space::BlendedCost Class Reference

#include <WsfOrbitalTargetingCost.hpp>

Inheritance diagram for wsf::space::BlendedCost:
Collaboration diagram for wsf::space::BlendedCost:

Public Member Functions

 BlendedCost ()=default
 BlendedCost (const BlendedCost &aOther)=default
 BlendedCost (double aA_Value, double aB_Value, double aC_Value)
BlendedCostClone () const override
bool ProcessInput (UtInput &aInput) override
double operator() (double aDt, double aDv) const override
 The cost function is a mapping from a delta-t, delta-v value pair into the real numbers.
const char * GetScriptClassName () const override
bool IsLeastTime () const override
 Return if this cost is equivalent to a least time optimization.
bool IsValid () const override
 Return if the cost function has a valid configuration.
std::string GetConfigurationRequirements () const override
 Return a text description of the requirements on the cost function to be considered valid.
double GetA_Value () const
double GetB_Value () const
double GetC_Value () const
void SetA_Value (double aA_Value)
void SetB_Value (double aB_Value)
void SetC_Value (double aC_Value)

Detailed Description

The blended cost function contains polynomials in delta-t and delta-v up to first order in each. The function depends on three parameters, A, B, and C as follows: g(dt, dv) = A * dt + B * dv + C * dt * dv. A valid configuration of this object will have at least one of {A, B, C} non-zero. This contains least-time and least-delta-v as special cases.

Constructor & Destructor Documentation

◆ BlendedCost() [1/3]

wsf::space::BlendedCost::BlendedCost ( )
default

Referenced by BlendedCost(), and Clone().

◆ BlendedCost() [2/3]

wsf::space::BlendedCost::BlendedCost ( const BlendedCost & aOther)
default

References BlendedCost().

◆ BlendedCost() [3/3]

wsf::space::BlendedCost::BlendedCost ( double aA_Value,
double aB_Value,
double aC_Value )
inline

Member Function Documentation

◆ Clone()

BlendedCost * wsf::space::BlendedCost::Clone ( ) const
inlineoverridevirtual

◆ GetA_Value()

double wsf::space::BlendedCost::GetA_Value ( ) const
inline

◆ GetB_Value()

double wsf::space::BlendedCost::GetB_Value ( ) const
inline

◆ GetC_Value()

double wsf::space::BlendedCost::GetC_Value ( ) const
inline

◆ GetConfigurationRequirements()

std::string wsf::space::BlendedCost::GetConfigurationRequirements ( ) const
overridevirtual

Return a text description of the requirements on the cost function to be considered valid.

Implements wsf::space::OrbitalTargetingCost.

◆ GetScriptClassName()

const char * wsf::space::BlendedCost::GetScriptClassName ( ) const
inlineoverride

◆ IsLeastTime()

bool wsf::space::BlendedCost::IsLeastTime ( ) const
overridevirtual

Return if this cost is equivalent to a least time optimization.

Implements wsf::space::OrbitalTargetingCost.

◆ IsValid()

bool wsf::space::BlendedCost::IsValid ( ) const
overridevirtual

Return if the cost function has a valid configuration.

Implements wsf::space::OrbitalTargetingCost.

◆ operator()()

double wsf::space::BlendedCost::operator() ( double aDt,
double aDv ) const
overridevirtual

The cost function is a mapping from a delta-t, delta-v value pair into the real numbers.

Implements wsf::space::OrbitalTargetingCost.

◆ ProcessInput()

bool wsf::space::BlendedCost::ProcessInput ( UtInput & aInput)
overridevirtual

Reimplemented from wsf::space::OrbitalTargetingCost.

◆ SetA_Value()

void wsf::space::BlendedCost::SetA_Value ( double aA_Value)
inline

◆ SetB_Value()

void wsf::space::BlendedCost::SetB_Value ( double aB_Value)
inline

◆ SetC_Value()

void wsf::space::BlendedCost::SetC_Value ( double aC_Value)
inline

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved