question

Patrick Cloutier avatar image
1 Like"
Patrick Cloutier asked Ben Wilson edited

How to make people pass each other with Astar?

I have a hospital people flow model where I have thousands of people walking the corridors. Some walk slower than others. The goal is to measure the occupation of each corridor during the day.

The problem is that faster people get stuck behind slower ones even if they have plenty of opportunity to change lanes. See picture. It's not very realistic because it inflates the number of people in the corridors. I tried with long and short Preferred Paths and without Preferred Paths and the same occurs in all 3 cases.

I tried removing Collision Avoidance and it works but again its not very realistic because it deflates the number of people in the corridors. Some blockage should be expected some times. Zero blockage is unrealistic.

Is there something else I could do? Could I make faster ones change lane when stuck behind a slow one?

Or could I make them take a random Preferred path at the beginning of the corridor (or a round robin path) so that they would be distributed on all 'virtual lanes'?

Thanks a lot,

FlexSim 18.1.2
passingastart
· 1
5 |100000

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

1 Answer

Joshua S avatar image
0 Likes"
Joshua S answered Ben Wilson edited

Preferred paths have a weight attribute that designates how much pull they have on an object. There isn't a way to "push" a person to one path or another except on their creation, they could be created closer to the path you want them to be on, then they would be pulled more towards that path. so like in your picture the inner lanes could be the fast lanes and the outer ones could be slower, and on creation they are placed a little closer to the desire path. Right now with A* it doesn't really work to have a person avoid someone in front of them that is following the same path. If they are coming at each other it works, but it doesn't try to recalculate when following behind someone.

· 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.