I continue with my model for the distribution center (cross dock) and AGVs.
I am dispatching tasks to the closest transporter.
However, given that the warehouse is quite large, I want to dispatch tasks to the transporter who is closest to pick the task, but, taking into consideration its current task and distance to its destination. So the distance is the sum of distance from the atom to pickup to the AT, plus the distance from the AT to its destination:
Code: Select all
valDistance:= cell( att([nodenumber], out(2, out(count, atmDispatcher))), valPickUpNode, atmDistanceTableNetwork)+cell( att([destnode], out(2, out(count, atmDispatcher))), att([nodenumber], out(2, out(count, atmDispatcher))), atmDistanceTableNetwork),
Thanks!