Sphere Class Reference

Sphere function. More...

#include <ObjectiveFunctions.h>

Inheritance diagram for Sphere:

ObjectiveFunctionVS< double > ObjectiveFunctionT< T * > ObjectiveFunction

List of all members.

Public Member Functions

 Sphere (unsigned d)
 Constructor.
 ~Sphere ()
 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.


Detailed Description

Sphere function.

Rotation invariant Paraboloid f(x) = <x, x>.

Definition at line 52 of file ObjectiveFunctions.h.


Constructor & Destructor Documentation

Sphere::Sphere ( unsigned  d  ) 

Constructor.

Definition at line 44 of file ObjectiveFunctions.cpp.

References ObjectiveFunction::m_name.

Sphere::~Sphere (  ) 

Destructor.

Definition at line 49 of file ObjectiveFunctions.cpp.


Member Function Documentation

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

return the number of objectives to optimize

Implements ObjectiveFunction.

Definition at line 53 of file ObjectiveFunctions.cpp.

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

Definition at line 68 of file ObjectiveFunctions.cpp.

References ObjectiveFunctionVS< double >::m_dimension.

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

bool Sphere::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 83 of file ObjectiveFunctions.cpp.


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