Energy System Simulation and Optimization
An open-source energy optimization system that integrates renewable energy sources, such as photovoltaic (PV) systems, battery storage, and smart load management solutions.
https://github.com/akkudoktor-eos/eos
Category: Energy Systems
Sub Category: Energy System Modeling Frameworks
Keywords from Contributors
transformer file-uploader measurements chart optimizers profiler alerting token observability cryptocurrency
Last synced: about 22 hours ago
JSON representation
Repository metadata
This repository features an Energy Optimization System (EOS) that optimizes energy distribution, usage for batteries, heat pumps& household devices. It includes predictive models for electricity prices (planned), load forecasting& dynamic optimization to maximize energy efficiency & minimize costs. Founder Dr. Andreas Schmitz (YouTube @akkudoktor)
- Host: GitHub
- URL: https://github.com/akkudoktor-eos/eos
- Owner: Akkudoktor-EOS
- License: other
- Created: 2024-02-16T11:13:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-20T23:14:05.000Z (14 days ago)
- Last Synced: 2025-10-26T01:17:31.947Z (9 days ago)
- Language: Python
- Homepage: https://akkudoktor.net/c/der-akkudoktor/eos/
- Size: 29.3 MB
- Stars: 1,464
- Watchers: 70
- Forks: 115
- Open Issues: 36
- Releases: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Notice: NOTICE
README.md
Energy System Simulation and Optimization
This project provides a comprehensive solution for simulating and optimizing an energy system based on renewable energy sources. With a focus on photovoltaic (PV) systems, battery storage (batteries), load management (consumer requirements), heat pumps, electric vehicles, and consideration of electricity price data, this system enables forecasting and optimization of energy flow and costs over a specified period.
Documentation can be found at Akkudoktor-EOS.
Getting Involved
See CONTRIBUTING.md.
System requirements
- Python >= 3.11, < 3.13
- Architecture: amd64, aarch64 (armv8)
- OS: Linux, Windows, macOS
Note: For Python 3.13 some dependencies (e.g. Pendulum) are not yet available on https://pypi.org and have to be manually compiled (a recent Rust installation is required).
Other architectures (e.g. armv6, armv7) are unsupported for now, because a multitude of dependencies are not available on https://piwheels.org and have to be built manually (a recent Rust installation and GCC are required, Python 3.11 is recommended).
Installation
The project requires Python 3.11 or newer. Docker images (amd64/aarch64) can be found at akkudoktor/eos.
Following sections describe how to locally start the EOS server on http://localhost:8503.
Run from source
Install dependencies in virtual environment:
Linux:
python -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/pip install -e .
Windows:
python -m venv .venv
.venv\Scripts\Activate
.venv\Scripts\pip install -r requirements.txt
.venv\Scripts\pip install -e .
Finally, start the EOS server to access it at http://localhost:8503 (API docs at http://localhost:8503/docs):
Linux:
.venv/bin/python src/akkudoktoreos/server/eos.py
Windows:
.venv\Scripts\python src/akkudoktoreos/server/eos.py
Docker
Start EOS with following command to access it at http://localhost:8503 (API docs at http://localhost:8503/docs):
docker compose up
If you are running the EOS container on a system hosting multiple services, such as a Synology NAS, and want to allow external network access to EOS, please ensure that the default exported ports (8503, 8504) are available on the host. On Synology systems, these ports might already be in use (refer to this guide). If the ports are occupied, you will need to reconfigure the exported ports accordingly.
Configuration
This project uses the EOS.config.json file to manage configuration settings.
Default Configuration
A default configuration file default.config.json is provided. This file contains all the necessary configuration keys with their default values.
Custom Configuration
Users can specify a custom configuration directory by setting the environment variable EOS_DIR.
- If the directory specified by
EOS_DIRcontains an existingconfig.jsonfile, the application will use this configuration file. - If the
EOS.config.jsonfile does not exist in the specified directory, thedefault.config.jsonfile will be copied to the directory asEOS.config.json.
Configuration Updates
If the configuration keys in the EOS.config.json file are missing or different from those in default.config.json, they will be automatically updated to match the default settings, ensuring that all required keys are present.
Classes and Functionalities
This project uses various classes to simulate and optimize the components of an energy system. Each class represents a specific aspect of the system, as described below:
-
Battery: Simulates a battery storage system, including capacity, state of charge, and now charge and discharge losses. -
PVForecast: Provides forecast data for photovoltaic generation, based on weather data and historical generation data. -
Load: Models the load requirements of a household or business, enabling the prediction of future energy demand. -
Heatpump: Simulates a heat pump, including its energy consumption and efficiency under various operating conditions. -
Strompreis: Provides information on electricity prices, enabling optimization of energy consumption and generation based on tariff information. -
EMS: The Energy Management System (EMS) coordinates the interaction between the various components, performs optimization, and simulates the operation of the entire energy system.
These classes work together to enable a detailed simulation and optimization of the energy system. For each class, specific parameters and settings can be adjusted to test different scenarios and strategies.
Customization and Extension
Each class is designed to be easily customized and extended to integrate additional functions or improvements. For example, new methods can be added for more accurate modeling of PV system or battery behavior. Developers are invited to modify and extend the system according to their needs.
Server API
See the Swagger API documentation for detailed information: EOS OpenAPI Spec
Further resources
Owner metadata
- Name: Akkudoktor-EOS
- Login: Akkudoktor-EOS
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/157137710?v=4
- Repositories: 1
- Last ynced at: 2024-05-16T15:01:38.559Z
- Profile URL: https://github.com/Akkudoktor-EOS
GitHub Events
Total
- Fork event: 86
- Create event: 220
- Release event: 1
- Issues event: 233
- Watch event: 1186
- Delete event: 231
- Member event: 8
- Issue comment event: 679
- Push event: 649
- Gollum event: 31
- Pull request event: 648
- Pull request review comment event: 328
- Pull request review event: 375
Last Year
- Fork event: 78
- Create event: 219
- Release event: 1
- Issues event: 227
- Watch event: 1033
- Delete event: 230
- Member event: 8
- Issue comment event: 617
- Push event: 641
- Gollum event: 31
- Pull request event: 632
- Pull request review event: 354
- Pull request review comment event: 299
Committers metadata
Last synced: 5 days ago
Total Commits: 659
Total Committers: 32
Avg Commits per committer: 20.594
Development Distribution Score (DDS): 0.698
Commits in past year: 422
Committers in past year: 24
Avg Commits per committer in past year: 17.583
Development Distribution Score (DDS) in past year: 0.566
| Name | Commits | |
|---|---|---|
| dependabot[bot] | 4****] | 199 |
| Andreas | d****e@g****e | 166 |
| Normann | g****b@k****m | 92 |
| Dominique Lasserre | l****d@g****m | 65 |
| Bobby Noelte | b****e@g****m | 51 |
| Dominik Siebel | d****l@t****m | 16 |
| Daniel Molkentin | d****l@m****e | 10 |
| Michael Osthege | m****e@o****m | 10 |
| 7tobias | tw@w****u | 4 |
| Dennis | 7****X | 4 |
| redmoon2711 | 1****1 | 4 |
| rompic | r****n@p****u | 4 |
| Fortrieb | d****v@f****g | 3 |
| celle1234 | 6****4 | 3 |
| Christian Heinrich Hohlfeld | c****d@g****m | 3 |
| Chris | g****t@n****e | 2 |
| Chris | 4****h | 2 |
| Eric | 1****h | 2 |
| Georg Z. | g****z@g****e | 2 |
| Ikko Eltociear Ashimine | e****r@g****m | 2 |
| Theo Weiss | t****o@m****g | 2 |
| Yunus AYDIN | a****s@g****m | 2 |
| thiloms | 1****s | 2 |
| BerndCzech | t****h@g****m | 1 |
| Jakob Moecke | j****o@g****m | 1 |
| Jürgen Eckel | e****j | 1 |
| Marco | 9****1 | 1 |
| SchaafAlexander | 8****r | 1 |
| Your Name | y****u@e****m | 1 |
| boerni | b****z@g****m | 1 |
| and 2 more... | ||
Committer domains:
- x2d2.de: 1
- m1theo.org: 1
- garnix.de: 1
- nootch.de: 1
- fortrieb.org: 1
- pickl.eu: 1
- wiznet.eu: 1
- molkentin.de: 1
- trivago.com: 1
- koldrack.com: 1
- gmx.de: 1
Issue and Pull Request metadata
Last synced: 4 days ago
Total issues: 169
Total pull requests: 822
Average time to close issues: 20 days
Average time to close pull requests: 4 days
Total issue authors: 54
Total pull request authors: 32
Average comments per issue: 2.19
Average comments per pull request: 0.98
Merged pull request: 600
Bot issues: 0
Bot pull requests: 300
Past year issues: 115
Past year pull requests: 613
Past year average time to close issues: 20 days
Past year average time to close pull requests: 3 days
Past year issue authors: 41
Past year pull request authors: 24
Past year average comments per issue: 2.23
Past year average comments per pull request: 0.76
Past year merged pull request: 462
Past year bot issues: 0
Past year bot pull requests: 272
Top Issue Authors
- drbacke (56)
- NormannK (14)
- b0661 (13)
- RobertHerter (10)
- njoerd114 (6)
- andig (5)
- XHalamaX (4)
- danimo (3)
- Isengo1989 (3)
- celle1234 (3)
- SamLue (2)
- redmoon2711 (2)
- aydinnyunus (2)
- briearn (2)
- rompic (2)
Top Pull Request Authors
- dependabot[bot] (300)
- NormannK (177)
- b0661 (100)
- Lasall (96)
- drbacke (42)
- michaelosthege (12)
- rompic (9)
- redmoon2711 (9)
- noootch (9)
- fortrieb (7)
- niklasbeinghaus (6)
- ChristianHohlfeld (5)
- 7tobias (5)
- e-hirsch (4)
- BerndCzech (4)
Top Issue Labels
- bug (74)
- enhancement (26)
- stale (11)
- simulation (6)
- good first issue (4)
- optimization (3)
- Stale (3)
- help wanted (2)
- documentation (2)
- docker (2)
- refactoring / maintenance (2)
- prediction (2)
- windows (1)
- wontfix (1)
- hacktoberfest (1)
- question (1)
- feature request (1)
Top Pull Request Labels
- dependencies (301)
- python (185)
- refactoring / maintenance (8)
- optimization (3)
- stale (1)
- in progess (1)
- bug (1)
- documentation (1)
- enhancement (1)
- EOSdash (1)
- eos (1)
- simulation (1)
- docker (1)
Package metadata
- Total packages: 2
- Total downloads: unknown
- Total dependent packages: 0 (may contain duplicates)
- Total dependent repositories: 0 (may contain duplicates)
- Total versions: 4
proxy.golang.org: github.com/akkudoktor-eos/eos
- Homepage:
- Documentation: https://pkg.go.dev/github.com/akkudoktor-eos/eos#section-documentation
- Licenses: other
- Latest release: v0.1.0 (published about 1 month ago)
- Last Synced: 2025-10-31T23:02:21.079Z (3 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.158%
- Average: 5.331%
- Dependent repos count: 5.504%
proxy.golang.org: github.com/Akkudoktor-EOS/EOS
- Homepage:
- Documentation: https://pkg.go.dev/github.com/Akkudoktor-EOS/EOS#section-documentation
- Licenses: other
- Latest release: v0.1.0 (published about 1 month ago)
- Last Synced: 2025-10-31T23:02:21.222Z (3 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.158%
- Average: 5.331%
- Dependent repos count: 5.504%
Dependencies
- Flask ==3.0.3
- Jinja2 ==3.1.4
- Mako ==1.3.5
- Markdown ==3.7
- MarkupSafe ==2.1.5
- Pygments ==2.18.0
- Werkzeug ==3.0.4
- absl-py ==2.1.0
- astunparse ==1.6.3
- blinker ==1.8.2
- certifi ==2024.8.30
- charset-normalizer ==3.3.2
- click ==8.1.7
- contourpy ==1.3.0
- cycler ==0.12.1
- deap ==1.4.1
- flatbuffers ==24.3.25
- fonttools ==4.53.1
- gast ==0.6.0
- google-pasta ==0.2.0
- grpcio ==1.66.1
- h5py ==3.11.0
- idna ==3.8
- itsdangerous ==2.2.0
- joblib ==1.4.2
- keras ==3.5.0
- kiwisolver ==1.4.7
- libclang ==18.1.1
- mariadb ==1.1.10
- markdown-it-py ==3.0.0
- matplotlib ==3.9.2
- mdurl ==0.1.2
- ml-dtypes ==0.4.0
- namex ==0.0.8
- numpy ==1.26.4
- opt-einsum ==3.3.0
- optree ==0.12.1
- packaging ==24.1
- pandas ==2.2.2
- pdoc3 ==0.11.1
- pillow ==10.4.0
- protobuf ==4.25.4
- pyparsing ==3.1.4
- python-dateutil ==2.9.0.post0
- pytz ==2024.1
- requests ==2.32.3
- rich ==13.8.1
- scikit-learn ==1.5.1
- scipy ==1.14.1
- setuptools ==74.1.2
- six ==1.16.0
- tensorboard ==2.17.1
- tensorboard-data-server ==0.7.2
- tensorflow ==2.17.0
- termcolor ==2.4.0
- threadpoolctl ==3.5.0
- typing_extensions ==4.12.2
- tzdata ==2024.1
- urllib3 ==2.2.2
- wheel ==0.44.0
- wrapt ==1.16.0
- actions/attest-build-provenance v1 composite
- actions/download-artifact v4 composite
- actions/github-script v6 composite
- actions/upload-artifact v4 composite
- docker/build-push-action v6 composite
- docker/login-action v3 composite
- docker/metadata-action v5 composite
- docker/setup-buildx-action v3 composite
- docker/setup-qemu-action v3 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pre-commit/action v3.0.1 composite
- actions/checkout v2 composite
- actions/setup-python v5 composite
- python ${PYTHON_VERSION}-slim build
- myst-parser ==4.0.0 development
- pre-commit * development
- pytest ==8.3.3 development
- pytest-cov ==5.0.0 development
- pytest-xprocess ==1.0.2 development
- sphinx ==8.0.2 development
- sphinx_rtd_theme ==3.0.1 development
Score: -Infinity