linopy.solvers.CBC#
- class linopy.solvers.CBC(model=None, io_api=None, options=<factory>, track_updates=False)#
Solver subclass for the CBC solver.
- \*\*solver_options
options for the given solver
- __init__(model=None, io_api=None, options=<factory>, track_updates=False)#
Methods
__init__([model, io_api, options, track_updates])apply_update(diff, var_label_index, ...)Apply an in-place
ModelDiffto the built native model.close()from_model(model[, io_api, options, ...])Instantiate and build the solver against
model.from_name(name[, model, io_api, options, ...])Construct 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([model, assign, ignore_dims, ...])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(model[, apply, ignore_dims])Diff
modelagainst the solver state and optionally apply it.update_solver_model(model, **kwargs)Attributes
accepted_io_apisdisplay_nameenvfeaturesio_apimodelreportsensesnapshotsolutionsolver_modelsolver_namesolver_optionsstatussupports_persistent_updatesupports_sign_updatetrack_updatesoptions