Skip to content

Tag: anylogic

how to get different type of agent in Main in anylogic

Now I set two types of agents: Atype and Btype, and use the pedsource to let these two types of agents run between two target lines. I want to get an agent belonging to Atype, and another agent belonging to Btype, And then add some calculations. so I write this code: for(Atype p : get_Main().Atype) and for(Bt…

Anylogic-how to calculate distance between pedestrians

I use the pedestrian library (use the ped source, ped Goto, and ped sink) and want to simulate the sidewalk environment. The goal of this model is to get the data that the distance between pedestrians is less than 1m. So, I try to calculate the distance between pedestrians. In the Anylogic, the information of…

Scheduling Simulation Run in Anylogic

I am working on workshop model where i have set of service blocks and resource pools associated with it. I want to run the Simulation for 8 hours on daily basis but is should run for a week. For example the run time is 80 hours, model start on 3 -sept at 8:00AM and run till 3-sept 4:00PM, now model