question

MOSTAFA K avatar image
0 Likes"
MOSTAFA K asked MOSTAFA K answered

How can I reduce the object's threshold in AStar Navigation system using code?

I am using AStar navigator to navigate the operators and the operators stand a little bit far from the works stations. As my works stations are relatively small, the occupied station is not clear enough. Does anyone know how can I overcome this problem?

FlexSim 20.0.3
flexscriptnavigation
5 |100000

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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

If you're using Process Flow to send the operator to the station you could replace the travel activity with a subflow that sets the persons location after they arrive at the location. Here's an example:

traveltofront.fsm


traveltofront.fsm (35.9 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.

tannerp avatar image
1 Like"
tannerp answered Joerg Vogel commented

Hi @MOSTAFA K,
Could you upload the model you're working with so we can give the best solution? I experimented using "Preferred Paths" in the attached model and it seemed to push the operator closer to the Processor.

Let us know if you're looking for something different.

preferred-path-astar.fsm


· 3
5 |100000

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

MOSTAFA K avatar image MOSTAFA K commented ·

HI @tanner.p

Thanks for your reply.

Unfortunately, I don't have the right to share this model. In this model, we have around 40 workstations, their locations are set from an imported excel sheet. The workers may go from each station to another. In this situation, I need to create more than 700 preferred paths. (Am I correct? Do I need to create a specific preferred path for each route) I can do it using a script but, to be honest, it's not easy and I'm afraid that the model will be too heavy with this method. (Considering that the operator should avoid walking through objects.)

I have used the network node for the destination of operators to increase the accuracy but for some stations, I still have the problem.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ MOSTAFA K commented ·

How are you sending the operators to the workstations? With a travel activity in Process Flow?

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

Probably there is only a slight problem with the size and location of your processors. The processor size forces the AStar grid points to add nearly a complete distance between two points to the processor in length as a gap. If you reduce the size of the processor, the grid points may lay nearer to the processor dimension. If you need just the right visual look, you can adjust the offset size values of the shape and reduce only the object size. You can try to wrangle with object size.

0 Likes 0 ·
MOSTAFA K avatar image
0 Likes"
MOSTAFA K answered

@Matthew Gillespie @Jörg Vogel

Thanks a lot for your fast and detailed response. I have improved the visual result with your ideas and the result seems perfect for me. Hope that my supervisor will also be ok with it :)

5 |100000

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

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.