Skip to content

Commit

Permalink
Update supported Gurobi and python versions
Browse files Browse the repository at this point in the history
This was not up to date.
  • Loading branch information
pobonomo committed Nov 12, 2024
1 parent f057e28 commit a9304ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ def get_versions(file: Path):


root_path = Path().resolve().parent.parent
dep_versions = {
k: v
for k, v in get_versions(root_path / "requirements.txt").items()
if k == "gurobipy"
} # get only gurobipy from requirements.txt
dep_versions |= get_versions(root_path / "requirements.tox.txt")
dep_versions = get_versions(root_path / "requirements.tox.txt")
dep_versions |= get_versions(root_path / "requirements.keras.txt")
dep_versions |= get_versions(root_path / "requirements.pytorch.txt")
dep_versions |= get_versions(root_path / "requirements.sklearn.txt")
Expand All @@ -81,7 +76,6 @@ def get_versions(file: Path):


rst_epilog = f"""
.. |GurobiVersion| replace:: {dep_versions["gurobipy"]}
.. |NumpyVersion| replace:: {dep_versions["numpy"]}
.. |ScipyVersion| replace:: {dep_versions["scipy"]}
.. |PandasVersion| replace:: {dep_versions["pandas"]}
Expand Down
8 changes: 4 additions & 4 deletions docs/source/user/start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ We encourage to install the package via pip (or add it to your

.. note::

The package has been tested with and is supported for Python 3.9 and Python
3.10.
The package is tested with and is supported for Python 3.9, 3.10, 3.11 and 3.12.
It is also tested and supported with Gurobi 10, 11 and 12. Note however, that some newer
features of Gurobi from later versions are used and some models may perform significantly
worse with the older versions.

The following table lists the version of the relevant packages that are
tested and supported in the current version (|version|).
Expand All @@ -75,8 +77,6 @@ We encourage to install the package via pip (or add it to your

* - Package
- Version
* - :pypi:`gurobipy`
- |GurobiVersion|
* - :pypi:`numpy`
- |NumpyVersion|
* - :pypi:`scipy`
Expand Down

0 comments on commit a9304ed

Please sign in to comment.