C# Класс SwarmOps.Problems.Ackley

Ackley benchmark problem.
Наследование: Benchmark
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Ackley ( int dimensionality, int maxIterations ) : System.Diagnostics

Construct the object.

Fitness ( double x ) : double

Compute and return fitness for the given parameters.

Gradient ( double x, double &v ) : int

Compute the gradient of the fitness-function.

Защищенные методы

Метод Описание
CosSum ( double x ) : double

Helper-method used in both the Fitness- and Gradient-methods.

SqrtSum ( double x ) : double

Helper-method used in both the Fitness- and Gradient-methods.

Описание методов

Ackley() публичный Метод

Construct the object.
public Ackley ( int dimensionality, int maxIterations ) : System.Diagnostics
dimensionality int Dimensionality of the problem (e.g. 20)
maxIterations int Max optimization iterations to perform.
Результат System.Diagnostics

CosSum() защищенный Метод

Helper-method used in both the Fitness- and Gradient-methods.
protected CosSum ( double x ) : double
x double
Результат double

Fitness() публичный Метод

Compute and return fitness for the given parameters.
public Fitness ( double x ) : double
x double Candidate solution.
Результат double

Gradient() публичный Метод

Compute the gradient of the fitness-function.
public Gradient ( double x, double &v ) : int
x double Candidate solution.
v double Array for holding the gradient.
Результат int

SqrtSum() защищенный Метод

Helper-method used in both the Fitness- and Gradient-methods.
protected SqrtSum ( double x ) : double
x double
Результат double