C# Class GA.Ga

Genetic Algorithm class
Afficher le fichier Open project: homoluden/fedkf-ga Class Usage Examples

Méthodes publiques

Méthode Description
Ga ( ) : System

Default constructor sets mutation rate to 5%, crossover to 80%, population to 100, and generations to 2000.

Ga ( double crossoverRate, double mutationRate, int populationSize, int generationSize, int genomeSize ) : System
Ga ( int genomeSize ) : System
Go ( double maxGeneVal, double minGeneVal ) : void

Method which starts the GA executing.

InitialValues ( ) : void

Private Methods

Méthode Description
Initiation ( ) : void
RouletteSelection ( ) : int

After ranking all the genomes by fitness, use a 'roulette wheel' selection method. This allocates a large probability of selection to those with the highest fitness.

Selection ( ) : void

Method Details

Ga() public méthode

Default constructor sets mutation rate to 5%, crossover to 80%, population to 100, and generations to 2000.
public Ga ( ) : System
Résultat System

Ga() public méthode

public Ga ( double crossoverRate, double mutationRate, int populationSize, int generationSize, int genomeSize ) : System
crossoverRate double
mutationRate double
populationSize int
generationSize int
genomeSize int
Résultat System

Ga() public méthode

public Ga ( int genomeSize ) : System
genomeSize int
Résultat System

Go() public méthode

Method which starts the GA executing.
public Go ( double maxGeneVal, double minGeneVal ) : void
maxGeneVal double
minGeneVal double
Résultat void

InitialValues() public méthode

public InitialValues ( ) : void
Résultat void