Solver Class

The solver solves a Problem instance and returns a new Solution.

Definition

Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public class Solver
Inheritance
Object    Solver

Constructors

Solver Initialises a new instance of the Solver class.

Properties

MaximumSolveTime A maximum solving time for the solver. After this time the solver will finish and return the best solution found so far.
RandomSeed A seed for the solver's random number generator.
SolverStatusReceiver

It is recommended to instead use the SolverStatusUpdated event to receive feedback from the solver as it is solving.

Receives solving status information from the solver while it is running.

Stop Set as true while the solver is running to stop the solver and return the best known solution.
TotalSolutionsGenerated Total number of solution evaluations.

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Solve(Problem) Solves the problem and returns the best known solution.
Solve(Solution) Solves the problem with an intial solution provided. Providing a good intial solution can reduce solving time and produce better solutions.
ToString
(Inherited from Object)

Events

SolverStatusUpdated Occurs when the the solver has new information to feedback to a caller.

See Also