Skip to main content

BREOS logo

BREOS - Building Renewable Energy Optimization Software

Tests PyPI Docs License: BSD-3 Python 3.11+

BREOS is a Python library for simulating and optimizing household PV + battery energy systems (weather, PV production, battery aging, economics, emissions, and multi-objective sizing) behind one stable breos.App facade, with lower-level modules for building custom study pipelines.

📖 Full documentation: breos.readthedocs.io

Features

  • Weather — TMY from PVGIS/NSRDB 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 roofs — combine multiple faces/orientations (e.g. east-west) 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.
  • Economics — NPV, LCOE, breakeven, and cost projections with configurable tariffs and inflation.
  • Monte Carlo — weather-year and demand resampling for NPV, payback, grid-independence, LCOE, and SoH distributions.
  • Optimization — multi-objective PV/battery sizing (pymoo NSGA-II), tilt optimization, and sizing sweeps.
  • Emissions — CO2 savings and projections.
  • Visualization — publication-ready plots for energy balances, degradation, breakeven, and Pareto fronts.
  • Bring your own data — every layer accepts custom inputs: PV module parameters, battery degradation coefficients, weather CSVs, residential load profiles, and cost/tariff/emissions assumptions. The packaged presets are starting points, not fixed defaults.

Installation

pip install breos

Or with uv:

uv add breos          # as a project dependency
uvx breos --version   # run the CLI without installing

The default install is a lean core. Some workflows need optional extras (e.g. optimization, historical weather, plots):

pip install "breos[optimization,weather,plots]"

See the installation guide for the full list of extras and a source/uv setup.

Quick Start

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_eur']:,.0f} EUR")

result() returns a plain JSON-serializable dict. The configuration reference lists every option, and interpreting results documents every output field.

For real studies, bring your own weather/API access where required (NSRDB needs an NREL API key; PVGIS and Open-Meteo do not), licensed load profiles, and your own cost/tariff assumptions. The packaged defaults make the tool runnable, not project-grade.

Command Line

Run a simulation without writing Python:

breos run --location porto --n-modules 10 --annual-consumption-kwh 4000 \
  --battery-kwh 5.0 --cost-preset residential-pt --emissions-country pt \
  --output result.json

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 CLI recipes.

Citation

If you use BREOS in your research, please cite the preprint:

@misc{rodrigues2026breos,
  author = {Rodrigues, L. and Delgado, J. M. P. Q. and Mendes, A. and Guimar{\~a}es, A. S.},
  title  = {A Modular, Open-Source Python Framework for Household PV-Battery Sizing: Validation, Multi-Objective Optimisation, and Uncertainty Analysis},
  year   = {2026},
  doi    = {10.2139/ssrn.7032064},
  url    = {https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7032064},
  note   = {SSRN preprint}
}

Contributing

See CONTRIBUTING.md. Feature work happens on branches off develop and merges via pull request; main tracks stable releases only.

Contact

For questions, collaboration, or access to additional modules: lrodrigues@fe.up.pt.

License

BSD 3-Clause. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

breos-0.4.1.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

breos-0.4.1-py3-none-any.whl (746.5 kB view details)

Uploaded Python 3

File details

Details for the file breos-0.4.1.tar.gz.

File metadata

  • Download URL: breos-0.4.1.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for breos-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5bc0bcd42c92b0687c093b235c2a30534c70448a6307e07ae3f190ee9f26db15
MD5 9829e43c92a2f05bf23baaba79a04e79
BLAKE2b-256 d8222ff4baf3506a890a24f9090236b307ff1f8e7e19a29a7d6a7ac8b25cae6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for breos-0.4.1.tar.gz:

Publisher: publish.yml on Str4vinci/breos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file breos-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: breos-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 746.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for breos-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca5bdf93d25d10f53b609a31f8d338e2578de35a86f0da857828e664b8829088
MD5 cfec1e45a8eae6a2e725804046898e2c
BLAKE2b-256 5912e88d8a41ed425682b1a15262e995c779ac97cbe32bc794a8e82b7efd2564

See more details on using hashes here.

Provenance

The following attestation bundles were made for breos-0.4.1-py3-none-any.whl:

Publisher: publish.yml on Str4vinci/breos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page