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, Int32)
Creates a new cheapest insertion operator.
Declaration
public CheapestInsertionOperator(int toRemove = 1, int toInsert = 0)
Parameters
|
System.Int32
toRemove
|
|
System.Int32
toInsert
|
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
|