naive module

Naive algorithm definitions.

class jinete.algorithms.naive.NaiveAlgorithm(fleet, job, *args, **kwargs)[source]

Bases: jinete.algorithms.abc.Algorithm

Naive algorithm implementation.

This class always returns empty results. It’s main use is for internal testing.

__init__(fleet, job, *args, **kwargs)

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()

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.