C# Class SwarmOps.Problems.Rosenbrock

Rosenbrock benchmark problem.
Inheritance: Benchmark
ファイルを表示 Open project: DanWBR/dwsim3 Class Usage Examples

Public Methods

Method Description
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.

Rosenbrock ( int dimensionality, int maxIterations ) : System.Diagnostics

Construct the object.

Method Details

Fitness() public method

Compute and return fitness for the given parameters.
public Fitness ( double x ) : double
x double Candidate solution.
return double

Gradient() public method

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.
return int

Rosenbrock() public method

Construct the object.
public Rosenbrock ( int dimensionality, int maxIterations ) : System.Diagnostics
dimensionality int Dimensionality of the problem (e.g. 20)
maxIterations int Max optimization iterations to perform.
return System.Diagnostics