Ackley Class Reference

Generalized Ackley's function. More...

#include <ObjectiveFunctions.h>

Inheritance diagram for Ackley:

ObjectiveFunctionVS< double > ObjectiveFunctionT< T * > ObjectiveFunction

List of all members.

Public Member Functions

 Ackley (unsigned d=30)
 Constructor.
 ~Ackley ()
 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 > &fitness) const
 If possible, this method returns (a bound on) the best possible fitness.


Detailed Description

Generalized Ackley's function.

The generalized Ackley's function:

\[ f_{Ackley}(x)=-20\cdot \exp\left(-0.2\sqrt{\frac{1}{n}\cdot\sum\limits_{i=1}^{n}x_{i}^{2}}\right)\\ - \exp\left(\frac{1}{n}\cdot\sum\limits_{i=1}^{n}\cos(2\pi x_{i})\right) + 20 + \exp(1)\enspace \]

where

\[ -32 \leq x_{i} \leq 32 \]

Definition at line 235 of file ObjectiveFunctions.h.


Constructor & Destructor Documentation

Ackley::Ackley ( unsigned  d = 30  ) 

Constructor.

Definition at line 233 of file ObjectiveFunctions.cpp.

References ObjectiveFunction::m_name.

Ackley::~Ackley (  ) 

Destructor.

Definition at line 238 of file ObjectiveFunctions.cpp.

References ObjectiveFunctionT< T * >::constrainthandler.


Member Function Documentation

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

return the number of objectives to optimize

Implements ObjectiveFunction.

Definition at line 244 of file ObjectiveFunctions.cpp.

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

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

bool Ackley::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 282 of file ObjectiveFunctions.cpp.


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