NetLogo: 1 tick = how many seconds?

How many ticks in a NetLogo simulation (at normal speed) equals 1 "real world"?

+7
netlogo
source share
6 answers

Ticks are a unit of arbitrary measurement of time inside the simulator, since most simulation simulators are not tied directly to real world time - down to the person who writes the simulation to decide how the tick is displayed in the real world.

As for setting the “normal speed” that NetLogo has, it means (and this is from experience, not from knowing how it actually works) that every time a tick is processed, NetLogo will wait until the graphic display is updated until the next launch.

If you slow down the simulation (move this slider to the left), then NetLogo will wait for additional time before each simulation step, if you speed it up (move the slider to the right), then NetLogo will continue to simulate until the graphic display updates, which means that you probably You will see that each step of the simulation is visualized.

+14
source share

In my opinion, the transition from ticks to the second depends on the context.

Example: imagine that each patch in Netlogo is 40 cm from the real world, imagine that a person is walking in a new patch in each tick. The average person’s speed when walking is estimated at 1.2 m / s, so every 3 ticks of a person performs 1.2 m. Finally, we can say that 3 ticks in a simulated environment correspond to 1 second of agent’s life.

Resizing patches or agents that change these proportions, and therefore the tick value.

One tick is not intended for fixed correspondence with seconds, but it just means “unit of time”.

+3
source share

From my experience with NetLogo, I do not think that DO ticks correspond to real world time. I believe that they are not needed. Did you read something nasty?

+2
source share

If you really want to measure the use of seconds instead of ticks, you can use the every keyword. This is not recommended because it will not be synchronized at the tick rate per second. You will not be able to adjust the speed of the slider tick and extend it to everything. But it is there.

Additional mailing list information: http://netlogo-users.18673.x6.nabble.com/Running-command-every-x-iterations-td4864424.html

+1
source share

Perhaps, although you can calculate the time to run a certain part of the code in Netlogo (in the real world). See: Procedure execution time in NetLogo

1.) using reset -timer and timer

2.) NetLogo profiler extension

0
source share

If you want to make one tick, specify a certain amount of time (one minute, one day, 2.73 years ...), use the TIME extension: https://github.com/colinsheppard/time

0
source share

All Articles