Show / Hide Table of Contents

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

Combines multiple operators into one by executing them sequentially.

Inheritance
System.Object
MultiOperator<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 MultiOperator<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

Constructors

MultiOperator(IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>[])

Creates a new multi operator.

Declaration
public MultiOperator(params IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>[] operators)
Parameters
IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>[] operators

Properties

Name

Gets the name of this 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)

Applies this operator.

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.