Attach a global variable to the simulation.
Arguments
- .env
the simulation environment.
- key
the attribute name.
- value
the value to set, either a numeric or a
schedule
, so that the global may change during the simulation.
See also
Convenience functions: schedule
.