flixopt.solvers ¶
This module contains the solvers of the flixopt framework, making them available to the end user in a compact way.
Classes¶
GurobiSolver dataclass
¶
Bases: _Solver
Gurobi solver configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mip_gap | float | Acceptable relative optimality gap in [0.0, 1.0]; mapped to Gurobi | required |
time_limit_seconds | int | Time limit in seconds; mapped to Gurobi | required |
extra_options | dict[str, Any] | Additional solver options merged into | dict() |
HighsSolver dataclass
¶
Bases: _Solver
HiGHS solver configuration.
Attributes:
Name | Type | Description |
---|---|---|
mip_gap | float | Acceptable relative optimality gap in [0.0, 1.0]; mapped to HiGHS |
time_limit_seconds | int | Time limit in seconds; mapped to HiGHS |
extra_options | dict[str, Any] | Additional solver options merged into |
threads | int | None | Number of threads to use. If None, HiGHS chooses. |