EggholderFunction Class Reference

The Eggholder function, defined by. More...

Public Member Functions

 EggholderFunction ()
 Initialize the EggholderFunction. More...

 
double Evaluate (const arma::mat &coordinates, const size_t begin, const size_t batchSize) const
 
double Evaluate (const arma::mat &coordinates) const
 
arma::mat GetInitialPoint () const
 Get the starting point. More...

 
void Gradient (const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const
 
void Gradient (const arma::mat &coordinates, arma::mat &gradient)
 
size_t NumFunctions () const
 Return 1 (the number of functions). More...

 
void Shuffle ()
 Shuffle the order of function visitation. More...

 

Detailed Description

The Eggholder function, defined by.

\[ f(x) = -(x_2 + 47) * \sin(\sqrt(\left|x_2 + x_1 / 2 + 47\right|)) - x_1 * \sin(\sqrt(\left|x_1-(x_2 + 47)\right|)) \]

This should optimize to f(x) = -959.6407, at x = [512, 404.2319].

For more information, please refer to:

@article{Jamil2013,
title = {A Literature Survey of Benchmark Functions For Global
Optimization Problems},
author = {Momin Jamil and Xin{-}She Yang},
journal = {CoRR},
year = {2013},
url = {http://arxiv.org/abs/1308.4008}
}

Definition at line 44 of file eggholder_function.hpp.

Constructor & Destructor Documentation

◆ EggholderFunction()

Initialize the EggholderFunction.

Member Function Documentation

◆ Evaluate() [1/2]

double Evaluate ( const arma::mat &  coordinates,
const size_t  begin,
const size_t  batchSize 
) const

◆ Evaluate() [2/2]

double Evaluate ( const arma::mat &  coordinates) const

◆ GetInitialPoint()

arma::mat GetInitialPoint ( ) const
inline

Get the starting point.

Definition at line 60 of file eggholder_function.hpp.

References EggholderFunction::Evaluate(), and EggholderFunction::Gradient().

◆ Gradient() [1/2]

void Gradient ( const arma::mat &  coordinates,
const size_t  begin,
arma::mat &  gradient,
const size_t  batchSize 
) const

◆ Gradient() [2/2]

void Gradient ( const arma::mat &  coordinates,
arma::mat &  gradient 
)

◆ NumFunctions()

size_t NumFunctions ( ) const
inline

Return 1 (the number of functions).

Definition at line 57 of file eggholder_function.hpp.

◆ Shuffle()

void Shuffle ( )

Shuffle the order of function visitation.

This may be called by the optimizer.


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