Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable usage of Highs solver #766

Merged
merged 22 commits into from Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
62a3c21
add highs to requirements
victorgarcia98 Jul 19, 2023
150a951
Merge branch 'main' into dependencies/add-highspy
victorgarcia98 Jul 20, 2023
d615b25
Merge branch 'main' into dependencies/add-highspy
victorgarcia98 Jul 21, 2023
ebbc65a
docs: add changelog entry
victorgarcia98 Jul 21, 2023
51a3148
fix: get results with infeasible termination status instead of Runtim…
victorgarcia98 Jul 23, 2023
a699c16
fx: avoid double solving
victorgarcia98 Jul 24, 2023
f6b3772
style: fix HiGHS capitalization
victorgarcia98 Jul 24, 2023
6d9c2a6
remove HiGHS from requirements
victorgarcia98 Jul 24, 2023
58b24e3
remove dependency
victorgarcia98 Jul 24, 2023
bb00d3a
add dependency back
victorgarcia98 Jul 24, 2023
d2809ad
docs: document how to install HiGHS
victorgarcia98 Jul 24, 2023
2a94530
add HIghs to Dockerfile
victorgarcia98 Jul 24, 2023
ffacf30
remove extra lines
victorgarcia98 Jul 24, 2023
ce969db
fix typos
victorgarcia98 Jul 24, 2023
ae09379
load solution when termination_condition!=infeasible
victorgarcia98 Jul 24, 2023
c8cb457
Merge branch 'main' into dependencies/add-highspy
victorgarcia98 Jul 24, 2023
3d249ce
address some textual changes
victorgarcia98 Jul 24, 2023
97d9bde
fx CBC capitalization
victorgarcia98 Jul 24, 2023
9a253df
fix grammar
victorgarcia98 Jul 24, 2023
ca7a0e6
check if there are results in a more robustly
victorgarcia98 Jul 24, 2023
aea59bb
update inline comment
Flix6x Jul 25, 2023
2fffe45
Merge branch 'main' into dependencies/add-highspy
victorgarcia98 Jul 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions documentation/changelog.rst
Expand Up @@ -27,8 +27,7 @@ Infrastructure / Support
* Add support for profiling Flask API calls using ``pyinstrument`` (if installed). Can be enabled by setting the environment variable ``FLEXMEASURES_PROFILE_REQUESTS`` to ``True`` [see `PR #722 <https://www.github.com/FlexMeasures/flexmeasures/pull/722>`_]
* The endpoint `[POST] /health/ready <api/v3_0.html#get--api-v3_0-health-ready>`_ returns the status of the Redis connection, if configured [see `PR #699 <https://www.github.com/FlexMeasures/flexmeasures/pull/699>`_]
* Document the `device_scheduler` linear program [see `PR #764 <https://www.github.com/FlexMeasures/flexmeasures/pull/764>`_].

/api/v3_0/health/ready
* Add support for `Highs <https://highs.dev/>`_ solver [see `PR #766 <https://www.github.com/FlexMeasures/flexmeasures/pull/766>`_].

v0.14.1 | June 26, 2023
============================
Expand Down
2 changes: 1 addition & 1 deletion documentation/configuration.rst
Expand Up @@ -55,7 +55,7 @@ Default: ``False``
FLEXMEASURES_LP_SOLVER
^^^^^^^^^^^^^^^^^^^^^^

The command to run the scheduling solver. This is the executable command which FlexMeasures calls via the `pyomo library <http://www.pyomo.org/>`_. Other values might be ``cplex`` or ``glpk``. Consult `their documentation <https://pyomo.readthedocs.io/en/stable/solving_pyomo_models.html#supported-solvers>`_ to learn more.
The command to run the scheduling solver. This is the executable command which FlexMeasures calls via the `pyomo library <http://www.pyomo.org/>`_. Other values might be ``cplex``, ``glpk`` or ``appsi_highs`` for `Highs <https://highs.dev/>`_. Consult `their documentation <https://pyomo.readthedocs.io/en/stable/solving_pyomo_models.html#supported-solvers>`_ to learn more.

Default: ``"cbc"``

Expand Down
1 change: 1 addition & 0 deletions requirements/app.in
Expand Up @@ -68,3 +68,4 @@ Flask-SQLAlchemy>=2.4.3,<3
# <2.3: https://github.com/Parallels/rq-dashboard/issues/417 and https://github.com/FlexMeasures/flexmeasures/issues/754 and flask-login 0.6.1 not compatible
flask>=1.0, <=2.1.2
werkzeug<=2.1
highspy
2 changes: 2 additions & 0 deletions requirements/app.txt
Expand Up @@ -109,6 +109,8 @@ fonttools==4.40.0
# via matplotlib
greenlet==2.0.2
# via sqlalchemy
highspy==1.5.3
victorgarcia98 marked this conversation as resolved.
Show resolved Hide resolved
# via -r requirements/app.in
humanize==4.7.0
# via -r requirements/app.in
idna==3.4
Expand Down