abc module

Abstract class definitions.

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

Bases: abc.ABC

Linear model class.

This class contains the linear model representation of the defined problem.

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

Construct a new instance.

Parameters
  • fleet (Fleet) – The fleet of vehicles.

  • job (Job) – The set of trips to be completed.

  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

abstract solve()[source]

Perform a optimization based on the linear model.

:return A set of optimized routes.

Return type

Set[Route]