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

Sphere benchmark problem with thread-sleeping to simulate a time-consuming problem.
Наследование: Sphere
Показать файл Открыть проект

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

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

Compute and return fitness for the given parameters.

SphereSleep ( int sleepMilliSeconds, int dimensionality, int maxIterations ) : System.Diagnostics

Construct the object.

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

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

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

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

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