Skip to main content
The PyBOP logo.

Python Battery Optimisation and Parameterisation

Scheduled Contributors Python Versions from PEP 621 TOML Codecov License Open in Colab nbviewer Releases DOI

Main Branch Examples Develop Branch Examples

PyBOP provides tools for the parameterisation and optimisation of battery models, using both Bayesian and frequentist approaches, with example workflows to assist the user. PyBOP can be used to parameterise various battery models, including the electrochemical and equivalent circuit models available in PyBaMM.

📌 PyBOP v25.10 presents a major restructure of PyBOP's base classes. We move from setting up a model, problem, cost, then optimiser to defining a simulator, cost, problem, and then optimiser. A pybop.pybamm.Simulator is designed to simulate a pybamm.BaseModel. Optimisation parameters can be passed through a pybamm.ParameterValues class. To understand how to update your use of PyBOP, please take a look at the example notebooks and scripts.

A diagram showing the PyBOP logo surrounded by connections to experimental data as an input, forward simulations provided by PyBaMM, results for parameteriation and design optimisation, as well as funding bodies (the Faraday Institution, EU IntelLiGent and DigiBatt projects).

A diagram showing the main PyBOP classes: the Simulator and Cost, which together define the optimisation Problem, and the Optimiser or Sampler which generates the Result.

💻 Installation

Within your virtual environment, install PyBOP:

pip install pybop

To install the most recent state of PyBOP, install from the develop branch,

pip install git+https://github.com/pybop-team/PyBOP.git@develop

To install a previous version of PyBOP, use the following template and replace the version number:

pip install pybop==v24.3

To check that PyBOP is installed correctly, run one of the examples in the following section. For a development installation, see the Contribution Guide. More installation information is available in our documentation and PyBaMM's installation guide.

📖 Citing PyBOP

If you use PyBOP in your work, please cite our paper according to the CITATION.cff using

Planden, B., Courtier, N. E., Robinson, M., Khetarpal, A., Planella, F. B., & Howey, D. A. (2025). PyBOP: A Python package for battery model optimisation and parameterisation. Journal of Open Source Software, 10(116), 7874. https://doi.org/10.21105/joss.07874

or the BibTeX entry

@article{Planden_PyBOP_A_Python_2025,
    author = {Planden, Brady and Courtier, Nicola E. and Robinson, Martin and Khetarpal, Agriya and Planella, Ferran Brosa and Howey, David A.},
    doi = {10.21105/joss.07874},
    journal = {Journal of Open Source Software},
    month = dec,
    number = {116},
    pages = {7874},
    title = {{PyBOP: A Python package for battery model optimisation and parameterisation}},
    url = {https://joss.theoj.org/papers/10.21105/joss.07874},
    volume = {10},
    year = {2025}
}

Depending on which models and methods you use, please also check the PyBaMM citation guidelines and include the following command at the end of your script to print the relevant BibTeX information.

pybamm.print_citations()

💡 Use Cases

PyBOP has two intended uses:

  1. Parameter inference from battery test data.

  2. Design optimisation under battery manufacturing/use constraints.

These include a wide variety of optimisation problems that require careful consideration due to the choice of battery model, data availability and/or the choice of design parameters.

Publications

Please take inspiration from the following journal articles which show how PyBOP is being used for research:

Jupyter Notebooks

Explore our example notebooks for hands-on demonstrations:

Python Scripts

Find additional script-based examples in the examples directory:

Grouped Models

In addition to the models available in PyBaMM, PyBOP currently hosts some grouped-parameter versions of common battery models which are purpose-built for parameter esimation and can be found under models.

👉 Code of Conduct

PyBOP aims to foster a broad consortium of developers and users, building on and learning from the success of the PyBaMM community. Our values are:

  • Inclusivity and fairness (those who wish to contribute may do so, and their input is appropriately recognised)

  • Interoperability (modularity for maximum impact and inclusivity)

  • User-friendliness (putting user requirements first via user-assistance & workflows)

📃 License

PyBOP is released under the BSD 3-Clause License.

🌟 Contributing

We would like to thank all contributors to PyBOP. Contributions are welcome! See CONTRIBUTING.md for ways to get started.

The original PyBOP developers were supported by research funding from the Faraday Institution, UK Research and Innovation, and Horizon Europe IntelLiGent Consortium.

Metadata

Release files for pybop 26.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pybop 26.10
File Size Uploaded Provenance Actions
pybop-26.10.tar.gz 13.7 MB With provenance Details for pybop-26.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pybop 26.10
File Interpreter ABI Platform Actions
pybop-26.10-py3-none-any.whl Python 3 none any Details for pybop-26.10-py3-none-any.whl

Total release size: 13.9 MB

Release files / pybop-26.10.tar.gz

Download URL pybop-26.10.tar.gz
Size 13.7 MB
Tags Source
SHA-256 checksum
How to use checksums
f7dba593c127e2e633469506d895b80132ddbeb771332504c9077d2f98114644
BLAKE2b-256 checksum
How to use checksums
f7279a2268ea79718f1a9a8face85587c745b724d31fbd8ec90b97e2ec2b5ffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 3, 2026.

Transparency log

Release files / pybop-26.10-py3-none-any.whl

Download URL pybop-26.10-py3-none-any.whl
Size 203.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
802bd769dd5742326e7aa2e8caa6caf09ff550dd696d00b307a3d233a5ccd819
BLAKE2b-256 checksum
How to use checksums
d8e35851ba744849a74306b0e9eafa2dd73b972f232b865db5a46d1e380c3d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 3, 2026.

Transparency log

Security for pybop 26.10

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.

Select from 2 files

Attestation for pybop-26.10.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 3, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page