Class TSPTWObjective
The TSP-TW objective.
Inheritance
System.Object
TSPTWObjective
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class TSPTWObjective : ObjectiveBase<TSPTWProblem, 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 bool IsNonContinuous { get; }
Property Value
|
System.Boolean
|
Name
Gets the name of this objective.
Declaration
public override 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(TSPTWProblem, Single, Single)
Adds the two given fitness values.
Declaration
public override sealed float Add(TSPTWProblem problem, float fitness1, float fitness2)
Parameters
|
TSPTWProblem
problem
|
|
System.Single
fitness1
|
|
System.Single
fitness2
|
Returns
|
System.Single
|
Calculate(TSPTWProblem, Tour)
Calculates the fitness value of the given solution.
Declaration
public override sealed float Calculate(TSPTWProblem problem, Tour solution)
Parameters
|
TSPTWProblem
problem
|
|
Tour
solution
|
Returns
|
System.Single
|
CompareTo(TSPTWProblem, Single, Single)
Compares the two fitness values.
Declaration
public override sealed int CompareTo(TSPTWProblem problem, float fitness1, float fitness2)
Parameters
|
TSPTWProblem
problem
|
|
System.Single
fitness1
|
|
System.Single
fitness2
|
Returns
|
System.Int32
|
IsZero(TSPTWProblem, Single)
Returns true if the given fitness value is zero.
Declaration
public override sealed bool IsZero(TSPTWProblem problem, float fitness)
Parameters
|
TSPTWProblem
problem
|
|
System.Single
fitness
|
Returns
|
System.Boolean
|
Subtract(TSPTWProblem, Single, Single)
Subtracts the given fitness values.
Declaration
public override sealed float Subtract(TSPTWProblem problem, float fitness1, float fitness2)
Parameters
|
TSPTWProblem
problem
|
|
System.Single
fitness1
|
|
System.Single
fitness2
|
Returns
|
System.Single
|