Schaffer Class Reference

Schaffer`s f2. More...

#include <MultiObjectiveFunctions.h>

Inheritance diagram for Schaffer:

ObjectiveFunctionVS< double > ObjectiveFunctionT< T * > ObjectiveFunction

List of all members.

Public Member Functions

 Schaffer ()
 Constructor.
 ~Schaffer ()
 Destructor.
unsigned int objectives () const
 return the number of objectives to optimize
void result (double *const &point, std::vector< double > &value)
bool ProposeStartingPoint (double *&point) const
bool utopianFitness (std::vector< double > &value) const
 If possible, this method returns (a bound on) the best possible fitness.
bool nadirFitness (std::vector< double > &value) const
 If possible, this method returns (a bound on) the worst possible fitness.


Detailed Description

Schaffer`s f2.

\[ f_{2}(x)=g(x)+h(x) \]

where

\[ g(x)=x^2 \]

and

\[ h(x)=(x-2)^2 \]

\[ -6 \leq x \leq 6 \]

Definition at line 125 of file MultiObjectiveFunctions.h.


Constructor & Destructor Documentation

Schaffer::Schaffer (  ) 

Constructor.

Definition at line 110 of file MultiObjectiveFunctions.cpp.

References ObjectiveFunction::m_name.

Schaffer::~Schaffer (  ) 

Destructor.

Definition at line 115 of file MultiObjectiveFunctions.cpp.

References ObjectiveFunctionT< T * >::constrainthandler.


Member Function Documentation

bool Schaffer::nadirFitness ( std::vector< double > &  value  )  const [virtual]

If possible, this method returns (a bound on) the worst possible fitness.

For single objective optimization this information is rarely of any use, while for multi objective optimization a so-called nadir point is important for the computation of standard quality indicators like the hypervolume.

Parameters:
fitness component wise worst fitness
Returns:
true if a nadir point is known, false otherwise

Reimplemented from ObjectiveFunctionVS< double >.

Definition at line 151 of file MultiObjectiveFunctions.cpp.

unsigned int Schaffer::objectives (  )  const [virtual]

return the number of objectives to optimize

Implements ObjectiveFunction.

Definition at line 122 of file MultiObjectiveFunctions.cpp.

bool Schaffer::ProposeStartingPoint ( double *&  point  )  const

void Schaffer::result ( double *const &  point,
std::vector< double > &  value 
)

Definition at line 127 of file MultiObjectiveFunctions.cpp.

References ObjectiveFunction::m_timesCalled.

bool Schaffer::utopianFitness ( std::vector< double > &  value  )  const [virtual]

If possible, this method returns (a bound on) the best possible fitness.

For the single objective case the function should return the fitness in the global optimum. For the multi objective case this function should return a utopian point.

Parameters:
fitness component wise utopian fitness
Returns:
true if an utopian point is known, false otherwise

Reimplemented from ObjectiveFunctionVS< double >.

Definition at line 146 of file MultiObjectiveFunctions.cpp.


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