Relative Content

Tag Archive for anylogicagent-based-modeling

How to Develop a Method to Forward Customer Orders

I am building a model in AnyLogic where my Sprinter agent delivers incoming customer orders from the Depot agent to the Transshipment agent. The goal is to forward the customer order information to the transshipment so my vehicles can deliver these orders to the customers. To achieve this, I developed the following method in the “on arrival to target location” in the Sprinter:

How to make agents exchange message based on proxity?

I’m creating a zombie apocalypse simulation. I created this function within the main. The function is supposed to have the zombie and human exchange messages when they get within 1 meter of each other. Eventually this message exchange will cause a state change or change from one entity to the other (human to zombie).

How to batch orders for different destinations in AnyLogic?

I’m building a model in AnyLogic where the Depot agent receives orders from the Customer agent. The depot needs to send the orders to one of the 3 transshipments. Here’s my current process flow for processing the orders:current Processflow in the Depot.
Additionally, my vehicle statechart looks like this:Statechart for the Vehicle in the Depot.

How to Move One EV to One Nearest Station Only

I want to move EVs to charge at the nearest charging stations. but if the station is occupied, other EVs should move to the available and second nearest location. I wrote this code but EVs are still going to the closest and occupied station. How to fix this issue? Any help is appreciated…