BREOS - Building Renewable Energy Optimization Software
BREOS simulates and sizes PV + battery systems for buildings: weather, PV production, battery aging, economics, emissions, and multi-objective sizing. Use it from the command line or from Python. The PV modeling is built on pvlib python.
Documentation: breos.readthedocs.io
Quick Start
pip install breos
Simulate 10 PV modules and a 5 kWh battery for a house in Porto that uses 4000 kWh a year:
breos run --location porto \
--n-modules 10 \
--annual-consumption-kwh 4000 \
--battery-kwh 5 \
--cost-preset residential-pt \
--emissions-country pt
The run fetches a typical weather year from PVGIS and prints a summary:
Year 1 energy
PV delivered (AC) 8143 kWh
House load 4000 kWh
Self-consumed PV 3153 kWh 38.7 % of delivered PV
Grid import 843 kWh 78.9 % grid independence
Grid export 4991 kWh
...
Economics, 20 years, EUR, 3 % discount rate
Investment 7789 EUR
Net present value 4717 EUR
Discounted payback 13 years
Add --output result.json to save every result field. The
quickstart
shows the full summary and how to keep the setup in a config file.
The same run from Python:
import breos
app = breos.App({
"location": "porto", # preset or {"latitude": ..., "longitude": ..., "timezone": ...}
"n_modules": 10,
"annual_consumption_kwh": 4000,
"battery_kwh": 5.0, # 0 for no battery
"cost_preset": "residential_pt",
"emissions_country": "PT",
})
app.simulate()
result = app.result()
print(f"Grid independence: {result['grid_independence_pct']:.1f} %")
print(f"Payback: {result['payback_year']} years")
print(f"NPV savings: {result['npv_savings']:.0f} EUR")
result() returns a plain JSON-serializable dict. Money fields are in the
currency recorded in result["provenance"]["currency"] (EUR for the bundled
cost presets). The
configuration reference
lists every option, and
interpreting results
documents every output field.
For real studies, bring your own weather and API access where required, licensed load profiles, and your own cost/tariff assumptions. The packaged defaults make the tool runnable, not project-grade.
Installation
The default install is a lean core. Optimization, historical weather, and plots need extras:
pip install "breos[optimization,weather,plots]"
With uv:
uv add breos # as a project dependency
uvx breos --version # run the CLI without installing
See the installation guide for the full list of extras and a source setup.
Features
- Weather: TMY from PVGIS, local weather files, and historical data from Open-Meteo at hourly or 15-minute resolution.
- PV production: pvlib CEC single-diode model, with a small example module catalog to get started.
- Multi-array systems: combine multiple faces/orientations (e.g. an east-west roof) at the DC stage instead of one representative tilt.
- Battery: energy balance with calendar + cycle aging (Naumann 2020, Lam 2025) and field-calibrated LFP parameters, or one of 14 vendored BLAST-Lite aging models.
- Battery control: greedy self-consumption by default; opt-in fixed-target grid charging and discharge-only windows under time-of-use prices.
- Economics: NPV, LCOE, breakeven, and cost projections with flat or time-of-use tariffs, a separate tariff for the no-system baseline, and separate price escalators.
- Monte Carlo: weather-year and demand resampling for NPV, payback, grid-independence, LCOE, and SoH distributions.
- Optimization: multi-objective PV/battery sizing and orientation (pymoo NSGA-II), and parameter-grid sweeps.
- Emissions: CO2 savings and projections.
- Visualization: plots for energy balances, degradation, breakeven, Monte Carlo distributions, sweep heatmaps, orientation landscapes and Pareto fronts.
- Bring your own data: every layer accepts custom inputs (PV module parameters, battery degradation coefficients, weather CSVs, load profiles, and cost/tariff/emissions assumptions). The packaged presets are starting points, not fixed defaults.
The CLI also drives config files, parameter sweeps, and Monte Carlo studies, and
breos list <category> shows bundled presets (locations, modules, cost presets,
…). See the how-to guides and the
case examples.
Citation
If you use BREOS in your research, please cite the software and the version you
used. GitHub's "Cite this repository" button reads the metadata in
CITATION.cff, or use:
@software{rodrigues_breos,
author = {Rodrigues, Leonardo},
title = {{BREOS}: Building Renewable Energy Optimization Software},
url = {https://github.com/Str4vinci/breos},
note = {Version X.Y.Z}
}
BREOS results that depend on PV production also depend on pvlib. Please cite it alongside BREOS:
@article{anderson2023pvlib,
author = {Anderson, K. and Hansen, C. and Holmgren, W. and Jensen, A. and Mikofski, M. and Driesse, A.},
title = {pvlib python: 2023 project update},
journal = {Journal of Open Source Software},
volume = {8},
number = {92},
pages = {5994},
year = {2023},
doi = {10.21105/joss.05994}
}
pvlib additionally asks that you cite the Zenodo DOI for the specific pvlib version you used.
Acknowledgements
BREOS stands on work done by others:
- pvlib python — the PV modeling foundation: solar position, irradiance transposition, IAM, cell temperature, CEC single-diode evaluation, PVWatts losses, tracking, and inverter helpers. BREOS composes these into a production pipeline with staged losses, degradation, and multi-array handling; the underlying physics is pvlib's.
- BLAST-Lite (NREL) — vendored battery life models.
- demandlib — basis for the bundled example H0 load profiles.
- pymoo — NSGA-II multi-objective optimization.
- PVGIS (EU JRC) and Open-Meteo: weather and solar resource data.
Model choices, defaults, and any errors in how these are combined are BREOS's own, not those of the upstream projects. See ATTRIBUTIONS.md for the full list with licenses and terms.
Contributing
See CONTRIBUTING.md. Feature work happens on branches off
develop and merges via pull request; main tracks stable releases only.
Contact
Usage questions and feature ideas: GitHub Discussions. Bugs: issues. Research collaboration or private enquiries: lrodrigues@fe.up.pt.
License
BSD 3-Clause. See LICENSE.
Metadata
Release files for breos 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| breos-0.8.1.tar.gz | 4.2 MB | With provenance | Details for breos-0.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| breos-0.8.1-py3-none-any.whl | Python 3 | none | any | Details for breos-0.8.1-py3-none-any.whl |
Total release size: 5.4 MB
Release files / breos-0.8.1.tar.gz
| Download URL | breos-0.8.1.tar.gz |
|---|---|
| Size | 4.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceedfa5bf88e76030be95a4b9e6edebdac08f2fa0b3611f72c205cae57803a4d
|
|
BLAKE2b-256 checksum How to use checksums |
829534efb22067737afc2d2e1cc3dfc2dc0e11e70671d2b62060a07ab5ac888c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / breos-0.8.1-py3-none-any.whl
| Download URL | breos-0.8.1-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c395ed05655c594d812c3f379db42f88ae623f2668b86bc11504aea1ffd2c2e9
|
|
BLAKE2b-256 checksum How to use checksums |
aa21886bd41c8db97564794270f0ade818afcac93ff7a4dcfd142aa7d528fef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for breos 0.8.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for breos-0.8.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA 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.