Class RandomSolver
A solver that generates random solutions.
Inheritance
System.Object
RandomSolver
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class RandomSolver : SolverBase<float, STSProblem, STSPObjective, Tour, STSPFitness>
Remarks
Executes a few steps:
- Initialize route based on problem definition with proper first/last customers.
- Go over all customers not in the route in some random order and try to cheapest-insert them.
Properties
Name
Returns the name of this solver.
Declaration
public override string Name { get; }
Property Value
|
System.String
|
Methods
Solve(STSProblem, STSPObjective, out STSPFitness)
Solves the given problem.
Declaration
public override sealed Tour Solve(STSProblem problem, STSPObjective objective, out STSPFitness fitness)
Parameters
|
STSProblem
problem
|
|
STSPObjective
objective
|
|
STSPFitness
fitness
|
Returns
|
Tour
|