agentlib_mpc
This is a plugin for AgentLib. Includes functions for modeling with CasADi, and using those models in nonlinear MPC, central and distributed (based on ADMM).
See examples and the tutorial in the docs. Best example to start is an MPC for a single air conditioned room.
Installation
Install with:
pip install agentlib_mpc
To install with full dependencies (recommended), run:
pip install agentlib_mpc[full]
Optional Dependencies
AgentLib_MPC has a number of optional dependencies:
- fmu: Support simulation of FMU models (https://fmi-standard.org/).
- ml: Use machine learning based NARX models for MPC. Currently supports neural networks, gaussian process regression and linear regression. Installs tensorflow, keras and scikit-learn.
- interactive: Utility functions for displaying mpc results in an interactive dashboard. Installs plotly and dash.
Install these like
pip install agentlib_mpc[ml]
Some features depend on packages which are not available on PyPI and have to be installed from git:
- physXAI: Use models trained with physXAI (https://github.com/RWTH-EBC/physXAI). Requires the ml dependencies.
pip install agentlib_mpc[ml] git+https://github.com/RWTH-EBC/physXAI.git - cia: Use combinatorial integral approximation for mixed-integer MPC. Installs pycombina (https://github.com/adbuerger/pycombina).
pip install git+https://github.com/adbuerger/pycombina.git
Citing AgentLib_MPC
For now, please cite the base framework under https://github.com/RWTH-EBC/AgentLib.
A preprint is available under http://dx.doi.org/10.2139/ssrn.4884846 and can be cited as:
Eser, Steffen and Storek, Thomas and Wüllhorst, Fabian and Dähling, Stefan and Gall, Jan and Stoffel, Phillip and Müller, Dirk, A Modular Python Framework for Rapid Development of Advanced Control Algorithms for Energy Systems. Available at SSRN: https://ssrn.com/abstract=4884846 or http://dx.doi.org/10.2139/ssrn.4884846
When using AgentLib-MPC, please remember to cite other tools that you are using, for example CasADi or IPOPT.
Acknowledgments
We gratefully acknowledge the financial support by Federal Ministry \ for Economic Affairs and Climate Action (BMWK), promotional reference 03ET1495A.
Metadata
Release files for agentlib-mpc 1.1.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 |
|---|---|---|---|---|
| agentlib_mpc-1.1.1.tar.gz | 2.2 MB | Without provenance | Details for agentlib_mpc-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentlib_mpc-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for agentlib_mpc-1.1.1-py3-none-any.whl |
Total release size: 2.4 MB
Release files / agentlib_mpc-1.1.1.tar.gz
| Download URL | agentlib_mpc-1.1.1.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a964280fa5d1afb36b56a7917cb52c2d1ba2c3a4211922091dbf400e25cc023
|
|
BLAKE2b-256 checksum How to use checksums |
dc1e128f0dcedf33ebc4d374425b1e0bb7d4d439806bdc31fa9ec2f04979f33a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.15
|
Release files / agentlib_mpc-1.1.1-py3-none-any.whl
| Download URL | agentlib_mpc-1.1.1-py3-none-any.whl |
|---|---|
| Size | 200.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f34ef52d58c16ec5f7e96341a51d683315734b8fd0cf8a69fe3a32281983394a
|
|
BLAKE2b-256 checksum How to use checksums |
bfc145301b289507b24bc2f2591c0a004816c3120eef4f6cd2043c5375245cde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.15
|
Security for agentlib-mpc 1.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.