AB-CE / abce

Agent-based computational Economics, the Python library that makes AB modelling easier
http://abce.readthedocs.io
190 stars 64 forks source link

Implement Inventory into ABCE #40

Closed rht closed 7 years ago

rht commented 7 years ago

There will be further refactoring to ensure goods creation/destruction is done via create/destroy. There could be a static analysis tool to ensure stock-flow consistency in a model to detect whether the number of create is balanced by the number of destroy.

rht commented 7 years ago

Optimization to Cython should be done later once the correctness of this modularization has been ensured.

rht commented 7 years ago

Changing a += against a create allows down cython but is also a bit illogical, because we do not transform money in good or detroy a golf when we sell it.

All the library sees is that money is a physical good. Either it is implemented as something else, which further complicates the class, or made explicit. This is for consistency sake.