I am currently working on a model which is similar to the Airport Delivery model in Anylogic. There are multiple Houses a Truck is delivering from a Hub. The model works so far so good.
Now I would like to calculate prices for each package that is delivered. For that I need distance the truck travelled and time the truck has travelled. But my functions don’t work.
My process flow
My Agents
I tried the getDistanceTravelled(Agent agent) function in movedTo. But I don’t understand what to insert in the brackets.
Toni Gliege is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.