Info tab says
This model makes 1000 attempted flips in every iteration of the GO loop. It codes this as repeat 1000 [ update ].
while the code is
repeat 1000 [
ask one-of patches [ update ]
]
The info tab discusses what I would have thought is a better way to code this
ask patches [ update ]
or maybe better
ask n-of 1000 patches [update]
In either case I don't see why the code and Info tab do
tick-advance 1000 ;; use tick-advance, as we are updating 1000 patches at a time
update-plots ;; unlike tick, tick-advance doesn't update the plots, so we need to do so explicitly
rather than
tick.
Maybe I misunderstand the physics regarding what can happen in a tick but I would expect any number of flips so why advance the tick counter by 1000?
Info tab says
This model makes 1000 attempted flips in every iteration of the GO loop. It codes this as repeat 1000 [ update ].
while the code is
repeat 1000 [
ask one-of patches [ update ]
]
The info tab discusses what I would have thought is a better way to code this
ask patches [ update ]
or maybe better
ask n-of 1000 patches [update]
In either case I don't see why the code and Info tab do
tick-advance 1000 ;; use
tick-advance, as we are updating 1000 patches at a timeupdate-plots ;; unlike
tick,tick-advancedoesn't update the plots, so we need to do so explicitlyrather than
tick.
Maybe I misunderstand the physics regarding what can happen in a tick but I would expect any number of flips so why advance the tick counter by 1000?