linopy.solvers.Mosek

linopy.solvers.Mosek#

class linopy.solvers.Mosek(model=None, io_api=None, options=<factory>)#

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__(model=None, io_api=None, options=<factory>)#

Methods

__init__([model, io_api, options])

close()

from_model(model[, io_api, options])

Instantiate and build the solver against model.

from_name(name, model[, io_api, options])

Construct and build the solver subclass registered as name.

is_available()

Return True if this solver's package/binary is importable.

license_status()

Probe license/runtime availability.

runtime_features()

Features whose availability depends on the installed solver version or runtime environment.

safe_get_solution(status, func)

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

solve(**run_kwargs)

Run the prepared solver and return a Result.

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

Deprecated.

solve_problem_from_file(problem_fn[, ...])

Deprecated shim that caches problem_fn and runs via _run_file.

solve_problem_from_model(model[, ...])

Deprecated shim that builds via _build_direct and runs via _run_direct.

supported_features()

All features supported by this solver, static plus runtime.

supports(feature)

Check if this solver supports a given feature.

update_solver_model(model, **kwargs)

Attributes

accepted_io_apis

display_name

env

features

io_api

model

report

sense

solution

solver_model

solver_name

solver_options

Back-compat alias for self.options.

status

options