pymloc.model.solvable

Classes

Solvable()

Abstract base class for solvable problems.

VariableSolvable(variables)

Subclass for Solvable that have corresponding variables.

class pymloc.model.solvable.Solvable

Bases: abc.ABC

Abstract 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

pymloc.solvers.base_solver.Solution

property solver
property solver_instance
class pymloc.model.solvable.VariableSolvable(variables)

Bases: pymloc.model.solvable.Solvable, abc.ABC

Subclass for Solvable that have corresponding variables.

Parameters

variables (pymloc.model.variables.container.VariablesContainer) –

Parameters

variables (pymloc.model.variables.container.VariablesContainer) –

Return type

None

property variables