Show / Hide Table of Contents

Class TSPTWRouter

An algorithm to calculate TSP-TW solutions with u-turn prevention.

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

Constructors

TSPTWRouter(IDirectedWeightMatrixAlgorithm<Single>, TimeWindow[], Single, Int32, Nullable<Int32>, SolverBase<Single, TSPTWProblem, TSPTWObjective, Tour, Single>)

Creates a new TSP router.

Declaration
public TSPTWRouter(IDirectedWeightMatrixAlgorithm<float> weightMatrixAlgorithm, TimeWindow[] windows, float turnPenalty, int first, int ? last = default (int ? ), SolverBase<float, TSPTWProblem, TSPTWObjective, Tour, float> solver = null)
Parameters
IDirectedWeightMatrixAlgorithm<System.Single> weightMatrixAlgorithm

TimeWindow[] windows

System.Single turnPenalty

System.Int32 first

System.Nullable<System.Int32> last

SolverBase<System.Single, TSPTWProblem, TSPTWObjective, 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()
Back to top Built by Itinero, MIT licensed.