Interface IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
Abstract representation of a heuristic/solver operator that is applied to a single instance and may lead to better/worse solution.
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
where TWeight : struct
Type Parameters
|
TWeight
|
|
TProblem
|
|
TObjective
|
|
TSolution
|
|
TFitness
|
Properties
Name
Returns the name of the operator.
Declaration
string Name { get; }
Property Value
|
System.String
|
Methods
Apply(TProblem, TObjective, TSolution, out TFitness)
Returns true if there was an improvement, false otherwise.
Declaration
bool Apply(TProblem problem, TObjective objective, TSolution solution, out TFitness delta)
Parameters
|
TProblem
problem
|
|
TObjective
objective
|
|
TSolution
solution
|
|
TFitness
delta
The difference between the fitness value before and after the operation. The new fitness value can be calculated by subtracting the delta value from the old fitness value. This means a delta > 0 means an improvement in fitness when lower is better. |
Returns
|
System.Boolean
|
Supports(TObjective)
Returns true if the given object is supported.
Declaration
bool Supports(TObjective objective)
Parameters
|
TObjective
objective
|
Returns
|
System.Boolean
|