linopy.solvers.run_mosek

Contents

linopy.solvers.run_mosek#

linopy.solvers.run_mosek(model, io_api=None, problem_fn=None, solution_fn=None, log_fn=None, warmstart_fn=None, basis_fn=None, keep_files=False, env=None, **solver_options)#

Solve a linear problem using the MOSEK solver. Both ‘direct’ mode, mps and lp mode are supported; None is interpret as ‘direct’ mode. MPS mode does not support quadratic terms.

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”}