algorithm module

class jinete.algorithms.heuristics.local_search.algorithm.LocalSearchAlgorithm(initial, no_improvement_threshold=1, strategy_cls=None, *args, **kwargs)[source]

Bases: jinete.algorithms.abc.Algorithm

__init__(initial, no_improvement_threshold=1, strategy_cls=None, *args, **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.