Show / Hide Table of Contents

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, TSProblem, TSPObjective, Tour, float>

Constructors

CheapestInsertionOperator(Int32)

Creates a new cheapest insertion operator.

Declaration
public CheapestInsertionOperator(int n = 1)
Parameters
System.Int32 n

Properties

Name

Gets the name.

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

Methods

Apply(TSProblem, TSPObjective, Tour, out Single)

Applies this operator.

Declaration
public bool Apply(TSProblem problem, TSPObjective objective, Tour solution, out float delta)
Parameters
TSProblem problem

TSPObjective objective

Tour solution

System.Single delta

Returns
System.Boolean

Supports(TSPObjective)

Returns true if the given objective is supported.

Declaration
public bool Supports(TSPObjective objective)
Parameters
TSPObjective objective

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.