algorithm module

class jinete.algorithms.heuristics.insertion.algorithm.InsertionAlgorithm(iterator_cls=None, initial=None, **kwargs)[source]

Bases: jinete.algorithms.abc.Algorithm

__init__(iterator_cls=None, initial=None, **kwargs)[source]

Construct a new instance.

Parameters
  • fleet – The Fleet of available vehicles to use on the solution.

  • job – The Job composed of the requested Trip objects to be satisfied by the solution.

  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

optimize()

Perform an optimization over the job based on the fleet resources.

Generates a Result object containing the generated planning.

Return type

jinete.models.results.Result

Returns

A Result object.