pymloc.model.solvable¶
Classes
|
Abstract base class for solvable problems. |
|
Subclass for Solvable that have corresponding variables. |
-
class
pymloc.model.solvable.Solvable¶ Bases:
abc.ABCAbstract base class for solvable problems. Needs at least one solver registered via solver_container_factory
-
property
available_solver¶
-
has_solver_instance()¶ - Return type
bool
-
init_solver(*args, **kwargs)¶ Initializes solver object.
The solver is initialized via solver factory and the corresponding creator_function.
If the creator function does not exist, the solver can be used directly on the Solvable object.
- Return type
None
-
set_default_solver()¶ - Return type
None
-
solve(*args, **kwargs)¶ - Return type
-
property
solver¶
-
property
solver_instance¶
-
property
-
class
pymloc.model.solvable.VariableSolvable(variables)¶ Bases:
pymloc.model.solvable.Solvable,abc.ABCSubclass for Solvable that have corresponding variables.
- Parameters
variables (pymloc.model.variables.container.VariablesContainer) –
-
link_solution(variables)¶ - Parameters
variables (pymloc.model.variables.container.VariablesContainer) –
- Return type
None
-
property
variables¶