C# Class SampleApp.TSPFitnessFunction

Fitness function for TSP task (Travaling Salasman Problem)
Inheritance: IFitnessFunction
ファイルを表示 Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Evaluate ( IChromosome chromosome ) : double

Evaluate chromosome - calculates its fitness value

PathLength ( IChromosome chromosome ) : double

Calculate path length represented by the specified chromosome

TSPFitnessFunction ( double map ) : System
Translate ( IChromosome chromosome ) : object

Translate genotype to phenotype

Method Details

Evaluate() public method

Evaluate chromosome - calculates its fitness value
public Evaluate ( IChromosome chromosome ) : double
chromosome IChromosome
return double

PathLength() public method

Calculate path length represented by the specified chromosome
public PathLength ( IChromosome chromosome ) : double
chromosome IChromosome
return double

TSPFitnessFunction() public method

public TSPFitnessFunction ( double map ) : System
map double
return System

Translate() public method

Translate genotype to phenotype
public Translate ( IChromosome chromosome ) : object
chromosome IChromosome
return object