Class TSPRouter
An algorithm to calculate u-turn aware TSP solutions.
Inheritance
System.Object
TSPRouter
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class TSPRouter : AlgorithmBase
Constructors
TSPRouter(IDirectedWeightMatrixAlgorithm<Single>, Single, Int32, Nullable<Int32>, SolverBase<Single, TSProblem, TSPObjective, Tour, Single>)
Creates a new TSP router.
Declaration
public TSPRouter(IDirectedWeightMatrixAlgorithm<float> weightMatrixAlgorithm, float turnPenalty, int first, int ? last = default (int ? ), SolverBase<float, TSProblem, TSPObjective, Tour, float> solver = null)
Parameters
|
IDirectedWeightMatrixAlgorithm<System.Single>
weightMatrixAlgorithm
|
|
System.Single
turnPenalty
|
|
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 IDirectedWeightMatrixAlgorithm<float> WeightMatrix { get; }
Property Value
|
IDirectedWeightMatrixAlgorithm<System.Single>
|
Methods
DoRun()
Executes the actual algorithm.
Declaration
protected override void DoRun()