Public Member Functions | List of all members
f2c::obj::BaseObjective< T > Class Template Reference

#include <base_objective.h>

Public Member Functions

template<typename T1 >
double computeCostWithMinimizingSign (const T1 &t1)
 Compute the cost function with minimizing sign. More...
 
template<typename T1 , typename T2 >
double computeCostWithMinimizingSign (const T1 &t1, const T2 &t2)
 
template<typename T1 , typename T2 , typename T3 >
double computeCostWithMinimizingSign (const T1 &t1, const T2 &t2, const T3 &t3)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
double computeCostWithMinimizingSign (const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4)
 
virtual bool isMaximizing () const
 Return true if the objective is to maximize the cost function. More...
 
virtual bool isMinimizing () const
 Return true if the objective is to minimize the cost function. More...
 
virtual ~BaseObjective ()=default
 

Detailed Description

template<typename T>
class f2c::obj::BaseObjective< T >

Definition at line 17 of file base_objective.h.

Constructor & Destructor Documentation

◆ ~BaseObjective()

template<typename T >
virtual f2c::obj::BaseObjective< T >::~BaseObjective ( )
virtualdefault

Member Function Documentation

◆ computeCostWithMinimizingSign() [1/4]

template<typename T >
template<typename T1 >
double f2c::obj::BaseObjective< T >::computeCostWithMinimizingSign ( const T1 &  t1)
inline

Compute the cost function with minimizing sign.

If the objective is to maximize the cost function, the cost is multiplied by -1.

Definition at line 26 of file base_objective.h.

◆ computeCostWithMinimizingSign() [2/4]

template<typename T >
template<typename T1 , typename T2 >
double f2c::obj::BaseObjective< T >::computeCostWithMinimizingSign ( const T1 &  t1,
const T2 &  t2 
)
inline

Definition at line 31 of file base_objective.h.

◆ computeCostWithMinimizingSign() [3/4]

template<typename T >
template<typename T1 , typename T2 , typename T3 >
double f2c::obj::BaseObjective< T >::computeCostWithMinimizingSign ( const T1 &  t1,
const T2 &  t2,
const T3 &  t3 
)
inline

Definition at line 36 of file base_objective.h.

◆ computeCostWithMinimizingSign() [4/4]

template<typename T >
template<typename T1 , typename T2 , typename T3 , typename T4 >
double f2c::obj::BaseObjective< T >::computeCostWithMinimizingSign ( const T1 &  t1,
const T2 &  t2,
const T3 &  t3,
const T4 &  t4 
)
inline

Definition at line 42 of file base_objective.h.

◆ isMaximizing()

template<typename T >
virtual bool f2c::obj::BaseObjective< T >::isMaximizing ( ) const
inlinevirtual

Return true if the objective is to maximize the cost function.

Definition at line 52 of file base_objective.h.

◆ isMinimizing()

template<typename T >
virtual bool f2c::obj::BaseObjective< T >::isMinimizing ( ) const
inlinevirtual

Return true if the objective is to minimize the cost function.

Reimplemented in f2c::obj::FieldCoverage, and f2c::obj::RemArea.

Definition at line 50 of file base_objective.h.


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


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31