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

Purerer python #51

Closed DavoudTaghawiNejad closed 7 years ago

DavoudTaghawiNejad commented 7 years ago

a round is now executed like this:

simulation = abce.Simulation(processes=processes)

simulation.aggregate('agent', variables=['i', 'r'], possessions=['money'])
simulation.panel('agent', variables=['i', 'r'], possessions=['money'])

agents = simulation.build_agents(Agent, 'agent', 10, parameters='')

for r in range(100):
    simulation.advance_round(r)
    agents.do('go')
    agents.aggregate()
    agents.panel()
simulation.finalize()`