C# Class SwarmOps.Problems.Penalized2

Penalized2 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.

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

Construct the object.

Protected Methods

Method Description
GetSinX ( double x, double factor ) : 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

GetSinX() protected method

Helper-method used in Fitness method.
protected GetSinX ( double x, double factor ) : double
x double
factor double
return double

Penalized2() public method

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