Science topics: Industrial EngineeringAnyLogic
Science topic
AnyLogic - Science topic
Explore the latest questions and answers in AnyLogic, and find AnyLogic experts.
Questions related to AnyLogic
Currently I am trying to model plastic packaging waste management scenarios and analyze the effect of interventions at the local level and policy implementation at the macro level. I have reviewed some articles and see that in some cases they have done the ABM and SD model integration using Python. However, I see that software like Anylogic and Stella (to some extent) can also combine these models.
Without considering the license price (Anylogic is more expensive than Stella), I would like to know which of these two software would be more recommendable for this integration purpose.
I am trying to simulate pedestrian movement in a building with an elevator but when I use the Anylogic pedElevator block the pedestrians pile up in front of the elevator door. The agents have entered the elevator block and can be counted via elevatorQueueSize() but I cannot find how to limit the capacity of this integrated queue.
Can anyone help how to limit the number of waiting pedestrians in a pedElevator block?
I have built a model using system dynamics in AnyLogic and I am trying to create a difference function between the data generated by the model and the data imported as a database. I then want to sum all these differences by squaring them to get a single value to minimize and thus adjust the model parameters. I have been trying several ways to do it without success, and I would be very grateful if you could help me, I'm all ears.
Thank you very much.
We built a simulation model can describe the spread process of COVID-19 in the metro system with six stations.
However, the running speed of this simulation is plodding. We think this is because we used the "schedule" function to realize the time-varying arrival process of passengers. So, if you know how to make this simulation faster, I'm all ears.
please text or email me: wuaoping4real@163.com.
The link of model is below:
I'm doing a research about simulation modeling and I've been using anylogic for a couple of weeks now to collect information for my project.
I know anylogic is a very flexible software with a java base but I want to know if there are any issues you ran into while using anylogic or if there are any fields/industries that doesn't work with anylogic very well.
Please feel free to write down any issues you noticed while you were using anylogic and any opinions you have about the software.
Thank you for your time.
ji, so I've been working on Anylogic and it was really good unless 3 days ago something happened and I don't know why. so I created one model and it was working good after I placed parameters in Main agent something goes wrong. I saved it and then I try to open this model but it says 'unable to open the model' and ' invalid project file format'. can you help me with that? it is little bit stressful and urgent :(
Hello,
I want to model a system in AnyLogic comprised of 10 machines. Jobs (my agents) are created and can do any sequence of machines, i.e., random routes. For instance, jobs can do:
machine1 -> machine7 -> machine2 -> exit
machine9 -> machine2 -> exit
...
So, once they exit a machine, jobs can go to any other machine.
I have modeled my machines as services, so I have 10 services. My doubt is how can I implement these random routes/sequences of services? I.e., once a job finishes a service, how can it randomly select the next one? I am aware that one option is to use multiple SelectOutput at the end of each service, but is there another way to model this?
Thanks.
Hi,
How can I simulate a traffic dataset(gather information of each car for one month or more) for location prediction of the vehicles? In other words, can I have a dataset that I use its features as inputs to my time series neural network model?
Is there any way to doing that?
The main reason that I cannot use a real dataset is that I want each car to send a packet to the nearest RSU that consists of vehicle speed, vehicles direction, and Car_ID and time-stamp.
I want to even differentiate rush hours and non-rush hours, driver preferences, weather type, etc.
Based on the above factors, the driver changes its route. So I don't want to have a static route for each id_Car. Instead, I want to have different routes for each car, based on traffic speed in each lane.
Any help would be appreciated.
Thanks
Trying to simulate crowd movement in Anylogic and export the movement data to a game engine, Unreal or unity. Is that possible? and is there any alternative to Anylogic that can do that?
the link does not need to be in real time.
I am studying walking behavior by agent based modeling. Do you see proper Anylogic software on it? Or another software?
Also, do you know any sample in which analyzed walking behavior by Anylogic?
I have just downloaded the latest version of the agent-based modeling and simulation platform Repast Simphony (v2.8) and wanted to go through a related System Dynamics tutorial (from 2013) but when I create a new project in Repast Simphony, the option of creating a System Dynamics model using a wizard does not seem to be there anymore.
I wanted to create a multi-paradigm ABM/SD model in Repast Simphony. Is this possible with Repast Simphony (perhaps embedding an external library for the SD components)? Can someone provide examples of such a multi-paradigm Repast Simphony models?
I know it is possible in AnyLogic, but I would like to use an open-source platform instead.
I modeled a vehicle routing problem with anylogic and now I need to optimize it using optquest. but I don't know if it gives us the optimal road of the vehicles or we should use something else to have it.
Please help me .
Hello, I am working on an agent based model using Anylogic 8.7. There is a point where I filter some agents sharing the same attributes to a collection, and then use Java looping method to grab some other attributes(e.g. impact) from the filtered agents.
for(population p: collection){
traceln(p.impact)
}
What I want to do is to grab each listed agent's impact from console, do some operations and I want to do this process on each one of them seperately. Is there a way to retrieve and release the printed data? If positive I would be grateful to know how to conduct it.
Thanks.
Hello everyone,
I am currently developing a small simulation model of an assembly worker pool in which I would like to consider randomly occurring absenteeism due to illness. Meaning: if one of lets say 17 workers is ill, he becomes unavailable and the Pool capacity is dynamically set to 16. After recovery, the worker becomes available again and the Pool capacity is increased by 1.
The model shall be based on historical data, which are available in the following structure (see excerpt @attachement).
The Pool Capacity is set every 8 hours with each shift change with the following logic (triggered by schedule):
- Create a list of all worker, that belong to the next shift group
- For each worker which is available (workers have parameter called “available”):
o determine randomly, if worker gets ill (using randomFalse(average chance to become ill, e.g. 2,5%, see above)
o If worker becomes ill, assign a value from custom distribution (bases on observations for the number of absent days per illness) for the number of unavailable days and create a dynamic event which will set the availability of this worker back to true after this number of days
The Pool capacity is set to the value that equals the number of the remaining available workers in the list
The model looks like this (see model overview @attachement).
On the first glance, the model works as intended. However, after 50 replications I aggregated the simulation data and compared the simulation result with my real data (table @attachement). I found out, that the model indicates, that ~41% of the shifts are staffed with 17 workers (= highest rel. frequency) while the real data show that 44% of the shifts are staffed with 16 workers (= highest rel. frequency of real data).
Something in the model concept does not seem to fit, otherwise the relative frequencies would somehow match in a better way, right?
Does anybody can tell me, if my current approach makes sense or am I overlooking something crucial? Is there a better approach to model this kind of problem?

Hi All,
Please see file attached.
I want to select an option from radio button and the agents will only be output from that place.
Please see the picture attached.
Best Regards,
Jahanzeb Ahsan
As far as I know, the same plan might create different events when executed multiple times in MATSIM. But, I am looking for a way that whenever I run a particular scenario for my agents, the output will be the same. By output I mean, for example, the time when the agents arrive at their work or the time when they depart the traffic lights. I am wondering if it is possible to do so by means of seeds in MATSIM?
I need a simulator for generating data traffic (the time, location, speed of the agents on a map) with the following requirement:
1-It should be agent-based.
2- I want to generate random networks with different traffic lights and roundabouts.
3- I should be able to import open road/street maps and then adding some traffic lights, and any other objects to the maps.
4- Graphic is not important to me and my aim is just to generate traffic datasets.
I want to make all the mentioned requirements as automatically as possible to generate thousands of different scenarios.
I'm running AnyLogic University 7.3.6.201610041935 x64 on a Windows Server 2008.
Two days ago on building the model I started seeing the following errors pop up.
1) 'Description: Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted.'
2) 'Description: '<>' operator is not allowed for source level below 1.7.'
The system runs java version "1.8.0_191". I'm not entirely sure how to debug this and I'd appreciate any help I could get.
I am currently working on a Urban Traffic Simulation on Anylogic and sometimes when the simulation is running, this error appears and everything stop:
"Exception during discrete event execution:
java.lang.RuntimeException: root.<population>[139]:
INTERNAL ERROR: Trying to send car to the logical not where the car is currently located."
The number "139" on the error is not a fix value, it varies depending the time of the simulation progress.
Does anyone know what this error means and how to solve it?
Thank you for all the support, this would be very helpful for the continuation of my work.

I want to develop multi agent based control system for fire disaster management.
i am currently working on VANETs and want to use anylogic in the simulation of the networks
I am new with Anylogic.
I try to do as the instruction in Anylogic Help as below:
1. Download the required driver (zip archive) from: http://dev.mysql.com/downloads/connector/j/5.1.html
2. Copy all driver files to the model's folder.
3. Open the model in AnyLogic, select it in the Projects view and import driver JAR file on Dependencies tab.
4. Go to the advanced properties of Main and type the following line in Import section: import com.mysql.jdbc.Driver;
5. Select database and type com.mysql.jdbc.Driver in JDBC driver property.
6. Connection URL should look like the following: jdbc:mysql://host:port
host - is the ip address of the database, e.g. 18.40.10.8
port - the default value is 3306
7. Specify login and password for the database.
but from step 5, I can not type com.mysql.jdbc.Driver in JDBC driver property like the instruction. (I use version Anylogic personal learning edition )
Please help me, many thanks in advance !
Hi everyone,
Today there are excellent tools available to model the dynamics of vehicles, such as CarSim. However, I believe that the use of Anylogic can offer more possibilities to the models because it would allow to better manage the events and also integrate them as agents in more complex simulations. So I would like to know if there is someone who tried to make this type of models.
I need to know somethings about the sensitivity analysis, charts and analytical tools, formulation and other capabilities of them?
Regards,
Nima
I have seen the instructional video on how to create a custom flow chart block, (https://www.youtube.com/watch?v=UBwJtqUdhgM&list=PLUJJN9tmVTj1czFMt9IKi6wge9GnmMTN3&index=8) and it is similar to what I want to do. I need to repeat this same flow for 3 different types of agents. In the video, he creates a parameter called seizedResource that he references in the Seize block. He can then select which resource pool to use for that custom flow chart block in the main environment. I would like to do the same thing, but instead of selecting a resource pool for my custom block I would like to select an agent type. How would I do this?
In my seize block, I have (alternative) resource sets selected and one resource pool in each list. Is there a way to set the delay time to be different depending on which resource pool the agent seizes a unit from?
Hi
In my simulation i try to simulate the maintenance of a production line. The CNCs(agents) on the production line are created with a resourcePool and the workers(agents) which have to maintain the CNCs are also created with a resource pool. If a failure occurs at a CNC machine, one worker should move to this machine to repair it.
When a failure occurs at the CNC, a Task start block (resourceTastStart)ist activated. The "resourceTaskStart" block is connected to the "resourceSendTo". This block should move the workers to the broken CNCs.
But as soon as the CNCs report a failure, the following Error occurs. "Agent is not registered with the network and cannot send resource units"
Does anyone now how this error can be solved?
With kind regards
A.Bichler
As part of an academic project, we are led to do a Benchmark of Digital twin tools for an automobile case. We have recently collected a list of existing softwares(Flexsim, Simio, Anylogic, Simul8, Arena....). Our next step would be to determinate which one is the best in our case. Would you please refer me where to find advantages & limitations of some of those solutions ?
I am building a simulation model in AnyLogic 8.0 which consists of more than 255 parameters. But, an error appears because the number of parameters exceeds the limit of java (which is 255 parameters). Then, I try to handle this issue by creating a "java array" on the parameters. Unfortunately, I have another issue when running "Parameter Variation" with an array parameter. It gives a null or even string value on the parameter.
Is there a way to deal with a high number of parameters or with an array in the "Parameter Variation" in AnyLogic?
We observe CD123 positivity with certain frequency in granulocytes of patients with MDS or even in monocytes, although less frequently. We are not talking about blastic cells (CD34 or CD117 positives). These monocytes expressing CD123 are not dendritic cells.
I'm trying to built a conveyor similar to the example 'Cross Belt Conveyor' in Anylogic. My conveyor and the fixed cells, or trays in my case, have some different dimensions. When I am running the model the conveyor won't accept the trays, thay don't get past the queu block. What am I doing wrong? The model I built is in added as an attachment.
I am planning to use ant colony optimization (ACO) to optimize the layout design of a building. I want to use Anylogic to derive the performance of a certain layout design in each iteration of the ACO algorithm and finally obtain the best solution.
Is it necessary to use the APIs of anylogic to realize this idea ? If the answer is Yes, then , it is possible to change layout design in Anylogic in each iteration of ACO automatically through API?
I am working now on a project to simulate erection activities at the site, I have downloaded many tutorials for Anylogic 7 but all of them are not related to the construction field.
I am searching for any available tutorials for Anylogic 7 to simulate construction activities at the site and i would be grateful if any one can help.
Hi everyone, I have to simulate a container terminal on Anylogic, and the agent that enter in the terminal is truck. Trucks can enter empty, loaded with one container or loaded with two container, so the maximum capacity of the trucks is two containers.
How can I tell the program that they can enter empty, loaded with one or two container randomly? thank in advance
#Anylogic #logistics #TerminalContainer #simulation
Hi everyone,
I have to simulate a container terminal and I don't know how to represent the stacked containers without using the block PalletRack in Anylogic. Precisely, every single area of the container terminal can contain:
- width: max 18 containers
- depth: max 6 containers
- height: max 4 container
Is there anyone that could help me to represent this situation?
thank you in advance (and sorry for my english)
Hi there,
1- I want to know more about the Agent-Based Modeling. The majority of courses do not enter to the modeling process practically. Not only I want to study and learn about the methodological roots but also i want to learn the practical application and how to use its software. What are the must-read documents and the must-see courses' videos for it?
2- What is the basic difference between Multi-agent systems method and Agent-based Modeling.
Best.
How do I set the batch size i.t.o the weight I want to batch? I am currently simulating a potato plant. And the potatoes(agent) all have their own weight due to the randomness of potatoes, but now I must batch them into 10Kg bags. The weight should just be over 10kg but not smaller, so it is going to be 9.9kg plus one more potato.
The F1 help function suggests to use a customized Queue. But I do not know how to go forward with that option.
Any help would be appreciated
I want to create a model of the supply demand gap of professionals in a specific industry, and in this I am looking for a rate equation for the flow of job seekers to become employed.
The similar studies I have seen use the vacancy closure rate for the hiring rate and calculate that based on the number of vacancies and average time to fill the vacancy in that industry,
I would like my rate equation to be dependent on the stock of the job seekers.
An example hybrid modelling is mixing SD with DES sub-models, where elements in the sub-models communicate and exchange date continuously as the hybrid model is run.
Let us say one has built the SD sub-model using Vensim, and the DES sub-model is built using AnyLogic, what are the ways of making both sub-models to communicate during run time
High Level Architecture approach in combination with Microsoft Excel using Visual Basic for Applications is possible, but this seems to be for periodic and non-frequent communication of the sub-models. So, this approach may be convoluted if used to model a situation where the sub-models need to communicate continuously or in minuscule time steps.
Does anyone have a simplistic approach for modelling the data exchange between sub-models built using different packages?
I implement a discrete event simulation model namely "EOQ" in AnyLogic from https://www.runthemodel.com/models/2662/
I am going to optimize the parameters by minimizing total inventory cost. Therefore, I have to construct a function (one of the agent component in AnyLogic) in order to be able to root the total cost.
Currently, I have constructed a function and root the total cost (i.e. root.inventorycost()), but the total cost results in the same value whenever the parameters change.
is it possible to root the total cost when the model only has events, parameters, and variables? how to do it?
Thank you
There are many software for system modeling such as MATLAB/Simulink, AMESim, Dymola, Easy-5 etc. They are comparable in terms of functionality. Some are decent for combinations of different type of modelings; for example AnyLogic allows you to combine SD with ABM.
Is there any in which combining SD with DES is possible?
I'm currently a Mechanical Engineering student that is looking into a project on Intelligent Manufacturing.
I have been using AnyLogic to explore manufacturing simulation. I have created a basic Jobshop that involves that transportation of material pallets from delivery to storage to processing. My next step is to transition this static scheduling system to a dynamic scheduling system.
I would like to know if there is any way to actively manipulate the simulation whilst it is running? For example, controlling the availability of processing machines in real time or triggering a delivery. So far I have been unable to find any way of manipulating the simulation after it has been run.
Does anybody have experience with real time data input into simulation software?
The following function keeps returning the error message "This method must return a result of type int" and I cannot figure out why.
int
loaderResource( Plate agent ) {
if(agent.plateScale==SCALE25nm )
{if(loaders.get(0).isIdle)
return 0;
else
if(loaders.get(1).isIdle)
return 1;
else
if(loaders.get(2).isIdle)
return 2;
else
if(loaders.get(4).isIdle)
return 4;
else
if(loaders.get(5).isIdle)
return 5;
;}
else
if(agent.plateScale==SCALE200pm)
{if(loaders.get(3).isIdle)
return 3;
else
if(loaders.get(5).isIdle)
return 5;
;}
else
if(agent.plateScale==SCALE500pm)
{if(loaders.get(3).isIdle)
return 3;
else
if(loaders.get(5).isIdle)
return 5;}
else
if(agent.plateScale==SCALE100nm)
{if(loaders.get(4).isIdle)
return 4;}
;
}
At the step I am trying to model in my process, I have 3 pieces of equipment that can be used. Each can process up to 6 of my agents at a time, but do not need 6 to run. How can I say to process an agent if there are no other agents waiting, but process up to 6 agents in one resource unit if there are 6 agents waiting?
Hello everyone,
I need help with the scheduling in Anylogic.
I will describe the process
1. A patient comes in a clinic [newly created agent]
2. After his visit, he/she is given a future date for a following appointment (appointment 1)
3. He/she goes home [I created a zone – rectangular node – for this]
4. Day of the Appointment 1 arrives, he/she needs to go to the clinic [from home]
5. Point 2, 3, 4 repeat
My difficulty is that for the date and time for appointment 1 needs to be done dynamically (not predetermined). This means that the decision of the future appointment needs to happen at the end of the clinic visit, and it may be different for different patients.
How can I create such a schedule, attach it to each individual patient, and make sure that the patients come back at the clinic on the date of their appointment?
Much appreciated any help received.
Regards,
Alex
I am planning to build an agent-based ad-hoc network simulation to simulate animal tracking in the Savannah. For this I want to use AnyLogic's GIS functionality.
- Are there any limitations to the GIS functionality in the free PLE version?
- Are there any tutorial available on the GIS topic?
Which simulation software would you suggest to model container stacking depot? I want to model stacking, reshuffling containers in container depot by reach stacker. I am trying to model using Simio but I am not sure if there is any other efficient software you can suggest since to model stacking and reshuffling in Simio seems more complex. Any suggestions like Anylogic or etc.? thanks,
Trying to use simulation modeling for regional financial flows by Anylogic.
I wanted to used Netlogo but I am afraid it wouldn't scale well. I need to be able to implement mathematical formula for decision making and learning and also play with distributions. What is your experience with agent based modeling of financial markets?
My research is related to innovation processes. Currently I'm studying the process by which startups develop while residing within the environment of a business incubator. I am developing a model that I would like to test using agent-based simulation, but my previous experience in simulation programming goes too far back to be useful. Anybody out there with updated skills on agent-based simulation programming - using AnyLogic or any other tool?