Show / Hide Table of Contents

Class TSPRouter

An algorithm to calculate TSP solutions.

Inheritance
System.Object
TSPRouter
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class TSPRouter : AlgorithmBase

Constructors

TSPRouter(IWeightMatrixAlgorithm<Single>, Int32, Nullable<Int32>, SolverBase<Single, TSProblem, TSPObjective, Tour, Single>)

Creates a new TSP router.

Declaration
public TSPRouter(IWeightMatrixAlgorithm<float> weightMatrixAlgorithm, int first = 0, int ? last = default (int ? ), SolverBase<float, TSProblem, TSPObjective, Tour, float> solver = null)
Parameters
IWeightMatrixAlgorithm<System.Single> weightMatrixAlgorithm

System.Int32 first

System.Nullable<System.Int32> last

SolverBase<System.Single, TSProblem, TSPObjective, Tour, System.Single> solver

Properties

Tour

Gets the tour.

Declaration
public Tour Tour { get; }
Property Value
Tour

WeightMatrix

Gets the weight matrix.

Declaration
public IWeightMatrixAlgorithm<float> WeightMatrix { get; }
Property Value
IWeightMatrixAlgorithm<System.Single>

Methods

DoRun()

Excutes the actual algorithm.

Declaration
protected override void DoRun()
Back to top Built by Itinero, MIT licensed.