|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Implementation of De Jong's Function F5 (Shekel's Foxholes). More...
#include <DeJongF5Function.h>
Public Member Functions | |
| DeJongF5Function ()=default | |
| ~DeJongF5Function () override=default | |
| double | evaluate (const std::vector< GeneType > &phenotype) const override |
| Evaluates the foxholes function. | |
| std::size_t | size () const override |
| Returns the dimensionality of the optimization problem. | |
| GeneType | getLowerBound (std::size_t dimension) const override |
| Gets the lower bound for a specific dimension. | |
| GeneType | getUpperBound (std::size_t dimension) const override |
| Gets the upper bound for a specific dimension. | |
Public Member Functions inherited from galib::FitnessFunction< GeneType > | |
| virtual | ~FitnessFunction ()=default |
| virtual std::string | name () const |
| Short identifier used to select a GPU evaluation kernel. | |
| GeneType | getLowerBound () const |
| Convenience method to get the lower bound of the first dimension. | |
| GeneType | getUpperBound () const |
| Convenience method to get the upper bound of the first dimension. | |
Implementation of De Jong's Function F5 (Shekel's Foxholes).
A highly multi-modal 2D function with 25 local minima (foxholes). Global minimum: f(-32, -32) ≈ 0.998.
| GeneType | The numeric type of the genes. |
Definition at line 24 of file DeJongF5Function.h.
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Evaluates the foxholes function.
| phenotype | Must have exactly 2 elements. |
| std::invalid_argument | if phenotype size != 2. |
Implements galib::FitnessFunction< GeneType >.
Definition at line 40 of file DeJongF5Function.h.
|
inlineoverridevirtual |
Gets the lower bound for a specific dimension.
| dimension | Index of the dimension. |
Implements galib::FitnessFunction< GeneType >.
Definition at line 70 of file DeJongF5Function.h.
|
inlineoverridevirtual |
Gets the upper bound for a specific dimension.
| dimension | Index of the dimension. |
Implements galib::FitnessFunction< GeneType >.
Definition at line 74 of file DeJongF5Function.h.
|
inlineoverridevirtual |
Returns the dimensionality of the optimization problem.
Implements galib::FitnessFunction< GeneType >.
Definition at line 66 of file DeJongF5Function.h.