C# Class SampleApp.TSPChromosome

The chromosome is to solve TSP task (Travailing Salesman Problem).
Inheritance: Accord.Genetic.PermutationChromosome
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Clone ( ) : IChromosome

Clone the chromosome

CreateNew ( ) : IChromosome

Create new random chromosome (factory method)

Crossover ( IChromosome pair ) : void

Crossover operator

TSPChromosome ( double map ) : System

Constructor

Protected Methods

Method Description
TSPChromosome ( TSPChromosome source ) : System

Copy Constructor

Private Methods

Method Description
CreateChildUsingCrossover ( ushort parent1, ushort parent2, ushort child ) : void

Method Details

Clone() public method

Clone the chromosome
public Clone ( ) : IChromosome
return IChromosome

CreateNew() public method

Create new random chromosome (factory method)
public CreateNew ( ) : IChromosome
return IChromosome

Crossover() public method

Crossover operator
public Crossover ( IChromosome pair ) : void
pair IChromosome
return void

TSPChromosome() protected method

Copy Constructor
protected TSPChromosome ( TSPChromosome source ) : System
source TSPChromosome
return System

TSPChromosome() public method

Constructor
public TSPChromosome ( double map ) : System
map double
return System