Click or drag to resize

ShiftSearch Class

ShiftSearch
Inheritance Hierarchy

Namespace:  SRS.ShiftSolver.Solvers
Assembly:  ShiftSolver (in ShiftSolver.dll) Version: 2.2.0.0
Syntax
public class ShiftSearch : TimeLimitChecker, 
	IShiftSolver

The ShiftSearch type exposes the following members.

Constructors
  NameDescription
Public methodShiftSearch
Initializes a new instance of this class.
Top
Properties
  NameDescription
Public propertyMaxIterations
If this is set to a non-negative value then the algorithm will finish after this number of iterations (or when the MaxRunTime is reached if it is less than the time taken to complete the iterations). If the same RandomSeed is used then the same solution will be produced after the same number of iterations each time the solver is run. This means that this can be used for reproducible tests. The default value is -1, meaning that the solver is only limited by the MaxRunTime.
Public propertyPauseEvent
Used to pause the solver while it is running.
Public propertyRandomSeed
If the same random seed is used for an instance then the solver will always create the same final solution (as long as the same amount of time is used).
Public propertySolverCaller

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

Used to get information from the solver while it is running.

Public propertySolveStatistics
A summary of statistics related to the solve.
Public propertyStopped
If this is set to true while the Solve method is executing then the solver will stop and return the best solution found so far.
Public propertyTitle
Returns a title/name for the algorithm.
Public propertyTotalEvaluations
Returns the number of unique solutions analysed by the algorithm.
Top
Methods
  NameDescription
Public methodCheckPaused
Check if this thread is paused.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSolve(Solution)
Build and improve the solution.
Public methodSolve(Solution, Double)
Build and improve the solution.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventShiftSolverStatusUpdated
Occurs when the the solver has new information to feedback.
Top
Fields
  NameDescription
Public fieldMaxRunTime
Gets or sets the maximum running time for the solver (in milliseconds).
Public fieldMaxShiftLengthInMinutes
Gets or sets the maximum shift length in minutes. This applies to all employees. The algorithm will not search for shifts longer than this value.
Public fieldMinShiftLengthInMinutes
Gets or sets the minimum shift length in minutes. This applies to all employees. The algorithm will not search for shifts shorter than this value.
Top
See Also

www.staffrostersolutions.com | support