Modifies the value returned by agent.balance
. Allows agents’ money balances to be filtered, e.g. if they hold money in a form other than the registered money good that ought to be counted toward total balances.
Required Parameters
agent — Agent
The agent whose balance is being checked.
balance — num
The agent's holdings of the registered monetary good.
model — Helipad
The model object.
Expected Return Value — num
The money balance to be reported for the agent.
charwick
Mar 28, 2020 at 5:33Suppose you have a model where agents hold stocks of the monetary good, as well as accounts at a bank located at
model.bank
. This example hasagent.balance
return the sum of these two.