I am building a simulation model in AnyLogic where the process involves several steps from order generation to delivery:Hello, I am building a simulation model in AnyLogic where the process involves several steps from order generation to delivery:
Order Generation: Customers place orders at the depot.
Order Transmission: Instead of sending orders directly to customers, the depot sends them to one of several transshipments.
Order Delivery: From the transshipments, the orders are supposed to be delivered to the customers.
I have successfully generated an event in the customer agent that triggers order creation at the depot. The depot then dispatches these orders to various transshipments. However, I am stuck at the point where the transshipment needs to send the orders to the specific customers. I am unsure how to transfer the specific order details (which customer ordered and how much) from the depot to the transshipment agent.
Here is what I tried:
I have created an agent called “Order” designed to encapsulate the details of each order, including customer, amount, and transshipment. This agent facilitates the transfer of products from the depot to the transshipment point. I have designed a statechart within my vehicle agent to manage product delivery from the transshipment to the customers (refer to the attached figure). I introduced a variable “orderFromCustomer” and linked it to the Order agent, aiming to direct the vehicle to the appropriate customer. The vehicle is intended to deliver products via a messaging system; however, this mechanism is currently not functioning as expected.
Specifically, my question is:
How can I pass the details of each customer’s order from the depot agent to the transshipment agent within the simulation? How do I have to change my statechart so that the process works?
I would appreciate any insights or suggestions on how to resolve this issue, including any relevant examples or documentation.
Thank you!
enter image description here
Sarah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.