AB-CE / abce

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

Another way to die - Could you please look whether this is a sensible way to go about this? #101

Closed DavoudTaghawiNejad closed 6 years ago

DavoudTaghawiNejad commented 6 years ago

The problem was that replacing dead agents with dummies slowed down the simulation considerably. The new approach is to replace agents with None and, when new agents are created replace them. What do you think about this implementation?

DavoudTaghawiNejad commented 6 years ago

Update to give correct id if new agent is appended instead of replacing the slot of a dead agent.