-
|
Hi, Thank you very much. `import mesa def compute_gini(model): class MoneyModel(mesa.Model): model = MoneyModel(10) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
From the snippet, it seems to me that |
Beta Was this translation helpful? Give feedback.
From the snippet, it seems to me that
a's value doesn't vary across agents. As such, specifying it as a model attribute that is read by the agents should be sufficient. The agents can access the value viaself.model.a.