Class SolverObjectiveWrapper<TWeight, TProblem, TObjective, TObjectiveUsed, TSolution, TFitness>
A wrapper for a solver, replacing the objective with another objective on each call.
Inheritance
System.Object
SolverObjectiveWrapper<TWeight, TProblem, TObjective, TObjectiveUsed, 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 SolverObjectiveWrapper<TWeight, TProblem, TObjective, TObjectiveUsed, TSolution, TFitness> : ISolver<TWeight, TProblem, TObjective, TSolution, TFitness> where TObjective : ObjectiveBase<TProblem, TSolution, TFitness> where TObjectiveUsed : ObjectiveBase<TProblem, TSolution, TFitness>
Type Parameters
|
TWeight
|
|
TProblem
|
|
TObjective
|
|
TObjectiveUsed
|
|
TSolution
|
|
TFitness
|
Constructors
SolverObjectiveWrapper(ISolver<TWeight, TProblem, TObjectiveUsed, TSolution, TFitness>, TObjectiveUsed, Func<TProblem, TObjective, TSolution, TFitness>)
Creates a new solver objective wrapper.
Declaration
public SolverObjectiveWrapper(ISolver<TWeight, TProblem, TObjectiveUsed, TSolution, TFitness> solver, TObjectiveUsed objective, Func<TProblem, TObjective, TSolution, TFitness> calculateFitness)
Parameters
|
ISolver<TWeight, TProblem, TObjectiveUsed, TSolution, TFitness>
solver
|
|
TObjectiveUsed
objective
|
|
Func<TProblem, TObjective, TSolution, TFitness>
calculateFitness
|
Properties
Name
Returns the name of this solver.
Declaration
public string Name { get; }
Property Value
|
System.String
|
Implements
Methods
Solve(TProblem, TObjective)
Solves the given problem.
Declaration
public TSolution Solve(TProblem problem, TObjective objective)
Parameters
|
TProblem
problem
|
|
TObjective
objective
|
Returns
|
TSolution
|
Implements
Solve(TProblem, TObjective, out TFitness)
Solves the given problem.
Declaration
public TSolution Solve(TProblem problem, TObjective objective, out TFitness fitness)
Parameters
|
TProblem
problem
|
|
TObjective
objective
|
|
TFitness
fitness
|
Returns
|
TSolution
|
Implements
Stop()
Stops the executing of the solving process.
Declaration
public void Stop()
Implements
Events
IntermidiateResult
Raised when an intermidiate result is available.
Declaration
public event SolverDelegates.IntermidiateDelegate<TSolution> IntermidiateResult
Event Type
|
SolverDelegates.IntermidiateDelegate<TSolution>
|