C# Class PlotMyFace.TravellingSalesmanAlgorithm

Show file Open project: ms-iot/plotmyface Class Usage Examples

Public Methods

Method Description
GetBestSolutionSoFar ( ) : IEnumerable
MutateDuplicates ( ) : void
Reproduce ( ) : void
TravellingSalesmanAlgorithm ( Location startLocation, Location destinations, int populationCount ) : System

Private Methods

Method Description
_GetFakeShortest ( Location destinations ) : PlotMyFace.Location[]
_Reproduce ( Location parent ) : PlotMyFace.Location[]
_Sort ( double>.KeyValuePair value1, double>.KeyValuePair value2 ) : int

Method Details

GetBestSolutionSoFar() public method

public GetBestSolutionSoFar ( ) : IEnumerable
return IEnumerable

MutateDuplicates() public method

public MutateDuplicates ( ) : void
return void

Reproduce() public method

public Reproduce ( ) : void
return void

TravellingSalesmanAlgorithm() public method

public TravellingSalesmanAlgorithm ( Location startLocation, Location destinations, int populationCount ) : System
startLocation Location
destinations Location
populationCount int
return System