Skip to main content

Pulpo package for optimization in LCI databases

Project description

Python-based User-defined Lifecycle Production Optimization

Jupyter Python Markdown

License Last Commit Commit Activity

PyPI - Version GitHub Stars launch - renku


📍 Overview

This is a python package for Life Cycle Optimization (LCO) based on life cycle inventories. pulpo is intended to serve as a platform for optimization tasks of varying complexity.

The package builds on top of the Brightway LCA framework as well as the optimization modeling framework Pyomo.


✨ Capabilities

Applying optimization is recommended when the system of study has (1) many degrees of freedoms which would prompt the manual assessment of a manifold of scenarios, although only the "optimal" one is of interest and/or (2) any of the following capabilities makes sense within the goal and scope of the study:

  • Specify technology and regional choices throughout the entire supply chain (i.e. fore- and background), such as choices for the production technology of electricity or origin of metal resources. Consistently accounting for changes in the background in "large scale" decisions can be significant.
  • Specify constraints on any activity in the life cycle inventories, which can be interpreted as tangible limitations such as raw material availability, production capacity, or environmental regulations.
  • Optimize for or constrain any impact category for which the characterization factors are available.
  • Specify supply values instead of final demands, which can become relevant if only production values are available (e.g. here).

The following features are currently under development:

  • [ ] ℹ️ Optimization under uncertainty [chance-constraints, stochastic optimization ...]
  • [ ] ℹ️ Multi-objective optimization [bi-objective epsilon constrained, goal programming ...]
  • [ ] ℹ️ Integration of economic and social indicators in the optimization problem formulation
  • [X] ℹ️ Development of a GUI for simple optimization tasks Link
  • [X] ℹ️ Enable PULPO to work on both bw2 and bw25 projects
  • [X] ℹ️ Thorough documentation hosted on flechtenberg.github.io/pulpo/

Feature requests are more than welcome!


🔧 Installation

PULPO has been deployed to the pypi index. Depending on the version of brightway projects you want to work on, install either the bw2 or bw25 version via:

pip install pulpo-dev[bw2]

or

pip install pulpo-dev[bw25]

🤖 Running pulpo

Use this link to start a session and test PULPO launch - renku

Find further example notebooks for a hydrogen case, an electricity case, and a plastic case here.

There is also a workshop repository (here), which has been created for the Brightcon 2024 conference. It contains several notebooks that guide you through the PULPO package and its functionalities, as well as an exercise.

🧪 Tests

Calling from the package folder:

python -m unittest discover -s tests

What's new in 1.4.2?

  • Enable the use of gurobi solver

What's new in 1.4.0?

  • Enable the use of NEOS solver (commercial solvers without license)
  • Enable Monte-Carlo sampling feature
  • Retrieve uncertainty information to lci_data for future use

What's new in 1.3.0?

  • Switch packaging logic from setup.py to pyproject.toml and align pypi with Github versioning number

🤝 Contributing

Contributions are very welcome. If you would like to request a feature or report a bug please open an Issue. If you are confident in your coding skills don't hesitate to implement your suggestions and send a Pull Request.


📄 License

This project is licensed under the ℹ️ BSD 3-Clause License. See the LICENSE file for additional info. Copyright (c) 2025, Fabian Lechtenberg. All rights reserved.


👏 Acknowledgments

We would like to express our gratitude to the authors and contributors of the following main packages that PULPO is based on:

In addition, we acknowledge the pioneering ideas and contributions from the following works:

Follow-up work, incorporating features such as top-down matrix construction for the use of entire life cycle inventory databases and supply specification, was implemented in PULPO and culminated in the following publication, which details the approach and outlines its implementation:

Fabian Lechtenberg, Robert Istrate, Victor Tulus, Antonio Espuña, Moisès Graells, and Gonzalo Guillén‐Gosálbez.
“PULPO: A Framework for Efficient Integration of Life Cycle Inventory Models into Life Cycle Product Optimization.”
Journal of Industrial Ecology, October 10, 2024.
https://doi.org/10.1111/jiec.13561

This article is to be cited / referred to if PULPO is used to derive results of a publication or project.


Authors


↑ Return

Project details


Download files

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

Source Distribution

pulpo_dev-1.4.2.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

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

pulpo_dev-1.4.2-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file pulpo_dev-1.4.2.tar.gz.

File metadata

  • Download URL: pulpo_dev-1.4.2.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for pulpo_dev-1.4.2.tar.gz
Algorithm Hash digest
SHA256 c9c2f9fb72f675d0d2f1e555993275d16f2f69add6023412195a3362ade01ff4
MD5 f212466042a251973c6e605cef460207
BLAKE2b-256 3a2da1728697fbca8ded528c8d3c820f53c1403177b0547b03b051b8daab8010

See more details on using hashes here.

File details

Details for the file pulpo_dev-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: pulpo_dev-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for pulpo_dev-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b42cd459910a516757514557c0e65c32c66e60188b45171a90495b30341ecf3
MD5 dc38a14dd7cf2d3174b7024b60aa4742
BLAKE2b-256 d853d33ec4d4ba6ca8b9beb1b4785be43e6c1401bca539befe0c8778e364c08f

See more details on using hashes here.

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