static module

High level static scheduling during the process of optimization (feeding with new trips, updating state, etc.).

class jinete.dispatchers.static.StaticDispatcher(loader_cls, algorithm_cls, storer_cls=None)[source]

Bases: jinete.dispatchers.abc.Dispatcher

Dispatch the problem instances in a sequential way, that is: loader -> algorithm -> storer.

__init__(loader_cls, algorithm_cls, storer_cls=None)

Construct a new instance.

Parameters
  • loader_cls (Type[Loader]) – Loads problem instances.

  • algorithm_cls (Type[Algorithm]) – Generates the solution for the problem instance.

  • storer_cls (Type[Storer]) – Stores problem instances.

run()[source]

Start the execution of the dispatcher.

Return type

jinete.models.results.Result

Returns

A result object containing the generated solution.