1
0
Fork 0
something something input-output tables
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
anonymous f12794c5e3 Initial Commmit 6 months ago
lib Initial Commmit 6 months ago
src Initial Commmit 6 months ago
.gitignore Initial Commmit 6 months ago
LICENSE Initial Commmit 6 months ago
README.md Initial Commmit 6 months ago
build.zig Initial Commmit 6 months ago
config.json Initial Commmit 6 months ago
mess.lua Initial Commmit 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

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.