linopy.solvers.Highs#
- class linopy.solvers.Highs(model=None, io_api=None, options=<factory>)#
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__(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_fnand runs via_run_file.solve_problem_from_model(model[, ...])Deprecated shim that builds via
_build_directand 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_apisdisplay_nameenvfeaturesio_apimodelreportsensesolutionsolver_modelsolver_namesolver_optionsBack-compat alias for
self.options.statusoptions