ISolver Interface

An interface implemented by solvers.

Definition

Namespace: ASAP.NRP.Solvers
Assembly: NRP (in NRP.dll) Version: 3.49.0+964b2dfb493dfda37da83e5373992cb1cc934e98
C#
public interface ISolver

Properties

PauseEvent Gets or sets a ManualResetEvent which allows the solver to be paused if it is being run in a separate thread.
RandomSeed Gets or sets the random seed value used by the solver.
SolverCaller

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

Gets or sets the SolverCaller for the solver. If the SolverCaller is set the solver will call the SolverCaller.UpdateSolverStatus() method when it has something new to report during solving.

Stopped If this is set to true while the solver is running the solver stops and returns the best solution found so far.
Title Gets a title/label for the solver.
TotalEvaluations Gets the number of individual solutions evaluated by the solver. (NB this is not possible to count for all solvers and depends on the type of algorithms used).

Methods

Solve Builds and optimizes the roster.
SolveAsync Builds and optimizes the roster.

Events

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

See Also