solvers module¶
A set of implementations to ease the launching process on external systems.
-
class
jinete.solvers.
Solver
(algorithm=<class 'jinete.algorithms.heuristics.insertion.algorithm.InsertionAlgorithm'>, algorithm_kwargs=None, loader=<class 'jinete.loaders.file.FileLoader'>, loader_kwargs=None, storer=<class 'jinete.storers.prompt.PromptStorer'>, storer_kwargs=None, dispatcher=<class 'jinete.dispatchers.static.StaticDispatcher'>, dispatcher_kwargs=None)[source]¶ Bases:
object
Solve a problem instance in an easy way.
This class acts as the main library’s interface of use, allowing to configure all the needed classes and entities to generate solutions for a problem instance and providing the requested solution.
-
__init__
(algorithm=<class 'jinete.algorithms.heuristics.insertion.algorithm.InsertionAlgorithm'>, algorithm_kwargs=None, loader=<class 'jinete.loaders.file.FileLoader'>, loader_kwargs=None, storer=<class 'jinete.storers.prompt.PromptStorer'>, storer_kwargs=None, dispatcher=<class 'jinete.dispatchers.static.StaticDispatcher'>, dispatcher_kwargs=None)[source]¶ Construct a new instance.
- Parameters
algorithm (Union[str, Type[Algorithm]]) – The solving method to solve the problem instance.
algorithm_kwargs (Dict[str, Any]) – A dict-like object containing the named parameters for the
algorithm
’s class constructor.loader (Union[str, Type[Loader]]) – The class that stores the optimized solution in a proper way.
loader_kwargs (Dict[str, Any]) – A dict-like object containing the named parameters for the
loaders
’s class constructor.storer (Union[str, Type[Storer]]) – The class that stores the optimized solution in a proper way.
storer_kwargs (Dict[str, Any]) – A dict-like object containing the named parameters for the
storer
’s class constructor.dispatcher (Union[str, Type[Dispatcher]]) – The class that orchestrates the optimization process, linking the loaded instance to the algorithm, and the obtained solution to the storer.
dispatcher_kwargs (Dict[str, Any]) – A dict-like object containing the named parameters for the
dispatcher
’s class constructor.
-