Crane Colision with agent System

Crane Colision with agent System

andreas_boehmer
Contributor Contributor
10 Views
4 Replies
Message 1 of 5

Crane Colision with agent System

andreas_boehmer
Contributor
Contributor

[ FlexSim 22.1.4 ]

Hello,

last week i looked for a solution to avoid crane collision. I found this thread very interesting and tried to use it. It use the file "crane-collidsion-with-agent-system" from this topic and inserted it to my model. The problem is, that "Kran528" stops and "Kran528" crosses K528. I don't know why.

Thank You!

0 Likes
Accepted solutions (1)
11 Views
4 Replies
Replies (4)
Message 2 of 5

andreas_boehmer
Contributor
Contributor

cranecollision_1.fsm

i fort the file..

0 Likes
Message 3 of 5

ralf_gruber
Collaborator
Collaborator
Accepted solution

Andreas,

In your logic a new TS is created for Crane528 with every in proximity check, e.g. every 0.1s. This creates a new TS preempting the old one every single time for Crane528, always starting at speed zero. With the little acceleration of the cranes, Crane528 does not make any significant distance, while crane523 stays at the same speed and sooner or later bumps into Crane528.

If you change the crane´s Gantry acceleration to "0", meaning infinite, you´ll see it move. You will have to change your logic to not create a new TS, when a preemptive TS alreay exist to move it out of the way.

Good Luck

0 Likes
Message 4 of 5

andreas_boehmer
Contributor
Contributor

Thank you! I changed the update interval and gantry Acceleration. It works fine.

0 Likes
Message 5 of 5

ralf_gruber
Collaborator
Collaborator

Andreas,

I would modify the logic in a way that the task sequence to move the lower priority crane out of the way is only created once, not with every single call of the logic.

It seems the original design was meant to do this, therefore the TAG task to mark the task sequence and not recreate it. For some reason it just doesn´t work.


0 Likes