question

Jay K9 avatar image
0 Likes"
Jay K9 asked Carter Walch edited

How to use A network for people flow ?

So I'll be generating 100s of operator as objects in process flow using create object. I want all those people to follow for A* network to go to a certain location and then get destroyed. How can I achieve this?

FlexSim 21.1.5
a star navigationpeople flow
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

·
Carter Walch avatar image
1 Like"
Carter Walch answered Carter Walch edited

Hi @Jay K9 ,

If you are using FlexSim's healthcare environment with an arrivals process flow and person flow using a "create patient/create person" activity, the created people automatically join the A star network. However, if you are using create object to create operators, you can still accomplish this by using this code:

contextdragconnection(token.person,Model.find("AStarNavigator"),"A");

This makes an A connection from the created person to the AStarNavigator which adds them to the network. Attached is a model demonstrating this. You may also find this post useful

AStarExample.fsm

astar.gif


astar.gif (411.4 KiB)
astarexample.fsm (31.1 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hello @Jay K9,

Here is a model that uses the person flow.

1689003933996.png

PersonExample.fsm

1 Like 1 ·
1689003933996.png (22.9 KiB)
personexample.fsm (41.9 KiB)

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.