Problem with distancetotravel() in AGV network

Problem with distancetotravel() in AGV network

iago_mf
Not applicable
23 Views
13 Replies
Message 1 of 14

Problem with distancetotravel() in AGV network

iago_mf
Not applicable

[ FlexSim 23.0.6 ]

Hello,

I was working on a model with a high number of AGVs using accumulation paths, where I need to know the distance remaining for the AGVs to complete a mission in order to assign missions optimally.

When working on this, I have noticed that on multiple occasions the value returned by the distancetotravel() function is infinite, making it impossible to efficiently assign missions.

I have created a small model where I replicate this case, where it is observed that it returns an infinite value while it is blocked by accumulation at a crosspaths, this occurs at second 435 approximately.

Is this a bug? I understood that the distancetotravel() function is simply a distance check between the point where a traveler is and a destination in the same network, regardless of what happens in the network.

Thanks in advance.

23.0 DistanceToTravel Problem.fsm

1680774069379.png

Accepted solutions (1)
24 Views
13 Replies
Replies (13)
Message 2 of 14

kavika_faleumu
Autodesk
Autodesk
Accepted solution

Hey @Iago MF, the documentation for distancetotravel() states that it

Returns the distance that a traveler (Operator, Transporter, etc) would need to travel in order to reach the given destination. If the object is connected to a network, then it will return the travel distance along the network.

Considering the route for the AGV at that time is blocked due to traffic and it cannot reverse its current path, it states it will take an infinite amount of time to reach its destination (which is currently unreachable). Once the path clears, the value changes back to normal distance to travel.

So I think this is working as intended and is not a bug. However, I could be wrong so I'll email dev and let you know what their thoughts are on how the function works.

0 Likes
Message 3 of 14

patrick_zweekhorst
Advocate
Advocate
Hi @Kavika F ,

I would expect the function to still return the travel distance. Although the path is blocked the distance that would need to be covered is still the same. The time needed to do this is unknown, but the distance will stay the same right?

0 Likes
Message 4 of 14

jason_lightfootVL7B4
Autodesk
Autodesk
The documentation doesn't say if it's the shortest distance (which as you say will not change) or the distance of a calculated viable route. This needs clarifying.
0 Likes
Message 5 of 14

kavika_faleumu
Autodesk
Autodesk

@Patrick Zweekhorst, it's true the distances will stay the same; however, there may be scenarios where this would be disadvantageous. Consider the case where the shortest path is blocked, but then another path opens up to the AGV. How do you choose? Do you stick to the shortest path (although currently blocked for an unknown amount of time) or do you switch to the newly opened path?

However, you're correct the distances will stay the same, and I agree with @Jason that the documentation should clarify this a bit. I'll make a note of this on the email I sent to dev. Thank you.

0 Likes
Message 6 of 14

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Iago MF, 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 unaccept and comment back to reopen your question.

0 Likes
Message 7 of 14

kavika_faleumu
Autodesk
Autodesk
Hey @Patrick Zweekhorst, I discussed this matter with the dev team. This is in fact a bug. The distance shouldn't be affected by an AGV occupying the network. If a path is unreachable, then the distance will be infinite; however, if a path is simply blocked by another AGV for a moment, it shouldn't. We have added this to our dev list. Thank you for pointing it out to us!
0 Likes
Message 8 of 14

patrick_zweekhorst
Advocate
Advocate
Hi @Kavika F , thank you for the feedback. Keep up the good work you are all doing improving the software
Message 9 of 14

iago_mf
Not applicable
Hi Kavika!

Do you know if this bug is being fixed anytime soon?

Thanks!

Message 10 of 14

kavika_faleumu
Autodesk
Autodesk
Hey @Iago MF, there currently isn't any active development on this bug. I could talk to the dev team about increasing priority on this though.
0 Likes
Message 11 of 14

anthony_johnsonT83CM
Autodesk
Autodesk
This will be fixed in the next LTS release.
0 Likes
Message 12 of 14

iago_mf
Not applicable

Thanks Anthony!

0 Likes
Message 13 of 14

Matthew_Gillespie
Autodesk
Autodesk

@Iago MF

This issue is fixed in 23.0.9 and 23.1.3 released today.



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 14 of 14

iago_mf
Not applicable
Thanks Matthew!
0 Likes