question

Shinya O avatar image
0 Likes"
Shinya O asked Jordan Johnson answered

Endless loop in AStar

Hi,

This model causes an endless loop regarding AStar node allocation. Is this a bug? Is there a workaround?

1729501316946.gif

Thanks in advance.

astar_sample.fsm

FlexSim 24.0.4
astarastar navigator
1729501316946.gif (2.0 MiB)
astar-sample.fsm (52.0 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Shinya O, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

This is a known behavior of AStar. This is a case where FlexSim's cycle-breaking logic is insufficient. There are a few main ways to work around this issue:

  • Add control areas or preferred paths or other mechanisms to avoid creating a cycle.
  • Add logic to the On AStar Block trigger to handle collisions with custom logic.
  • Add logic to On AStar Reroute to send the "rerouted" traveler on a different path.

Using these methods, the user can avoid the specific issues they see in their model.

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
0 Likes"
Jeanette F answered Shinya O commented

Hello @Shinya O,

This has been submitted to the development team for further investigation.

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

Shinya O avatar image Shinya O commented ·

Hi @Jeanette F ,

This is a question from a customer, so if it takes time, we would like to let the customer know. Please give your progress update.

0 Likes 0 ·