iterative module¶
Iterative algorithm class definitions.
-
class
jinete.algorithms.metaheuristics.iterative.
IterativeAlgorithm
(episodes=3, algorithm_cls=None, seed=56, restart_mode=True, *args, **kwargs)[source]¶ Bases:
jinete.algorithms.abc.Algorithm
Iterative algorithm implementation.
This class implements an iterative procedure to optimize a planning. It works applying a parametrized algorithm for a defined number of episodes. It’s mostly used as a component of more complicated metaheuristics.
-
__init__
(episodes=3, algorithm_cls=None, seed=56, restart_mode=True, *args, **kwargs)[source]¶ Construct a new instance.
-
optimize
()¶ Perform an optimization over the
job
based on thefleet
resources.Generates a
Result
object containing the generated planning.- Return type
- Returns
A
Result
object.
-