How to solve deadlock problem?

How to solve deadlock problem?

Penny1
Not applicable
194 Views
2 Replies
Message 1 of 3

How to solve deadlock problem?

Penny1
Not applicable

[ FlexSim 23.2.1 ]

I have set up a model with several AGVs.

During traveling, two of AGVs will always deadlock on the one road.

In this case, I want to preempt both AGVs to stop at their current control point. Then restore one of the AGVs first (maybe let the AGV move to the next two control points.), and then restore the second AGV after the first restored AGV leaves the area.

1712520213746.png


So I decided to use Process Flow to accomplish this.

1712520813687.png

But I don't know how to write my idea into code...

Can anyone help me complete this?

deadlock.fsm

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

kavika_faleumu
Autodesk
Autodesk
Accepted solution

Hey @mni_pei, there's a section in the documentation that talks about preventing deadlocks in an AGV network. Your problem specifically occurs because of all the two-way paths. When an AGV is trying to route somewhere, it will choose the shortest path, which may be backwards. If you have another AGV right behind it (which is guaranteed in your model because they all start at the source of boxes), then you will get a deadlock.

I recommend restructuring your model to only use 1-way paths OR to increase the max-allocations at the Control Points so you can have multiple AGVs at one station and they can pass through each other.

0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @mni_pei, was Kavika 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