Heat map using A*, AStar to show congestion

Heat map using A*, AStar to show congestion

haneen_a
Not applicable
27 Views
3 Replies
Message 1 of 4

Heat map using A*, AStar to show congestion

haneen_a
Not applicable

[ FlexSim 20.2.0 ]

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.36681-heatmap.png

Traditional_d.fsm

0 Likes
Accepted solutions (1)
28 Views
3 Replies
Replies (3)
Message 2 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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

36685-1612838351979.png

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:

36688-1612838596741.png

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.


Message 3 of 4

haneen_a
Not applicable

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
Message 4 of 4

joerg_vogel_HsH
Mentor
Mentor

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