Skip to content
Advertisement

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(Btype b : get_Main().Btype)

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 pedestrians can be collected by

AnyLogic memory error: how to know how much the threshold is exceeded?

I have a lot of road traffic and markup elements, charts, nodes and arcs within my Main agent. When running the simulation it throws the following error: Description: The code of method _createPersistentElementsBP4_xjal() is exceeding the 65535 bytes limit. I read this article: https://noorjax.com/2018/10/17/your-agent-is-too-big-memory-problem/ However, I would like to know how much have I exceeded the limit. Is there any

Anylogic. NullPointerException. Error when executing a discrete event

I’m doing a project for studying. There is an agent with 2 variables that take the value True or False using the randomTrue() function. The construction of the project does not reveal errors. At startup, it throws an error when executing a discrete event:NullPointerException. Not a single agent was entered into the system. On source 0. I tried to change

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

Advertisement