question

Rafael C4 avatar image
0 Likes"
Rafael C4 asked Jordan Johnson answered

Release Token Lag/Crash Simulation

I've been building a model using the process flow to create People. At some point in the simulation, I'm using Release Token with a Zone to send several tokens to another activity in the process flow. The problem is that, as I'm preempting hundreds of tokens at once, the simulation freezes for about 10-20 seconds and then returns.

Is there some way to prevent this "lag"? Perhaps with some logic or resource I'm unaware of?
Obs: It also happens with few (2 or 3) tokens, but to a much lesser scale.

FlexSim 18.1.0
crashrelease tokenlag
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joshua S avatar image Joshua S commented ·

Can you upload your model for us to take a look at?

0 Likes 0 ·
Rafael C4 avatar image Rafael C4 Joshua S commented ·

simulatione.fsm

The "Evac" event is setted to start in 150 seconds.

0 Likes 0 ·
simulatione.fsm (387.3 KiB)

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

The slow part of the model is in the SetNearestExit activities. At the first evac time, 948 people measure the distance to 46 different exits. This causes the A* navigator to calculate 43608 paths. That is going to take some time to calculate. In you situation, I would use pythagorean distance, and I would not take the square root, since you are only trying to find the smallest value, and not the actual distance.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.