The working paper version is available at http://ssrn.com/abstract=2060620
Here you can find the Python scripts used to generate the simulations in my paper. They can be modified to generate the simulations of my paper with Peter Howitt "Adaptive Consumption Behavior" or to simulate consumption behavior in large scale Agent-Based Macroeconomics models.
Scripts are included in the scripts directory. In order to generate the graphs you need to run:
The data.zip file contains all the generated data and figures in case you want to check them out.