question

Pablo Abia avatar image
0 Likes"
Pablo Abia asked Pablo Abia answered

Queue strategy in AGV task not working as expected

Hi all,

AGV_corridor_exemple.fsm

My model already works almost as I wanted it to, but I find that in second 15750 I get and AGV going to load an item from a Queue where there is already one AGV, so in the end the way is blocked and simulation time stops...

I've tried to set the pulling strategy to filter by distance, but it doesn't seem to be working...

Could someone help me?



Thank you very much in advance!


Pablo

FlexSim 20.1.0
flexsim 20.1.0
· 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.

pc neo avatar image pc neo commented ·

You are looking at the number of flowitems in the list and attempt to pull one that is shortest distance from the AGV (puller). However at time 15750 there is only 1 flowitem in the list while all 4 AGVs are attempting to pull, therefore the flowitem is pulled by the first AGV that has first entered into the "pull from list" activity, which results in your model behaviour.

So, instead the "order by distance" should be evaluated at the "back order queue strategy". This should works.

Also, I think you will need to have the "puller" be set as token.agv instead of token (at pull from list). This way the distance will be evaluated from the agv to the queue. And also to be calculating the effective distance between the agv to the queue, it is better to use cpdistance() command.

Hope this helps. :)

2 Likes 2 ·

1 Answer

·
Pablo Abia avatar image
0 Likes"
Pablo Abia answered

Hi,

I finally got a solution to this issue from Flexsim through other way. It have been done using a little script to get the distance from the puller (the AGV) to the Queue using the "distancetotravel()" function and pulling the value by ASC strategy.


Thank you pc neo for your help, it was a good advise as well.


See you all,


Pablo

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.