alan-turing-institute / clamms

Cooperative Learning in Agent-Based Monetary Models (CLAMMs)
MIT License
3 stars 1 forks source link

refactor trade facilitation mechanism #38

Closed edchapman88 closed 1 year ago

edchapman88 commented 1 year ago

Current Mechanism:

Proposed mechanism to look into:

sgreenbury commented 1 year ago

Update:

sgreenbury commented 1 year ago

Looking a bit more into the way the scheduler works, it looks like the trading needs to all be done within the trader. See the following lines of the scheduler as the scheduler processes events on agents without looking at the grid and using versions of the agent from the previous step.

Initial implementation (6720cb0) of trading inside agent using: