C# Class SwarmOps.Problems.Penalized1

Penalized1 benchmark problem.
Inheritance: Penalized
Datei anzeigen Open project: DanWBR/dwsim3 Class Usage Examples

Public Methods

Method Description
Fitness ( double x ) : double

Compute and return fitness for the given parameters.

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

Construct the object.

Protected Methods

Method Description
GetSinY ( double x ) : double

Helper-method used in Fitness method.

GetY ( double x ) : double

Helper-method used in Fitness method.

Method Details

Fitness() public method

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

GetSinY() protected method

Helper-method used in Fitness method.
protected GetSinY ( double x ) : double
x double
return double

GetY() protected method

Helper-method used in Fitness method.
protected GetY ( double x ) : double
x double
return double

Penalized1() public method

Construct the object.
public Penalized1 ( 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