Show / Hide Table of Contents

Class TSPObjective

The default TSP objective.

Inheritance
System.Object
TSPObjective
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class TSPObjective : ObjectiveBase<TSProblem, Tour, float>

Properties

Infinite

Gets the value that represents infinity.

Declaration
public override sealed float Infinite { get; }
Property Value
System.Single

IsNonContinuous

Returns true if the object is non-linear.

Declaration
public override sealed bool IsNonContinuous { get; }
Property Value
System.Boolean

Name

Gets the name of this objective.

Declaration
public override sealed string Name { get; }
Property Value
System.String

Zero

Gets the value that represents 0.

Declaration
public override sealed float Zero { get; }
Property Value
System.Single

Methods

Add(TSProblem, Single, Single)

Adds the two given fitness values.

Declaration
public override sealed float Add(TSProblem problem, float fitness1, float fitness2)
Parameters
TSProblem problem

System.Single fitness1

System.Single fitness2

Returns
System.Single

Calculate(TSProblem, Tour)

Calculates the fitness value of the given solution.

Declaration
public override sealed float Calculate(TSProblem problem, Tour solution)
Parameters
TSProblem problem

Tour solution

Returns
System.Single

CompareTo(TSProblem, Single, Single)

Compares the two fitness values.

Declaration
public override sealed int CompareTo(TSProblem problem, float fitness1, float fitness2)
Parameters
TSProblem problem

System.Single fitness1

System.Single fitness2

Returns
System.Int32

IsZero(TSProblem, Single)

Returns true if the given fitness value is zero.

Declaration
public override sealed bool IsZero(TSProblem problem, float fitness)
Parameters
TSProblem problem

System.Single fitness

Returns
System.Boolean

Subtract(TSProblem, Single, Single)

Subtracts the given fitness values.

Declaration
public override sealed float Subtract(TSProblem problem, float fitness1, float fitness2)
Parameters
TSProblem problem

System.Single fitness1

System.Single fitness2

Returns
System.Single

Back to top Built by Itinero, MIT licensed.