question

Nicholas Grazioli avatar image
1 Like"
Nicholas Grazioli asked Jason Lightfoot commented

AGV path cost multiplier doesn't work in some cases

Hi,

I am working with custom cost paths using the functionality introduced in flexsim 2022, the cost multipliers.

I noticed that the behavior of the AGVs is changed by enabling the "Show AGV Routing Accessibility".

If I start the model without the "Show AGV Routing Accessibility" enabled I see the correct behavior (the AGV1 uses the corridor below to reach the destination - first screenshot), but if I start the model with the feature enabled from the destinatin Control Point the AGV1 uses the corridor above as if the cost multiplier was not enabled (second screenshot). I think that this could be a bug.

1651652169321.png1651655038708.png

In the attached model you can see this behavior.


Cost_Multiplier_Bug.fsm

FlexSim 22.0.3
agvnetworkagv pathroute costcost multiplier
· 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

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo commented

Attached is a simpler sample model demonstrating the issue.

agv_cost.fsm

"Path-based costing is assumed to be static. When the system needs a routing table to a destination, it will only build it once and cache it off. Subsequent routing will use the cached table."

AGV Network (flexsim.com)

It appears that what is happening is that the drawing of routing accessibility displays the cost without the multiplier, which is caching off that un-multiplied cost into the routing table. Thus, subsequent routing is using the routes without the custom path cost multipliers.

You should turn off Show AGV Routing Accessibility before running your model.

Show AGV Routing Accessibility is designed to be a debugging tool to get information about the dijkstra's algorithm results. You shouldn't be running the model with that setting on.

Nevertheless, I'll add a case to the dev list to look into this further and determine if we should change how this works.


agv-cost.fsm (33.4 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.