Class CheapestInsertionOperator
An operator that executes a cheapest insertion operation.
Inheritance
System.Object
CheapestInsertionOperator
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class CheapestInsertionOperator : IOperator<float, STSProblem, STSPObjective, Tour, STSPFitness>
Constructors
CheapestInsertionOperator(Int32, Boolean)
Creates a new cheapest insertion operator.
Declaration
public CheapestInsertionOperator(int n = 1, bool insertNew = false)
Parameters
|
System.Int32
n
|
|
System.Boolean
insertNew
|
Properties
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
|
System.String
|
Methods
Apply(STSProblem, STSPObjective, Tour, out STSPFitness)
Applies this operator.
Declaration
public bool Apply(STSProblem problem, STSPObjective objective, Tour solution, out STSPFitness delta)
Parameters
|
STSProblem
problem
|
|
STSPObjective
objective
|
|
Tour
solution
|
|
STSPFitness
delta
|
Returns
|
System.Boolean
|
Supports(STSPObjective)
Returns true if the given objective is supported.
Declaration
public bool Supports(STSPObjective objective)
Parameters
|
STSPObjective
objective
|
Returns
|
System.Boolean
|