C# 클래스 GA.Ga

Genetic Algorithm class
파일 보기 프로젝트 열기: homoluden/fedkf-ga 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Ga() 공개 메소드

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

Ga() 공개 메소드

public Ga ( double crossoverRate, double mutationRate, int populationSize, int generationSize, int genomeSize ) : System
crossoverRate double
mutationRate double
populationSize int
generationSize int
genomeSize int
리턴 System

Ga() 공개 메소드

public Ga ( int genomeSize ) : System
genomeSize int
리턴 System

Go() 공개 메소드

Method which starts the GA executing.
public Go ( double maxGeneVal, double minGeneVal ) : void
maxGeneVal double
minGeneVal double
리턴 void

InitialValues() 공개 메소드

public InitialValues ( ) : void
리턴 void