linopy.solvers.Solver

linopy.solvers.Solver#

class linopy.solvers.Solver(**solver_options)#

Abstract base class for solving a given linear problem.

All relevant functions are passed on to the specific solver subclasses. Subclasses must implement the solve_problem_from_model() and solve_problem_from_file() methods.

__init__(**solver_options)#

Methods

__init__(**solver_options)

safe_get_solution(status, func)

Get solution from function call, if status is unknown still try to run it.

solve_problem([model, problem_fn, ...])

Solve a linear problem either from a model or a problem file.

solve_problem_from_file(problem_fn[, ...])

Abstract method to solve a linear problem from a problem file.

solve_problem_from_model(model[, ...])

Abstract method to solve a linear problem from a model.

Attributes

solver_name