메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 |
public Ga ( double crossoverRate, double mutationRate, int populationSize, int generationSize, int genomeSize ) : System | ||
crossoverRate | double | |
mutationRate | double | |
populationSize | int | |
generationSize | int | |
genomeSize | int | |
리턴 | System |
public Go ( double maxGeneVal, double minGeneVal ) : void | ||
maxGeneVal | double | |
minGeneVal | double | |
리턴 | void |