Свойство | Тип | Описание | |
---|---|---|---|
fitness | double |
Метод | Описание | |
---|---|---|
Clone ( ) : IChromosome |
Clone the chromosome. The method clones the chromosome returning the exact copy of it. |
|
CompareTo ( object o ) : int |
Compare two chromosomes.
|
|
CreateNew ( ) : IChromosome |
Create new random chromosome with same parameters (factory method). The method creates new chromosome of the same type, but randomly initialized. The method is useful as factory method for those classes, which work with chromosome's interface, but not with particular chromosome class. |
|
Crossover ( IChromosome pair ) : void |
Crossover operator. The method performs crossover between two chromosomes – interchanging some parts of chromosomes. |
|
Evaluate ( IFitnessFunction function ) : void |
Evaluate chromosome with specified fitness function. Calculates chromosome's fitness using the specifed fitness function. |
|
Generate ( ) : void |
Generate random chromosome value. Regenerates chromosome's value using random number generator. |
|
Mutate ( ) : void |
Mutation operator. The method performs chromosome's mutation, changing its part randomly. |
public CompareTo ( object o ) : int | ||
o | object | Binary chromosome to compare to. |
Результат | int |
public abstract CreateNew ( ) : IChromosome | ||
Результат | IChromosome |
public abstract Crossover ( IChromosome pair ) : void | ||
pair | IChromosome | Pair chromosome to crossover with. |
Результат | void |
public Evaluate ( IFitnessFunction function ) : void | ||
function | IFitnessFunction | Fitness function to use for evaluation of the chromosome. |
Результат | void |