Metadata-Version: 2.5
Name: owp-tool
Version: 0.1.0
Summary: District heating system unit design and dispatch optimization dashboard using Mixed Integer Linear Programming (MILP).
Keywords: district heating system,energy system modelling,design optimization,dispatch optimization,MILP,oemof.solph,streamlit,open-source web dashboard
Author-email: Malte Fritz <malte.fritz@web.de>, Jonas Freißmann <jonas.freissmann@web.de>
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-Expression: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: German
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
License-File: LICENSE
Requires-Dist: streamlit>=1.51.0,!=1.59.0
Requires-Dist: oemof.solph==0.6.5
Requires-Dist: pandas>=2.2.2
Requires-Dist: highspy==1.15.1
Requires-Dist: jinja2>=3.0.0
Requires-Dist: openpyxl>=3.1
Requires-Dist: build ; extra == "dev"
Requires-Dist: flit ; extra == "dev"
Requires-Dist: furo ; extra == "dev"
Requires-Dist: pytest ; extra == "dev"
Requires-Dist: sphinx>=7.2.2 ; extra == "dev"
Requires-Dist: sphinx-copybutton ; extra == "dev"
Requires-Dist: sphinx-design ; extra == "dev"
Requires-Dist: sphinxcontrib.bibtex ; extra == "dev"
Project-URL: Changelog, https://owp-tool.readthedocs.io/de/latest/Dokumentation/whats_new.html
Project-URL: Documentation, https://owp-tool.readthedocs.io/de/latest/
Project-URL: Homepage, https://github.com/maltefritz/owp-tool
Project-URL: Issues, https://github.com/maltefritz/owp-tool/issues
Provides-Extra: dev
Import-Name: owp_tool

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://owp-inno-nord.streamlit.app/)

# OWP Optimization Dashboard

Energy system optimization dashboard using mixed integer linear programming.
Developed as part of the project "Offene Wärmespeicherplanung (OWP)" as part of
*Inno!Nord* of the *T!Raum* initiative funded by the German Federal Ministry of
Research, Technology and Space.

## Key Features

- Combined invest and dispatch optimization based on [oemof.solph](https://github.com/oemof/oemof-solph)
- Parametrization and result visualization with a [Streamlit](https://github.com/streamlit/streamlit) dashboard
- Wide range of typical heating plants
- Comprehensive data base of heat load data, energy prices and emission factors

## Documentation

Detailed installation instructions, usage guides, troubleshooting and further information are available in the [OWP Optimization Dashboard documentation](https://owp-tool.readthedocs.io/de/latest/).

The documentation is currently available in German only. An English version will be added in the future.

## Funding

[<img src="https://raw.githubusercontent.com/maltefritz/owp-tool/main/src/owp_tool/img/Logos_F%C3%B6rderer_ohnePTJ_BMFTR.png">](https://www.innovation-strukturwandel.de/strukturwandel/shareddocs/entries/de/InnovationUndStrukturwandel/TRaum/innonord)

## Installation

Python 3.10 to 3.14 is supported, Python 3.11 is recommended. Create and activate a virtual environment.

### Windows

```bash
py -3.11 -m venv .venv
.venv\Scripts\activate
```

### macOS and Linux

```bash
python3.11 -m venv .venv
source .venv/bin/activate
```

Install the dashboard and its dependencies from PyPI:

```bash
python -m pip install --upgrade pip
python -m pip install owp-tool
```

The open-source HiGHS solver is installed as a dependency and is used by default. No separate solver installation is required for the standard setup.

### Installation from source

To work on the code, clone the repository and install it in editable mode in the activated virtual environment:

```bash
git clone https://github.com/maltefritz/owp-tool.git
cd owp-tool
python -m pip install -e .
```

## Run the dashboard

Start the dashboard in the activated virtual environment:

```bash
owp-tool
```

If the command is not found, `python -m owp_tool` starts the dashboard as well.

Streamlit will normally open the dashboard automatically. Otherwise, open the displayed local address, usually:

```text
http://localhost:8501
```

Further options are passed on to Streamlit, e.g. to use another port:

```bash
owp-tool --server.port 8502
```

Stop the application by pressing `Ctrl+C`.

## License

The dashboard is licensed under the MIT License. See the [LICENSE](https://github.com/maltefritz/owp-tool/blob/main/LICENSE) file for further information.

