Skip to main content

REHO logo

DOI Documentation Status

PyPIPython Version

License

Renewable Energy Hub Optimizer (REHO) is a decision support tool for sustainable urban energy system planning. REHO simultaneously addresses the optimal design and operation of capacities, catering to multi-objective considerations across economic, environmental, and efficiency criteria.

Key features:

  • MILP Framework
  • Multi-Objective Optimization
  • Multi-Scale Capabilities
  • Multi-Service Consideration
  • Multi-Energy Integration
  • Open-Source and Open-Data

For more information about the model foundations and features, please refer to the REHO documentation.

Authors

REHO is developed by EPFL (Switzerland), within the Industrial Process and Energy Systems Engineering (IPESE) group.

Dorsan Lepour dorsan.lepour@epfl.ch
Cédric Terrier cedric.terrier@epfl.ch
Joseph Loustau

Shows the IPESE logo, white one in dark color mode and black one in light color mode.

Licence

Copyright (C) <2021-2026> <Ecole Polytechnique Fédérale de Lausanne (EPFL), Switzerland>

Licensed under the Apache License, (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Description and complete License: see LICENSE file.

Installation

REHO is available as a PyPI package and can be installed via pip with:

pip install --extra-index-url https://pypi.ampl.com REHO

Full code can be accessed from the REHO GitHub repository and cloned with:

git clone https://github.com/IPESE/REHO.git

Please refer to the "Getting started" section of the documentation for step-by-step guidelines.

A first run

from reho import REHO, QBuildingsReader, initialize_grids, initialize_units

reader = QBuildingsReader()
reader.establish_connection('Geneva')
qbuildings_data = reader.read_db({'transformers': 234}, nb_buildings=2)

cluster = {'Location': 'Geneva', 'Attributes': ['T', 'I', 'W'], 'Periods': 10, 'PeriodDuration': 24}
scenario = {'Objective': 'TOTEX', 'name': 'totex'}

grids = initialize_grids()
units = initialize_units(scenario, grids)

reho = REHO(qbuildings_data=qbuildings_data, units=units, grids=grids,
            cluster=cluster, scenario=scenario, method={'building-scale': True})
reho.single_optimization()
reho.save_results(format=['xlsx', 'pickle'], filename='my_run')

The examples cover the other features: district-scale decomposition, Pareto fronts, district heating, electric mobility, renovation, seasonal storage and the multi-actor formulation.

Documentation

Page Content
Overview What REHO is and what it can do
Releases How to cite, license, and the works using REHO
Model The mathematical formulation, at the building, district and actors scales
Data reference Inputs, every reference data file, and outputs, every result DataFrame: columns, units, provenance
Package structure Layout of the package, and the API reference of every module, class and function
Developer guide Conventions, how to extend, test and document REHO, and how to contribute
Getting started Installation, AMPL license, and a first optimization
Examples One runnable script per feature

Suggestions and contributions

All suggestions or implementation must be tracked with dedicated issues and reported in the project repository.

Refer to the "Contributing" section of the developer guide for further guidance.

Running the tests

pytest reho/test -m "not slow"        # offline: no AMPL license, solver or database needed
REHO_RUN_EXAMPLES=1 pytest reho/test  # full: runs every example script

Metadata

Release files for REHO 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for REHO 2.3.0
File Size Uploaded Provenance Actions
reho-2.3.0.tar.gz 11.2 MB Without provenance Details for reho-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for REHO 2.3.0
File Interpreter ABI Platform Actions
reho-2.3.0-py3-none-any.whl Python 3 none any Details for reho-2.3.0-py3-none-any.whl

Total release size: 14.2 MB

Release files / reho-2.3.0.tar.gz

Download URL reho-2.3.0.tar.gz
Size 11.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a1c4a8eb28f50a22be6660bb0107979a4fc057c2d8d86ebbdb7c974f9d37b855
BLAKE2b-256 checksum
How to use checksums
6a7c49818e0220f14abc9cbb3e3e4f63269cfc579d80adbc21670e15e390bb22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / reho-2.3.0-py3-none-any.whl

Download URL reho-2.3.0-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
818d5ca39b3b2daa1a9410ccc6e5fb17e982ce267592e72d5ef135309022f409
BLAKE2b-256 checksum
How to use checksums
ca978f7904450df1d55cb9b9400600806f11090b1650212913bd41b997d50d53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for REHO 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page