![]() |
6 months ago | |
---|---|---|
lib | 6 months ago | |
src | 6 months ago | |
.gitignore | 6 months ago | |
LICENSE | 6 months ago | |
README.md | 6 months ago | |
build.zig | 6 months ago | |
config.json | 6 months ago | |
mess.lua | 6 months ago |
README.md
econ
I wrote this as a small testing framework for implementing and benchmarking different input-output based planning algorithms. As of now the only algorithm actually implemented is an approximation of the harmony function described by Paul Cockshott in Towards a New Socialism. I might add a GUI with graphs, or additional layers and constraints like byproducts, finite natural resources or actual productive units, distances and transport costs, if I decide to pick up the code again in the future.
Requirements
- The Zig Compiler (0.11.0-dev.1605+abc9530a8)* *source, windows binaries, linux binaries
How to Build
zig build
How to use
zig-out/bin/econ [#iterations]
You can change some of the parameters in the config.json file, including the path of the lua file with the planning functions to be executed. Planning scripts must contain these 5 functions:
assignResources()
assignWages()
assignPrices()
printConsumption()
printProduction()
The first three functions should return an array with the assignations for that iteration, check mess.lua
for a concrete example. printConsumption()
and printProduction()
don't return anything and you can leave them empty if you want.