ETHOS.FINE Python 套件提供了一个框架,用于建模、优化和评估能源系统。
Multi-region, multi-commodity energy system optimization — from a single node to a whole transformation pathway. Read the full documentation at vsa-fine.readthedocs.io.
The ETHOS.FINE python package provides a framework for modeling, optimizing and assessing energy systems. With the provided framework, systems with multiple regions, commodities, time steps and investment periods can be modeled. Target of the optimization is the minimization of the systems net present value (NPV) while considering technical and environmental constraints. If only one investment period is considered, the net present value is equal to the total annual costs (TAC). Besides using the full temporal resolution, an interconnected typical period storage formulation can be applied, that reduces the complexity and computational time of the model.
ETHOS.FINE is part of the Energy Transformation PatHway Optimization Suite (ETHOS) at ICE-2, where it is used for the modelling of a diverse group of optimization problems. It uses ETHOS.TSAM to reduce the temporal complexity of its models.
ETHOS.FINE was the JuRSE Code of the Month for February 2026.
There are several options for the installation of ETHOS.FINE. You can install it via PyPI or from conda-forge. In all of the following variants it is recommended to install your dependencies from conda-forge as the ecosystem is better tested and maintained. For more information on installation specifics and comparison between the different options, have a look at the installation documentation. In the following first the prerequisites for the installation are presented. Then the recommended installation is shown. If you want to work on the source code of ETHOS.FINE, see Development installation.
You either need a mamba or conda installation (recommended), but any Python installation will do. However, if you are unfamiliar with using environment manager (like mamba), you should consider using one. Fine has many dependencies and will likely interfere with other software projects on your machine in case you don't isolate them with an environment
You need conda or mamba installer on your machine, which are mostly interchangeable. The code is tested for Linux, Windows and Macos. We recommend to use mamba and install it using the miniforge installer. Please be aware that having multiple conda and mamba installation (for example from the miniforge installer and the anaconda installer) can cause serious problems during the installation. Please remove the other installer and any old environment on your machine if you decide to switch.
mamba create --name fine_env --channel conda-forge --channel gurobi --strict-channel-priority fine gurobiCreate venv environment
python -m venv .venvActivate venv environment on Linux
source .venv/bin/activateActivate venv environment on Windows
.venv\Scripts\activateFind more information on creating virtual environments with venv here.
python -m pip install fineAt its core, ETHOS.FINE creates an optimisation problem via the Pyomo interface. A Mixed Integer Linear Programming (MILP) solver is required, and theoretically any solver supported by Pyomo can be used with ETHOS.FINE. ETHOS.FINE is tested with GUROBI, HiGHS and GLPK preinstalled. If you want to solve large problems, it is highly recommended that you use GUROBI due to its superior performance. However, a proprietary licence is required to use GUROBI for larger optimisation problems, but this is available free of charge to academics. See the installation documentation for full details. If you do not want or cannot use a GUROBI licence, you can use HiGHS (which is slower than GUROBI but faster than GLPK) or GLPK, which do not require paid licences.
The Conda installation of ETHOS.FINE comes with GUROBI, HiGHS and GLPK preinstalled.
If you use the PyPi installation, it comes with a reduced version of Pyomo called 'GurobiPy'. However, if you require the full Gurobi software or another solver, please check the solver provider's homepage. Alternatively, consider using Conda/Mamba.
It is recommended to create a clean environment with conda to use ETHOS.FINE because it requires many dependencies.
mamba env create --name fine_env --file requirements_dev.yml
mamba activate fine_envInstall ETHOS.FINE as editable install and without checking the dependencies from pypi with
python -m pip install --no-deps --editable .If you do not want to use conda-forge consider the steps in section Installation from PyPI and install ETHOS.FINE as editable install and with developer dependencies with
python -m venv .venvActivate venv environment on Linux
source .venv/bin/activateActivate venv environment on Windows
.venv\Scripts\activatepython -m pip install --editable .[develop]A number of examples shows the capabilities of ETHOS.FINE.
If you want to use ETHOS.FINE in a published work, please kindly cite:
Klütz, T., Knosala, K., Behrens, J., Maier, R., Hoffmann, M., Pflugradt, N., & Stolten, D. (2025). ETHOS.FINE: A Framework for Integrated Energy System Assessment. Journal of Open Source Software, 10(105), 6274. https://doi.org/10.21105/joss.06274
@article{Kluetz2025,
title = {{ETHOS.FINE}: A Framework for Integrated Energy System Assessment},
author = {Kl{\"u}tz, Theresa and Knosala, Kevin and Behrens, Johannes and Maier, Rachel and Hoffmann, Maximilian and Pflugradt, Noah and Stolten, Detlef},
journal = {Journal of Open Source Software},
volume = {10},
number = {105},
pages = {6274},
year = {2025},
doi = {10.21105/joss.06274}
}All contributions are welcome:
We use ruff to ensure good coding style. Make sure to use it before contributing to the code base with
ruff check --config=pyproject.toml
ruff format --diff --config=pyproject.tomlMIT Lic
暂无开放 Issues,或尚未同步最近议题。