pulpo
A python-based optimization tool for life cycle assessment (LCA) that aims to import, optimize, solve, retrieve, save, and summarize LCA results.
https://github.com/flechtenberg/pulpo
Category: Industrial Ecology
Sub Category: Life Cycle Assessment
Keywords
brightway ecoinvent lca lifecycle optimization pyomo
Last synced: about 21 hours ago
JSON representation
Repository metadata
Python package for lifecycle optimization
- Host: GitHub
- URL: https://github.com/flechtenberg/pulpo
- Owner: flechtenberg
- License: bsd-3-clause
- Created: 2023-09-12T14:30:05.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-22T14:32:00.000Z (8 days ago)
- Last Synced: 2025-04-25T22:33:25.239Z (5 days ago)
- Topics: brightway, ecoinvent, lca, lifecycle, optimization, pyomo
- Language: Jupyter Notebook
- Homepage: https://flechtenberg.github.io/pulpo/
- Size: 8.07 MB
- Stars: 18
- Watchers: 2
- Forks: 6
- Open Issues: 5
- Releases: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
README.md
📍 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
ℹ️ Development of a GUI for simple optimization tasks
ℹ️ Enable PULPO to work on both bw2 and bw25 projects
ℹ️ 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
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.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
Owner metadata
- Name: Fabian Lechtenberg
- Login: flechtenberg
- Email:
- Kind: user
- Description:
- Website:
- Location: Barcelona
- Twitter:
- Company: Universitat Politècnica de Catalunya
- Icon url: https://avatars.githubusercontent.com/u/67694245?u=fe33f5029f1012462fa7ec7729ef6553a2505bcf&v=4
- Repositories: 1
- Last ynced at: 2023-10-05T13:38:58.535Z
- Profile URL: https://github.com/flechtenberg
GitHub Events
Total
- Issues event: 5
- Watch event: 5
- Delete event: 11
- Issue comment event: 2
- Member event: 1
- Push event: 42
- Pull request event: 16
- Fork event: 5
- Create event: 13
Last Year
- Issues event: 5
- Watch event: 5
- Delete event: 11
- Issue comment event: 2
- Member event: 1
- Push event: 42
- Pull request event: 16
- Fork event: 5
- Create event: 13
Committers metadata
Last synced: 9 days ago
Total Commits: 102
Total Committers: 2
Avg Commits per committer: 51.0
Development Distribution Score (DDS): 0.353
Commits in past year: 60
Committers in past year: 2
Avg Commits per committer in past year: 30.0
Development Distribution Score (DDS) in past year: 0.4
Name | Commits | |
---|---|---|
Fabian Lechtenberg | f****g@u****u | 66 |
flechtenberg | f****g@c****h | 36 |
Committer domains:
- chem.ethz.ch: 1
- upc.edu: 1
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 6
Total pull requests: 18
Average time to close issues: N/A
Average time to close pull requests: about 17 hours
Total issue authors: 1
Total pull request authors: 1
Average comments per issue: 0.33
Average comments per pull request: 0.0
Merged pull request: 18
Bot issues: 0
Bot pull requests: 0
Past year issues: 6
Past year pull requests: 9
Past year average time to close issues: N/A
Past year average time to close pull requests: 1 day
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 0.33
Past year average comments per pull request: 0.0
Past year merged pull request: 9
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- flechtenberg (6)
Top Pull Request Authors
- flechtenberg (18)
Top Issue Labels
- enhancement (4)
- documentation (1)
- help wanted (1)
Top Pull Request Labels
- enhancement (1)
Package metadata
- Total packages: 1
-
Total downloads:
- pypi: 239 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 10
- Total maintainers: 1
pypi.org: pulpo-dev
Pulpo package for optimization in LCI databases
- Homepage:
- Documentation: https://pulpo-dev.readthedocs.io/
- Licenses: BSD License
- Latest release: 0.1.6 (published about 1 month ago)
- Last Synced: 2025-03-18T16:02:12.566Z (about 1 month ago)
- Versions: 10
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 239 Last month
-
Rankings:
- Dependent packages count: 7.303%
- Forks count: 29.948%
- Average: 36.151%
- Stargazers count: 38.914%
- Dependent repos count: 68.439%
- Maintainers (1)
Score: 9.309280319831085