Show / Hide Table of Contents

Class Local1Shift<TObjective>

A local search procedure to move around and improve the time window 'violations' in a solution.

Inheritance
System.Object
Local1Shift<TObjective>
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Local1Shift<TObjective> : IOperator<float, TSPTWProblem, TObjective, Tour, float> where TObjective : TSPTWObjectiveBase
Type Parameters
TObjective

Constructors

Local1Shift()

Creates a new operator.

Declaration
public Local1Shift()

Local1Shift(Boolean)

Creates a new operator.

Declaration
public Local1Shift(bool assumeFeasible)
Parameters
System.Boolean assumeFeasible

Properties

Name

Returns the name of the operator.

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

Methods

Apply(TSPTWProblem, TObjective, Tour, out Single)

Returns true if there was an improvement, false otherwise.

Declaration
public bool Apply(TSPTWProblem problem, TObjective objective, Tour solution, out float delta)
Parameters
TSPTWProblem problem

TObjective objective

Tour solution

System.Single delta

Returns
System.Boolean

MoveNonViolatedBackward(TSPTWProblem, TObjective, Tour, out Single)

Returns true if there was an improvement, false otherwise.

Declaration
public bool MoveNonViolatedBackward(TSPTWProblem problem, TObjective objective, Tour solution, out float delta)
Parameters
TSPTWProblem problem

TObjective objective

Tour solution

System.Single delta

Returns
System.Boolean

MoveNonViolatedForward(TSPTWProblem, TObjective, Tour, out Single)

Returns true if there was an improvement, false otherwise.

Declaration
public bool MoveNonViolatedForward(TSPTWProblem problem, TObjective objective, Tour solution, out float delta)
Parameters
TSPTWProblem problem

TObjective objective

Tour solution

System.Single delta

Returns
System.Boolean

MoveViolatedBackward(TSPTWProblem, TObjective, Tour, out Single)

Returns true if there was an improvement, false otherwise.

Declaration
public bool MoveViolatedBackward(TSPTWProblem problem, TObjective objective, Tour solution, out float delta)
Parameters
TSPTWProblem problem

TObjective objective

Tour solution

System.Single delta

Returns
System.Boolean

MoveViolatedForward(TSPTWProblem, TObjective, Tour, out Single)

Returns true if there was an improvement, false otherwise.

Declaration
public bool MoveViolatedForward(TSPTWProblem problem, TObjective objective, Tour solution, out float delta)
Parameters
TSPTWProblem problem

TObjective objective

Tour solution

System.Single delta

Returns
System.Boolean

Supports(TObjective)

Returns true if the given objective is supported.

Declaration
public bool Supports(TObjective objective)
Parameters
TObjective objective

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.