Show / Hide Table of Contents

Class EmptyOperator<TWeight, TProblem, TObjective, TSolution, TFitness>

An empty operator that does nothing.

Inheritance
System.Object
EmptyOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class EmptyOperator<TWeight, TProblem, TObjective, TSolution, TFitness> : IOperator<TWeight, TProblem, TObjective, TSolution, TFitness> where TWeight : struct where TObjective : ObjectiveBase<TProblem, TSolution, TFitness>
Type Parameters
TWeight

TProblem

TObjective

TSolution

TFitness

Properties

Name

Returns the name of the operator.

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

Implements
IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>.Name

Methods

Apply(TProblem, TObjective, TSolution, out TFitness)

Returns true if there was an improvement, false otherwise.

Declaration
public bool Apply(TProblem problem, TObjective objective, TSolution solution, out TFitness delta)
Parameters
TProblem problem

TObjective objective

TSolution solution

TFitness delta

Returns
System.Boolean

Implements
IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>.Apply(TProblem, TObjective, TSolution, out TFitness)

Supports(TObjective)

Returns true if the given objective is supported.

Declaration
public bool Supports(TObjective objective)
Parameters
TObjective objective

Returns
System.Boolean

Implements
IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>.Supports(TObjective)
Back to top Built by Itinero, MIT licensed.