Registers a good that model agents can carry or trade. Agents will keep track of stocks of the good in the
name — str, required
The name of the good.
color — str, required
The color that ought to represent the good in the control panel and visualizations. Can take a hex string, a color name string (see the Matplotlib documentation for valid values), an RGB tuple with ranges from 0.0 to 1.0, or a Color object.
endowment — num|tuple|func(str), optional
Determines how much of the good agents begin the model with.
- If a number (int or float), agents instantiate with that amount of the good.
- Can also be a function that takes the breed as its only argument and returns a number.
- A two-int tuple will endow the agent with a random amount uniformly distributed between those two ints.
Default value: None
money — bool, optional
Sets the good as the medium of exchange for the purpose of functions such as
agent.buy(). Only one good can be declared the monetary good.
Default value: False
Return Value — Good
The newly created