sequential module

Sequential algorithm class definitions.

class jinete.algorithms.metaheuristics.sequential.SequentialAlgorithm(initial=None, algorithms_cls=None, seed=56, *args, **kwargs)[source]

Bases: jinete.algorithms.abc.Algorithm

Sequential algorithm implementation.

This implementation is based on the application of a sequence of algorithm implementations. It’s mostly used as a component of more complicated metaheuristics.

__init__(initial=None, algorithms_cls=None, seed=56, *args, **kwargs)[source]

Construct a new instance.

Parameters
  • initial (Result) – The initial result from to start the optimization process.

  • algorithms_cls (Sequence[Tuple[Type[Algorithm], Dict[str, Any]]]) – The sequence of algorithm classes to be applied.

  • seed (int) – A seed to manage randomness.

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