question

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

Changing the weights of the AGV paths

Hi @anthony.johnson,

I read your post to Stevens question about closing and opening AGV paths.

https://answers.flexsim.com/questions/87363/condition-closing-of-agv-paths.html

As you mention there it will become significantly slower if we need to compute the routing table each time an AGV starts to travel.

In the model Steven was talking about it could also be an option to just change the path weights at the start. We would increase the weights of the paths that are under the rack. In that way the AGV should only take the paths under the rack if they really need to be there. If they don't need to be at the rack, they will drive around it because of the weights.

Would it be an option to only change the getPathTravelWeight function and keep shouldBuildCustomRoute on 0, such that we don't recalculate the route tree each time? Or is it an option to let the shouldBuildCustomRoute only return 1 after the first travel task of the model, such that the route table is updated with the custom weights at the start of the model, but not after this.

I have tested the functions where I set the shouldBuildCustomRoute to 1 only for the first travel task. For the second travel task I did not, and it used the shortest route (instead of using the weights). Is there a something else I need to toggle or is the custom route not saved and should it really be called each time?

Thanks for all the AGV tips lately.

Patrick

Note I made the model in 20.0.7, when I opened the model in 20.1 it did not work anymore

AgvWeightTest_3.fsm

FlexSim 20.0.7
agvpathflexsim 20.0.7weights
agvweighttest-3.fsm (37.7 KiB)
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

anthony.johnson avatar image
0 Likes"
anthony.johnson answered Patrick Zweekhorst commented

@Patrick Zweekhorst Custom routes are not saved. Thus you have to recalculate them every time. So, yes, for now there's no way to optimize for speed when you defining customized routing.

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

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

@anthony.johnson,

Thanks for the reply. Is it an option for future versions to include an option to save the customized routing?

0 Likes 0 ·