Questions tagged [anylogic]
AnyLogic is a flexible, multi-method modeling tool capable of producing a variety of simulations. From supply chain and logistics, to manufacturing and market analysis, to disease and social norm dispersion, AnyLogic allows businesses, researchers, and public policy makers to evaluate decisions before they're implemented in practice.
2,894
questions
41
votes
3
answers
33k
views
How can I fix this : Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif"
system:Mac OS
software:AnyLogic 8 Personal Learning Edition 8.7.6
language: Java
When I run my model, the console print this info:
Warning: the fonts "Times" and "Times" are not ...
7
votes
5
answers
6k
views
Visualization of a discrete-event simulation on a grid / warehouse layout
I need to simulate a warehouse with several autonomous vehicles moving on a given layout with simple priority rules. In my understanding, the problem can easily be tackled with discrete-event ...
7
votes
2
answers
1k
views
How to call an embedded jre from command line in order to run java applications
Is it possible to bundle a JRE within an exported stand alone Java app? We have a very specific requirement to run a standalone AnyLogic Java app on a machine that does not have the latest Java ...
5
votes
1
answer
930
views
How can I handle different materials in one flowchart in Anylogic?
For my flow chart I generate three different agents via different sources. Now I want to handle them differently in diverse blocks in the flow chart. For instance, I want to have a different delay ...
5
votes
3
answers
1k
views
AnyLogic simulation how to call R script
I need to call a R script from AnyLogic. I have an agent 'sensor' and it is going to send a random file from a specific location to a R script and then the R script will analyze that file and will let ...
5
votes
1
answer
2k
views
Anylogic System Dynamics : Stock capacity
Stock initial value is 1
Flow rate is 0.1
Stock1 initial value is 0.
When i run the simulation, i realized that the value of stock get lower than 0 (getting a negative value). How to stop the flow ...
5
votes
0
answers
293
views
Importing and mapping AutoCAD line segments to Anylogic Paths
I have an excel file containing AutoCAD line data that I wish to map to AnyLogic Path constructs. To do this I am trying to edit the XML file and adding in path objects with the requisite points. The ...
4
votes
1
answer
518
views
How to read probability distributions from a database and save them in collections
I'm migrating from Arena to AnyLogic and have a question about distributions. I need to use different distributions based on some agent parameters. I have seen the suggestion here but the number of ...
4
votes
1
answer
1k
views
How to hook into an auto-generated Java method?
Edit: What started as a low-priority question to make my work easier has become a really interesting exercise in Java witchcraft. Thanks for your input, everyone!
I'm working with auto-generated Java ...
4
votes
0
answers
167
views
Co-Simulation: AnyLogic and Unreal Engine
I understand that AnyLogic has a 3D Engine to visualize simulations, as described in the AnyLogic Documentation. Since the Unreal Engine is one of the most powerful 3D engine, I was wondering if it ...
3
votes
2
answers
2k
views
Link AnyLogic and Matlab
I was wondering if it would be possible that link AnyLogic to Matlab?
I need a way that call a function from Matlab to Anylogic.
3
votes
2
answers
3k
views
Reporting Utilization of Individual ResourcePool units
In Anylogic, How can I get statistics such as utilization of individual resource pool units?
As the resourcePool.utilization() function returns the mean utilization for all units in the resource pool....
3
votes
1
answer
534
views
OWL2 XML to AnyLogic ALP
I'm currently working on a project that requires certain OWL2 XML files that describe real-life scenarios to be 'translated' to the ALP (type of XML) format of AnyLogic models, so they can be opened ...
3
votes
1
answer
317
views
How do I make AnyLogic recognize the Lombok plugin?
Lombok is a great plugin that has an installer for Eclipse and IntelliJ. AnyLogic is Eclipse-based, so how do we get it to work there too?
3
votes
1
answer
2k
views
How to make Anylogic simulations run faster?
I have a model with agents: cars, passengers and petrol stations. The population size of the cars is 500 and there are 5 petrol stations. The passengers here are generated randomly and I have capped ...
3
votes
1
answer
631
views
Q Anylogic : queue.get(0) +time in queue
Instead of calculating the size of the queue, I would like to identify the different objects in each queue in order to multiply them with their average processing time and then obtain the time in ...
3
votes
1
answer
141
views
Adding battery management to anylogic model
I've a question, in my model I want to add battery information to the transporter fleet. Think about when the battery level is below 30% the AGV moves after finishing a task to the closest charging ...
3
votes
1
answer
69
views
Transporter move through wall
In my model I use a transporter which uses free navigation. If it is right, the transporters can not move through walls, the strange thing is that in my model at one point somehow the transporter is ...
3
votes
1
answer
478
views
"On exit" vs "On at exit" in Anylogic
Few blocks in the Anylogic Process Modeling Library like "Source" have actions like "On exit" and "On at exit". What is the difference between the two?
I was trying to ...
3
votes
1
answer
214
views
Move agent from existing queue to shorter queue in the pedestrian library
I am building a super market simulation in which a customer (agent) walks to different spots (target lines) and then goes to the checkout (Ped Service) with the pedestrian library.
When agents are ...
3
votes
1
answer
144
views
What does _xjal stands for in anylogic generated code?
I have inherited an anylogic model at work. It's my first contact with anylogic. There is hardly documentation, so I try to dissect the generated code to understand, what is going on.
There is one ...
3
votes
1
answer
142
views
Did anyone work with set_center method in AnyLogic?
I'm using AnyLogic for a project in Supply Chain. I would love to ask those who have seen the predefined model in AnyLogic.
Its path is in: Welcome > Example Models > Supply Chains and Logistics ...
3
votes
1
answer
862
views
Parameter Variation: Fixed, but different seeds for runs
so I run a parameter variation experiment with many probabilistic parameters. I use random seeds, which results in a variety of different outcomes, and this is basically what I want. One experiment in ...
3
votes
2
answers
4k
views
Anylogic Road Traffic Library Lane Change error
I am trying to model a highway system of roads but I am getting this error:
root.<population>[3]: Car failed to change lane (that was necessary to
continue movement) or route to the ...
3
votes
2
answers
447
views
AnyLogic model run profile
Is there any way to get time consumption profile of an AnyLogic model?
I saw this question from Dylan where he did some kind of method profiling : does it comes from an AnyLogic intern tool or from ...
3
votes
1
answer
215
views
How to open an agent' view area on startup?
how can I open an agent specific view area when enter in some agent during model execution? Alternatively setup a specific zoom level that will contains all the blocks?
3
votes
1
answer
279
views
Getting Anylogic Model Path in Disk Programmatically
How can you get a Path - String - File reference to where the Anylogic model is located in the disk from one of the Java code input windows?
I fear it might not be possible because the execution ...
3
votes
1
answer
100
views
Adding the static option to a variable
Does anyone knows how can I add the "static" option when clicking on the advanced option of a variable? I have tried multiple things.
Thanks
3
votes
1
answer
103
views
Protocolbuffer package isString empty error in AnyLogic
I am trying to use custom routing in anylogic. For routing optimization, I am using Google OR-Tools and I have imported all the necessary packages and dependencies in the model properties section.
I ...
3
votes
2
answers
372
views
Anylogic: How to get the distance of the route pedestrian choose
I am using the PedGoTo block in Anylogic pedestrian library to direct pedestrians to the nearest exit (TargetLine). But since there are walls between pedestrians and exits, I can't just calculate ...
3
votes
1
answer
169
views
Is there a way to construct a single function to get the coordinates in main of a sub-agent that is present in multiple upper-level agents?
Is there a straightforward way to to get the coordinate points of an agent in relation to main when that agent is the lower agent of multiple other agents?
For example:
I have a Box agent.
There are ...
3
votes
1
answer
463
views
Work shift scheduling with break times for specific agents
I am building a simulation model for a production line. There are two shifts (morning and night shift, 12 hours each) daily. Within each shift, the workers are split into 4 groups and each group goes ...
3
votes
1
answer
162
views
Load database tables from MySQL
I am working on a simulation of a blood supply chain and created and imported some tables to manage the masterdata of various agent populations like blood processing centres, testing centres, ...
3
votes
1
answer
2k
views
How to use "wait" in anylogic?
I have a stock agent which is created in the end of my production line. My products are characterized by their model. I'm trying to create a logic to take out the products from this stock agent when ...
3
votes
1
answer
3k
views
AnyLogic - transition triggered by a condition
i'm new to AnyLogic...but it is driving me crazy!!!
It is super basic...in an AB model I want a percentage of agents to go from one state to another...but it happens something that I cannot ...
3
votes
1
answer
639
views
AnyLogic assembler as a gateway
Good morning,
I'm new on AnyLogic platform and I have started to study it because I want to use it to map the business processes of the company. I've plan to use the Process Model Library of the tool ...
3
votes
2
answers
887
views
Dynamic Obstacles in AnyLogic
I am modelling a crowd simulation in AnyLogic where the people throng around a vehicle which moves in time. Since the vehicle is an obstacle, pedestrians should not get within it.
As walls are ...
3
votes
1
answer
391
views
Hand response from one calling java program to another
I have a question concerning the communication of two Java programs, one embeds the other.
The embedded one is a CPLEX linear program (Java SE + CPLEX libs) which calculates resources and the other ...
3
votes
1
answer
56
views
AnyLogic Fluid Library Action On Above / Below
When activating the Action on Above for a tank from the Fluid Library, I am unable to change the units to anything other than cubic meters, irrespective of the settings for Capacity and Initial amount....
3
votes
1
answer
148
views
How to get a variable passenger arrival rate out of a schedule?
I'm about to setup an airport Check-In Terminal with anylogic.
I already loaded a "test" excel file which contains the relevant data : Flight, C/I start time, C/I end time and number of C/I ...
3
votes
1
answer
105
views
Avoiding database queries in Anylogic
I would like to avoid costly repeated data base queries in Anylogic. I have seen the following thread in Stack Overflow What is the fastest way to look up continuous data on Anylogic (Java, SQL) where ...
3
votes
1
answer
302
views
Invalide value : Nan in Pie chart
How can I avoid getting the error "Invalid value:NaN"?
I have created a Pie Chart and the values are the result of a division. I only want the chart to create if the result is not a NaN, ...
3
votes
2
answers
280
views
How to include JAXB functions in AnyLogic 8.4.0?
I have an AnyLogic model that uses JAXB functions for parsing an XML file. The model used to work earlier but it doesn't now since apparently the newer versions of Java don't include JAXB. The ...
2
votes
2
answers
2k
views
Installing older version of AnyLogic or downgrading AnyLogic
The newest AnyLogic version is not supported by my current AnyLogic license. The license only supports up to 8.3.3. However, I do wish to install AnyLogic on another computer and activate it with my ...
2
votes
2
answers
2k
views
Anylogic: Declare parameter of type ArrayList
I'm building a class (sorry - Agent) that will work with a set of Tank objects (Fluid Library) - doing things like monitoring individual levels or total level of all tanks, reporting on levels and ...
2
votes
4
answers
1k
views
Anylogic - create Resources and add to ResourcePool
I'm having difficulty finding the documentation I need to work with Resources and resourcePools - there is no "resource API documentation" that I can find.
I would like to programatically ...
2
votes
3
answers
110
views
AnyLogic: False number format when exporting data to excel
I collect various data in time plots. If I copy the timeplot data and then paste it into Excel, the number format is often wrong. For example, I often get a date like Aug 94 instead of the actual ...
2
votes
2
answers
472
views
Pause then resuming simulation in Anylogic
I would like to give the user a button that allows them to skip ahead 1 hour in the simulation and then continue running the model if play is clicked. The code below allows the user to skip ahead an ...
2
votes
3
answers
444
views
Anylogic: Release specific resource
I've got another small issue with AnyLogic resources.
I want to be able to release a specific resource from a resource pool - not just any resource from the pool. The reason is that I occasionally ...
2
votes
2
answers
694
views
How do you add data bars to a chart via Java?
On startup, I'm trying to add a varying quantity of values to a barchart. I have an agent type Component. It has a few variables associated with it, one being hopperLevel. I create multiple Component ...