question

Iago MF avatar image
1 Like"
Iago MF asked Iago MF commented

Problem with distancetotravel() in AGV network

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

FlexSim 23.0.6
agvagvnetworkdistancetotravel
· 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.

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered Iago MF commented

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.

· 11
5 |100000

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