Show / Hide Table of Contents

Class TSPTWObjectiveBase

An abstract base class for all TSP-TW objectives.

Inheritance
System.Object
TSPTWObjectiveBase
TSPTWFeasibleObjective
TSPTWObjective
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public abstract class TSPTWObjectiveBase : ObjectiveBase<TSPTWProblem, Tour, float>

Methods

Calculate(TSPTWProblem, IEnumerable<Int32>)

Calculates the fitness value of the given tour, assumes the tour is closed.

Declaration
public abstract float Calculate(TSPTWProblem problem, IEnumerable<int> tour)
Parameters
TSPTWProblem problem

IEnumerable<System.Int32> tour

Returns
System.Single

Calculate(TSPTWProblem, IEnumerable<Int32>, out Int32, out Single, out Single, out Single, ref Boolean[])

Calculates the fitness value of the given tour, assumes the tour is closed.

Declaration
public abstract float Calculate(TSPTWProblem problem, IEnumerable<int> tour, out int violated, out float violatedTime, out float waitTime, out float time, ref bool[] validFlags)
Parameters
TSPTWProblem problem

IEnumerable<System.Int32> tour

System.Int32 violated

System.Single violatedTime

System.Single waitTime

System.Single time

System.Boolean[] validFlags

Returns
System.Single

Back to top Built by Itinero, MIT licensed.