Show / Hide Table of Contents

Class STSPObjective

The default TSP objective.

Inheritance
System.Object
STSPObjective
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class STSPObjective : ObjectiveBase<STSProblem, Tour, STSPFitness>

Properties

Infinite

Gets the value that represents infinity.

Declaration
public override sealed STSPFitness Infinite { get; }
Property Value
STSPFitness

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 STSPFitness Zero { get; }
Property Value
STSPFitness

Methods

Add(STSProblem, STSPFitness, STSPFitness)

Adds the two given fitness values.

Declaration
public override sealed STSPFitness Add(STSProblem problem, STSPFitness fitness1, STSPFitness fitness2)
Parameters
STSProblem problem

STSPFitness fitness1

STSPFitness fitness2

Returns
STSPFitness

Calculate(STSProblem, Tour)

Calculates the fitness value of the given solution.

Declaration
public override sealed STSPFitness Calculate(STSProblem problem, Tour solution)
Parameters
STSProblem problem

Tour solution

Returns
STSPFitness

CompareTo(STSProblem, STSPFitness, STSPFitness)

Compares the two fitness values.

Declaration
public override sealed int CompareTo(STSProblem problem, STSPFitness fitness1, STSPFitness fitness2)
Parameters
STSProblem problem

STSPFitness fitness1

STSPFitness fitness2

Returns
System.Int32

IsZero(STSProblem, STSPFitness)

Returns true if the given fitness value is zero.

Declaration
public override sealed bool IsZero(STSProblem problem, STSPFitness fitness)
Parameters
STSProblem problem

STSPFitness fitness

Returns
System.Boolean

Subtract(STSProblem, STSPFitness, STSPFitness)

Subtracts the given fitness values.

Declaration
public override sealed STSPFitness Subtract(STSProblem problem, STSPFitness fitness1, STSPFitness fitness2)
Parameters
STSProblem problem

STSPFitness fitness1

STSPFitness fitness2

Returns
STSPFitness

Back to top Built by Itinero, MIT licensed.