milp module

Set of algorithms based on the formulation off Mixed-Integer Linear Programming models.

class jinete.algorithms.exacts.milp.MilpAlgorithm(model_cls=None, *args, **kwargs)[source]

Bases: jinete.algorithms.abc.Algorithm

The jinete’s interface to solve the given problem, supported by the Mixed-Integer Linear Programming frame.

__init__(model_cls=None, *args, **kwargs)[source]

Construct a new instance.

Parameters
  • model_cls (Type[LinearModel]) – The model class to generate the representation of the problem.

  • 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.