Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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.
|
public Ackley ( 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 |
public Fitness ( double x ) : double | ||
x | double | Candidate solution. |
return | double |
public Gradient ( double x, double &v ) : int | ||
x | double | Candidate solution. |
v | double | Array for holding the gradient. |
return | int |