Class CheapestInsertionHelper
Contains extension methods to do cheapest insertion.
Inheritance
System.Object
CheapestInsertionHelper
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 static class CheapestInsertionHelper
Methods
CalculateCheapest(Tour, Single[][], Int32, out Pair)
Calculates the best position to insert a given customer.
Declaration
public static float CalculateCheapest(this Tour tour, float[][] weights, int customer, out Pair location)
Parameters
|
Tour
tour
|
|
System.Single[][]
weights
|
|
System.Int32
customer
|
|
Pair
location
|
Returns
|
System.Single
|
InsertCheapest(Tour, Single[][], Int32)
Inserts the given customer at the best location.
Declaration
public static void InsertCheapest(this Tour tour, float[][] weights, int customer)
Parameters
|
Tour
tour
|
|
System.Single[][]
weights
|
|
System.Int32
customer
|