New HiGHS: oemof.solph v0.6.5

We have just released oemof.solph v0.6.5 (GitHub, Zenodo, PyPI, RTD), which brings not only a number of bug fixes but also support for the solver “HiGHS“. To use it, make sure you have it installed and call model.solve(solver="highs") after you have created the energy system model. The solver can be installed automatically as a dependency without any manual action. (Currently, you need to pip install highspy). Based on feedback we receive in the next time, it might become our new default. So, what is your experience with HiGHS?

Bug fixes and other changes are mostly relevant for users of Flows with a binary status variable (using NonConvex) and TSAM users, but not only:

  • The constraint limit_active_flow_count ignored Flows with an investment option.
  • The minimum_uptime/minimum_downtime might be ignored for the first time steps the unit was allowed to deviate from the initial status.
  • In TSAM result disaggregation, per-timestep variables were silently dropped from the output.
  • The TSA-disaggregated storage SOC result is now consistently named storage_content.
  • We updated examples and tutorials to the current TSAM API (v3).
  • The re-assignment of sequences using scalar variables now works as expected (e.g. flow.variable_costs = 5 failed when constructing the model).

Special thanks to our first-time contributors, Diana Maldonado Castro and Dylan Pulver, who did not only provide visible improvements but allowed considerable simplifications to our code.

3 thoughts on “New HiGHS: oemof.solph v0.6.5”

  1. The energy-modeling release adds support for a new optimization solver through a simple solver option; what performance or workflow benefits have users observed after switching? PUTI

    1. Using HiGHS was possible before – but just not as convenient, there is some benchmark data around. According to Open Energy Benchmark, HiGHS solved more test cases and is slightly faster. The absolute value is masked because there is a penalty for one test case not solved by CBC. However, as far as I recall their test cases were derived from our examples – all of which were validated using CBC. Probably, that test case just ran into their resource limit.

      Note that solvers can profit from compilation for your specific platform instead of being pip-installed. Thus, you might gain more from local installation that from switching the solver.

  2. Pingback: Oh, Six Seven!

Leave a Reply

Your email address will not be published. Required fields are marked *