Class SolverBase<TWeight, TProblem, TObjective, TSolution, TFitness>
A base implementation for a solver.
Inheritance
System.Object
SolverBase<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 abstract class SolverBase<TWeight, TProblem, TObjective, TSolution, TFitness> : ISolver<TWeight, TProblem, TObjective, TSolution, TFitness> where TObjective : ObjectiveBase<TProblem, TSolution, TFitness>
Type Parameters
|
TWeight
|
|
TProblem
|
|
TObjective
|
|
TSolution
|
|
TFitness
|
Properties
IsStopped
Returns true if this solver was stopped.
Declaration
public bool IsStopped { get; }
Property Value
|
System.Boolean
|
Name
Returns the name of this solver.
Declaration
public abstract string Name { get; }
Property Value
|
System.String
|
Implements
Methods
ReportIntermidiateResult(TSolution)
Reports an intermediate result if someone is interested.
Declaration
protected void ReportIntermidiateResult(TSolution solution)
Parameters
|
TSolution
solution
|
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 abstract TSolution Solve(TProblem problem, TObjective objective, out TFitness fitness)
Parameters
|
TProblem
problem
|
|
TObjective
objective
|
|
TFitness
fitness
|
Returns
|
TSolution
|
Implements
Stop()
Stops execution.
Declaration
public virtual void Stop()
Implements
Events
IntermidiateResult
Event triggered when an intermediate solution is available.
Declaration
public event SolverDelegates.IntermidiateDelegate<TSolution> IntermidiateResult
Event Type
|
SolverDelegates.IntermidiateDelegate<TSolution>
|