Class IterativeOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
An iterative operator, executes on operator n-times in a row on the best solution and keeps the best solution around.
Inheritance
System.Object
IterativeOperator<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 IterativeOperator<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
IterativeOperator(IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>, Int32, Boolean)
Creates a new iterative operator.
Declaration
public IterativeOperator(IOperator<TWeight, TProblem, TObjective, TSolution, TFitness> op, int n, bool stopAtFail = false)
Parameters
|
IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
op
|
|
System.Int32
n
|
|
System.Boolean
stopAtFail
|
Properties
Name
Gets the name of this operator.
Declaration
public string Name { get; }
Property Value
|
System.String
|
Implements
Methods
Apply(TProblem, TObjective, TSolution, out TFitness)
Applies this operation.
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
Supports(TObjective)
Declaration
public bool Supports(TObjective objective)
Parameters
|
TObjective
objective
|
Returns
|
System.Boolean
|