question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Joshua S answered

People flow deadlock with AStar

I have a hospital people flow model where the I have hundreds of patients and employees walking all over the place with Astar. I need to simulate a whole day to make stats on corridor occupation. However after a little while I get:

time: 5212.683077 exception: Unrecoverable deadlock encountered for Person male1. Model stopped

First question is that I have no way to know who Person male1 is. No person in the model has that name. They are all named Person123, Person124, etc. Even the staff because I create them as needed with CreatePerson. Is there a way to know who that Person male1 is?

Second and more important question, is there a way to prevent the deadlock in the Astar settings or any other way. I suspect the problem is in this area of the model. See picture below taken at 5212.68 seconds. I can't make the corridor wider because that's the real width. The whole point of the simulation is identifying these problem areas. But since I can't run the whole day, I'm stuck.

Thanks a lot for any suggestions and ideas.

FlexSim 18.1.2
astarpeople flowdeadlock
capture.jpg (58.3 KiB)
· 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.

Patrick Cloutier avatar image Patrick Cloutier commented ·

I've looked in slow motion and the sequence in the picture is the one causing the deadlock. As people change lane to avoid the people coming in front, they come across people in the other lane and the deadlock happens. Also, people have different walking speeds so this may complicate things. Like the guy in the wheelchair here which kinda causes this.

Maybe I could force people to stick to their side of the corridor. Could I use PreferedPath? How does it work? I can't find anything on it in the manual.

Another option, could I have a code that says something like: If deadlock, take person and place it at x,y,z and continue simulation instead of stopping. Where would I place that code and what would it look like?

A 3rd option: If I had code which prevents people of passing others when there are others coming the other way.

Looking for options. Thanks,

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier commented ·

OK I've made the corridor wider just at that spot and it solved the deadlock and there are deadlocks elsewhere later on. The only thing that works so far is remove the collision avoidance but it kinda looks weird to have people what through each other.

0 Likes 0 ·

1 Answer

Joshua S avatar image
0 Likes"
Joshua S answered

Try using preferred paths, this will push people to one or the other side of the corridor.


pic1.png (20.1 KiB)
5 |100000

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