A simple example package for economic planning.
Documentation and examples can be found in https://pablovegan.github.io/Economic-Planning/.
With pip
:
pip install git+https://github.com/pablovegan/Economic-Planning.git
See the notebooks of planning of the Spanish and Swedish economies.
- Add other nonlinear cost functions (e.g. harmony function)
Let's begin with a simple example: a self-sufficient economy without external commerce. In order to feed our population, we need to produce more than we consume:
Since we are producing more than we need, there will possibly be some excess production that we can reuse in the next period. But not all excess will be available: food spoils, machines wear out, etc. To model this, we add a depreciation
What happens if we need to import part of the goods from external economies, both for final consumption and for intermediate production?
Supposing we use in each period what we import, we can equal
This may seem like imports are not considered in our algorithm... but they are. We cannot import all the goods we want, if that happened we wouldn't need to work! To import goods from other economies we need to export something in exchange.
This package is inspired by Hagberg's and Zacharia's receding horizon planning repository and Hagberg's thesis.
Great Python packages exist for input-output analysis, such as Pymrio, altough it is not focused on planning.
Pymrio – A Python Based Multi-Regional Input-Output Analysis Toolbox. Konstantin Stadler (2021). https://openresearchsoftware.metajnl.com/articles/10.5334/jors.251
Life cycle assessment package https://github.com/brightway-lca/brightway2
ODYM - Open Dynamic Material Systems Model https://github.com/IndEcol/ODYM
Lifting Industrial Ecology Modeling to a New Level of Quality and Transparency: A Call for More Transparent Publications and a Collaborative Open Source Software Framework https://onlinelibrary.wiley.com/doi/full/10.1111/jiec.12316
J. M. Montias. Planning with Material Balances in Soviet-Type Economies
Spanish supply-use tables can be found in the website of the National Statistics Institute (INE).
Introduction to control theory. https://fab.cba.mit.edu/classes/865.21/topics/control/
We appreciate and welcome contributions. For major changes, please open an issue first to discuss what you would like to change. Also, make sure to update tests as appropriate.
If you are new to contributing to open source, this guide helps explain why, what, and how to get involved.
This software is under the GNU General Public License v3.0.