linopy.solvers.Gurobi

linopy.solvers.Gurobi#

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

Solver subclass for the gurobi solver.

\*\*solver_options

options for the given solver

__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[, ...])

Solve a linear problem from a problem file using the Gurobi solver.

solve_problem_from_model(model[, ...])

Solve a linear problem directly from a linopy model using the Gurobi solver.

Attributes

solver_name