Méthode | Description | |
---|---|---|
Evaluate ( IChromosome chromosome ) : double |
Evaluates chromosome. The method calculates fitness value of the specified chromosome. |
|
OptimizationFunction ( double x, double y ) : double |
Function to optimize. The method should be overloaded by inherited class to specify the optimization function. |
|
OptimizationFunction2D ( |
Initializes a new instance of the OptimizationFunction2D class.
|
|
Translate ( IChromosome chromosome ) : double[] |
Translates genotype to phenotype The method returns array of two double values, which represent function's input point (X and Y) encoded by the specified chromosome. |
public Evaluate ( IChromosome chromosome ) : double | ||
chromosome | IChromosome | Chromosome to evaluate. |
Résultat | double |
public abstract OptimizationFunction ( double x, double y ) : double | ||
x | double | Function X input value. |
y | double | Function Y input value. |
Résultat | double |
public OptimizationFunction2D ( |
||
rangeX | Specifies X variable's range. | |
rangeY | Specifies Y variable's range. | |
Résultat | System |
public Translate ( IChromosome chromosome ) : double[] | ||
chromosome | IChromosome | Chromosome, which genoteype should be /// translated to phenotype |
Résultat | double[] |