question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Jason Lightfoot commented

AGV does not take the shortest route

Hi @anthony.johnson ,

We are working on an AGV model and we came up with some questions/problems.
Attached to this post you find a model that is just the start point. The AGV picks up 1 rack, drives it to a replenishment station and drives back into the warehouse. The first thing we notice is that the AGV does not take the shortest route. We would expect the AGV to take the green route, but it takes the red routes:
1667316491045.png

Could you think of any reason why this happens?

We thought to refresh the path links, but doing that will throw an error when the AGV tries to load the rack. This seems to be a small bug?

Also the route back to another control point does look a bit weird, but I guess that can be the same problem/bug as our first question. We are using the AGV.RoutingConstraint properties, maybe that has something to do with the issues we have.

Thank you for the help.

Patrick

AgvGridModel_5.fsm

FlexSim 22.2.2
agvsshortest route
1667316491045.png (11.0 KiB)
agvgridmodel-5.fsm (335.5 KiB)
· 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.

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·
@anthony.johnson ,

Would you have some time to look at this and to see if we are doing something wrong in the model or if there is a bug?

0 Likes 0 ·
Andrew O avatar image Andrew O commented ·

Hi @Patrick Zweekhorst, was anthony.johnson'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 unaccept and comment back to reopen your question.

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Andrew O commented ·
Hi @Andrew O, The answer was definitely helpful. Just 1 thing. I did not get any email notifications that an answer was posted, or that your comment was posted. Just by accident i noticed that you posted something. Would you know why I am not getting any notifications?
0 Likes 0 ·
anthony.johnson avatar image
1 Like"
anthony.johnson answered Matthew Gillespie commented

This is a bug in the user customization delegate. You had added a user customization delegate, but had not toggled the getPathTravelWeight node as flexscript, and it doesn't check if the nodes are toggled for code, so it was returning 0 for the travel weight of everything, which was messing the A* algorithm up. I'll make a change to check the code toggle before evaluating. As a workaround, you can toggle the getPathTravelWeight node as flexscript and return -1, which means use the default travel weight.

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·
@Patrick Zweekhorst This bug has been fixed for 22.0.10 which comes out next week.
1 Like 1 ·
lariwalker avatar image
0 Likes"
lariwalker answered Jason Lightfoot commented

Hi @anthony.johnson. I'm having a similar issue where I have a grid patterned AGV path and one AGV on it (for now). Each AGV cycle there is a randomly selected "hole" it is assigned to and travels to. Since it's a grid, the shortest path should be basically X then Y, but if you sit and watch it for a few cycles you'll see it doing paths like this:

1670422225080.png


When it would have been better to do something like this:

1670422259976.png


All my paths are straight, two way paths with no specific weights attached to them.


Thanks!

AGVBasedModel_share.fsm


1670422225080.png (274.0 KiB)
1670422259976.png (274.5 KiB)
· 5
5 |100000

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

anthony.johnson avatar image anthony.johnson ♦♦ commented ·

https://docs.flexsim.com/en/23.0/Reference/Tools/AGVNetworkTool/AGVNetwork/AGVNetwork.html#general


Check the box “create transfers at crossings” then right click a path and refresh all path links.

0 Likes 0 ·
lariwalker avatar image lariwalker anthony.johnson ♦♦ commented ·
Hi @anthony.johnson, thanks for the response!


I'll do a better job at reading all the relevant documentation - promise! In this case, somehow doing as you suggested didn't fix the issue. Did it work on your end? Maybe I'm doing something wrong.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ lariwalker commented ·

At what time are you seeing a problem ? I could not detect the issue.

agvbasedmodel-share_jl.fsm

0 Likes 0 ·
Show more comments