question

Haneen A avatar image
0 Likes"
Haneen A asked Joerg Vogel commented

Heat map using A*, AStar to show congestion

I am working on a Luggage handling system, and currently, I'm trying to find a way to show Passengers congestion using the heat map provided by the A*.

I know the steps and followed the FlexSims manual provided here, yet it's not working, I looked for answers, and this post shows exactly what I'm trying to reach.

I tried everything and what I get is red lines that show passengers walking paths, I would rather have a red color in the congestion area rather than lines, same as the previous answer I mentioned.

for example:

Red color should be near each conveyor because passengers will be waiting for their luggage in that area and it will be crowded.

I hope my question is clear to you.

Thank you.

Traditional_d.fsm

FlexSim 20.2.0
astarflexsim 20.2.0heat mapheatmapcongestion analysis
heatmap.png (473.3 KiB)
traditional-d.fsm (4.5 MiB)
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Joerg Vogel commented

You should change your colors from all red so that you can distiguish hot from cold. (your color pallet was all red).

Then run this script to find out the maximum percentage for any traversal:

treenode extraData=Model.find("AStarNavigator>stats/extraData");
int maxtraversals=0;
forobjectlayerunder(extraData){
    maxtraversals=max(maxtraversals,getsdtvalue(a,"totalTraversals"));
}
double maxpercent=maxtraversals*100/Model.find("AStarNavigator>stats/heatMapTotalTraversals").value;
return maxpercent;

and then enter that as the "hot" value in the field above called "Max Heat Value".

You will then see that the place with most traversals is at the front of cart collection area:

If you want other areas to appear as hot then just lower the number. But this just tell you where most traffic went, not if there is congestion - for that you may want look at agent systems.



1612838351979.png (15.2 KiB)
1612838401065.png (15.2 KiB)
1612838596741.png (385.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.

Haneen A avatar image Haneen A commented ·

what about the agent system Mr.Jason?, I'm not familiar with it and would like to know about it if it will help me in this situation.

thank you,

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Haneen A commented ·

Agent Module Article gives you an overview. It includes example models and a fantastic video link. @Cai C discussed in another thread the mechanism of collision by using this proximity agent module.

0 Likes 0 ·