linopy.solvers.Mosek

linopy.solvers.Mosek#

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

Solver subclass for the Mosek solver.

https://www.mosek.com/

For more information on solver options, see https://docs.mosek.com/latest/pythonapi/parameters.html#doc-all-parameter-list

For remote optimization of smaller problems, which do not require a license, set the following solver_options: {“MSK_SPAR_REMOTE_OPTSERVER_HOST”: “http://solve.mosek.com:30080”}

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

solve_problem_from_model(model[, ...])

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

Attributes

solver_name