Show / Hide Table of Contents

Class TSPTWProblem

The default TSP-TW profile definition.

Inheritance
System.Object
TSPTWProblem
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class TSPTWProblem

Constructors

TSPTWProblem(Int32, Int32, Single[][], TimeWindow[])

Creates a new TSP-TW, 'closed' when first equals last.

Declaration
public TSPTWProblem(int first, int last, float[][] weights, TimeWindow[] windows)
Parameters
System.Int32 first

System.Int32 last

System.Single[][] weights

TimeWindow[] windows

TSPTWProblem(Int32, Single[][], TimeWindow[])

Creates a new 'open' TSP-TW with only a start customer.

Declaration
public TSPTWProblem(int first, float[][] times, TimeWindow[] windows)
Parameters
System.Int32 first

System.Single[][] times

TimeWindow[] windows

Properties

First

Gets the first customer.

Declaration
public int First { get; set; }
Property Value
System.Int32

Last

Gets the last customer if the problem is closed.

Declaration
public int ? Last { get; set; }
Property Value
System.Nullable<System.Int32>

Times

Gets the weights.

Declaration
public float[][] Times { get; set; }
Property Value
System.Single[][]

Windows

Gets the windows.

Declaration
public TimeWindow[] Windows { get; set; }
Property Value
TimeWindow[]

Methods

Clone()

Creates a deep-copy of this problem.

Declaration
public TSPTWProblem Clone()
Returns
TSPTWProblem

Solve()

Solves this problim using a default solver.

Declaration
public Tour Solve()
Returns
Tour

Solve(ISolver<Single, TSPTWProblem, TSPTWObjective, Tour, Single>)

Solvers this problem using the given solver.

Declaration
public Tour Solve(ISolver<float, TSPTWProblem, TSPTWObjective, Tour, float> solver)
Parameters
ISolver<System.Single, TSPTWProblem, TSPTWObjective, Tour, System.Single> solver

Returns
Tour

ToClosed()

Converts this problem to it's closed equivalent.

Declaration
public TSPTWProblem ToClosed()
Returns
TSPTWProblem

Back to top Built by Itinero, MIT licensed.