I am trying to set 2 conditions that have to be checked inside the Condition field of selectOutput. If the entirety of the first line is false, I want the entirety of the second to be checked. However, using the code below, I am returned the error that only shows for the first instance of == of the second statement:
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)
how to count pedestrians or other calculations in a specific area in anylogic
Now I set three services and let pedestrians run between the targetline1 and targetline2 in anylogic. Part of pedestrians will enter into services and then go to the targetline1 or 2. I want to count the total number of pedestrians only in the node(blue rectangular). how can I calculate pedestrians only in the node area? (I also want to calculate
How to record the data (like the number of queue) each day in Anylogic?
I want to record the number of people leaving from the timeout every day and make a chart to show the daily condition. However I only know how to record the accumulated quantity, but I don’t know how to re-record the data every day. Hope to get help from you, thank you very much! enter image description here enter image
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
How can I have a button on the Anylogic simulation experiment page that will run the model and show the main page?
How can I have a button on the simulation experiment page that will run the model and show the main page? I’ve seen the video “Setting up Parameters from the Experiment Page”; the Elephant model is turned on/run simply by pressing a button. How can I do this; I’ve tried a button with the action run() but this just runs
creating an Agent with differently set parameters according to probabilities
I am modeling an assembly line that has a big variety of products that require different steps in the assembly (mostly different delay times). From previous trial and error I’ve learned that I have to use only one Agent type to mimic the parts. So I set up an Agent with multiple string and boolean Parameters. In the blocks following