Class GASolver<TWeight, TProblem, TObjective, TSolution, TFitness>
A Genetic Algorithm (GA) solver.
Inheritance
System.Object
SolverBase<TWeight, TProblem, TObjective, TSolution, TFitness>
GASolver<TWeight, TProblem, TObjective, TSolution, TFitness>
Inherited Members
SolverBase<TWeight, TProblem, TObjective, TSolution, TFitness>.Solve(TProblem, TObjective, TFitness)
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 GASolver<TWeight, TProblem, TObjective, TSolution, TFitness> : SolverBase<TWeight, TProblem, TObjective, TSolution, TFitness>, ISolver<TWeight, TProblem, TObjective, TSolution, TFitness> where TWeight : struct where TObjective : ObjectiveBase<TProblem, TSolution, TFitness>
Type Parameters
|
TWeight
|
|
TProblem
|
|
TObjective
|
|
TSolution
|
|
TFitness
|
Constructors
GASolver(TObjective, ISolver<TWeight, TProblem, TObjective, TSolution, TFitness>, ICrossOverOperator<TWeight, TProblem, TObjective, TSolution, TFitness>, ISelectionOperator<TProblem, TSolution, TObjective, TFitness>, IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>)
Creates a new GA solver.
Declaration
public GASolver(TObjective objective, ISolver<TWeight, TProblem, TObjective, TSolution, TFitness> generator, ICrossOverOperator<TWeight, TProblem, TObjective, TSolution, TFitness> crossOver, ISelectionOperator<TProblem, TSolution, TObjective, TFitness> selection, IOperator<TWeight, TProblem, TObjective, TSolution, TFitness> mutation)
Parameters
|
TObjective
objective
|
|
ISolver<TWeight, TProblem, TObjective, TSolution, TFitness>
generator
|
|
ICrossOverOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
crossOver
|
|
ISelectionOperator<TProblem, TSolution, TObjective, TFitness>
selection
|
|
IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
mutation
|
GASolver(TObjective, ISolver<TWeight, TProblem, TObjective, TSolution, TFitness>, ICrossOverOperator<TWeight, TProblem, TObjective, TSolution, TFitness>, ISelectionOperator<TProblem, TSolution, TObjective, TFitness>, IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>, GASettings)
Creates a new GA solver.
Declaration
public GASolver(TObjective objective, ISolver<TWeight, TProblem, TObjective, TSolution, TFitness> generator, ICrossOverOperator<TWeight, TProblem, TObjective, TSolution, TFitness> crossOver, ISelectionOperator<TProblem, TSolution, TObjective, TFitness> selection, IOperator<TWeight, TProblem, TObjective, TSolution, TFitness> mutation, GASettings settings)
Parameters
|
TObjective
objective
|
|
ISolver<TWeight, TProblem, TObjective, TSolution, TFitness>
generator
|
|
ICrossOverOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
crossOver
|
|
ISelectionOperator<TProblem, TSolution, TObjective, TFitness>
selection
|
|
IOperator<TWeight, TProblem, TObjective, TSolution, TFitness>
mutation
|
|
GASettings
settings
|
Properties
Name
Returns the name of this solver.
Declaration
public override string Name { get; }
Property Value
|
System.String
|
Overrides
Itinero.Optimization.Algorithms.Solvers.SolverBase<TWeight, TProblem, TObjective, TSolution, TFitness>.Name
Methods
Solve(TProblem, TObjective, out TFitness)
Solves the given problem.
Declaration
public override TSolution Solve(TProblem problem, TObjective objective, out TFitness fitness)
Parameters
|
TProblem
problem
|
|
TObjective
objective
|
|
TFitness
fitness
|
Returns
|
TSolution
|
Overrides
Itinero.Optimization.Algorithms.Solvers.SolverBase<TWeight, TProblem, TObjective, TSolution, TFitness>.Solve(TProblem, TObjective, TFitness)