linopy.solvers.Highs

linopy.solvers.Highs#

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

Solver subclass for the HiGHS solver. HiGHS must be installed for usage. Find the documentation at https://highs.dev/.

The full list of solver options is documented at https://ergo-code.github.io/HiGHS/stable/options/definitions/.

Some exemplary options are:

  • presolve : “choose” by default - “on”/”off” are alternatives.

  • solver :”choose” by default - “simplex”/”ipm”/”pdlp” are alternatives. Only “choose” solves MIP / QP!

  • parallel : “choose” by default - “on”/”off” are alternatives.

  • time_limit : inf by default.

\*\*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 HiGHS solver.

solve_problem_from_model(model[, ...])

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

Attributes

solver_name