abc module

Abstract algorithm definitions.

class jinete.algorithms.abc.Algorithm(fleet, job, *args, **kwargs)[source]

Bases: abc.ABC

Algorithm base class.

Solve instances with the optimize method.

__init__(fleet, job, *args, **kwargs)[source]

Construct a new instance.

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

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

  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

optimize()[source]

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.