Show / Hide Table of Contents

Class STSPRouter

An algorithm to calculate STSP solutions.

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

Constructors

STSPRouter(IWeightMatrixAlgorithm<Single>, Single, Int32, Nullable<Int32>, SolverBase<Single, STSProblem, STSPObjective, Tour, STSPFitness>)

Creates a new TSP router.

Declaration
public STSPRouter(IWeightMatrixAlgorithm<float> weightMatrixAlgorithm, float max, int first = 0, int ? last = default (int ? ), SolverBase<float, STSProblem, STSPObjective, Tour, STSPFitness> solver = null)
Parameters
IWeightMatrixAlgorithm<System.Single> weightMatrixAlgorithm

System.Single max

System.Int32 first

System.Nullable<System.Int32> last

SolverBase<System.Single, STSProblem, STSPObjective, Tour, STSPFitness> 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.