starling_sim.basemodel.algorithms.pal_zhang_dispatcher
Module Contents
Classes
This class describes a dispatcher for a transport service. |
- class starling_sim.basemodel.algorithms.pal_zhang_dispatcher.PalZhangGreedyDispatcher(simulation_model, operator, verb=False)
Bases:
starling_sim.basemodel.algorithms.dispatcher.Dispatcher
This class describes a dispatcher for a transport service.
The dispatcher is called to affect requests online or punctually.
The Dispatcher class allows a complete specification (punctual and online) and separation (from the operator and the algorithms it uses) of the dispatching strategy.
The parameters needed to initialise and run the dispatcher should be provided in the operator operationParameters attribute.
- SCHEMA
- init_algorithm()
Initialise the algorithm’s structure used by the dispatcher.
- setup_dispatch()
Setup the dispatch with current simulation data.
- run_algorithm()
Run the algorithm on the current problem instance.
- update_from_solution()
Update the operator plannings based on the dispatch solution.
- dispatching_loop_()