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.

AnyLogic is a multi-method simulation modeling tool developed by The AnyLogic Company (former XJ Technologies). It supports agent-based, discrete event, and system dynamics simulation methodologies. AnyLogic is cross-platform simulation software that works on Windows, macOS and Linux.

AnyLogic is used to simulate:

  • markets and competition,
  • healthcare
  • manufacturing
  • supply chains and logistics
  • retail
  • business processes
  • social and ecosystem dynamics
  • defense
  • project and asset management
  • pedestrian dynamics
  • rail
  • IT
  • aerospace

Wikipedia

The AnyLogic platform is based on and uses Java as its main scripting language. It also allows custom model extensions using Java and any standard Java library can be imported and used within models. AnyLogic also includes a graphical modeling interface to allow drag and drop functionality for library objects.

The Professional version allows for the creation of Java runtime applications that can be distributed to users. AnyLogic models can be uploaded to the AnyLogic Cloud and run from any browser.

To compare the latest AnyLogic versions, check the download page here.

2667 questions
2
votes
1 answer

How can I read a parameter array from excel so that its values are available when stocks are initialized?

The problem: I need to read a row of values from an excel spreadsheet into a parameter array and use these values to set the initial values of stocks. The specifics: a. I can successfully set the scalar parameters default values from excel using…
2
votes
2 answers

How I can iterate through a population to get the nearest agent of mine and check agent's distance dynamically?

I am trying to do an epidemic spread modeling where all the agents are moving in a continuous space. All the agents have a certain "fieldOfVision" area. If within this "fieldOfVision" of a "susceptible" agent another agent who is "exposed" comes &…
Tariq
  • 57
  • 6
2
votes
1 answer

duplicating elements in an collection based on a field of the collection java

I have an arraylist (orderlist) of class ProductionOrder with five fields (String ID, int Quantity, int Frequency_max, int Frequency_average, int Frequency_min), which are filled by an excel file so each element of the collection is an excel row.…
TomC
  • 55
  • 3
2
votes
1 answer

How can a slider be linked to a parameter during runtime?

I currently try to solve the following problem: I create a slider and a parameter during runtime inside of an agent. Now I would like to link the slider to the parameter. However, I am not able to find API code to solve this in a straightforward…
JHK
  • 51
  • 5
2
votes
2 answers

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 initiating actions based on levels - things of that…
CrustyNoodle
  • 379
  • 1
  • 14
2
votes
1 answer

How can i create Path space markup element in Anylogic via Code

I'm totally noob in anyloigic, and now I'm trying to make simple network via code; (Network with two pointNode, and path which link those) Get some problem. When I run my model, the console show me "using initialize() method", but I already know…
Lee Riddle
  • 21
  • 2
2
votes
2 answers

Average number waiting and waiting time in a queue

I am trying to implement 2 metrics for queues (or Service blocks) in my model; average waiting time and average number waiting. For the average waiting time; I can time stamp every agent in the 'On Enter' action and then calculate the delta in the…
M Rawat
  • 27
  • 1
  • 7
2
votes
2 answers

Car failed to change the route error in anyLogic

I am Simulating the road traffic model in anyLogic. I am making a cross road network of four roads using one intersection and two car source. I have used select Output5 twice as seen in screenshot below. Here road on East side is named as RoadE,…
2
votes
2 answers

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 license. However, surprisingly I could not find…
mivandev
  • 321
  • 2
  • 14
2
votes
2 answers

Model start and end values for schedule as a variable

I'm trying to build a model in Anylogic that would optimize the start and end time of my resource pool to meet demand. Is there a way to have the start time and end time for the schedule to be parameters to input in the optimization model. I…
2
votes
1 answer

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 the passengers on the map to be at a maximum of…
W L
  • 21
  • 2
2
votes
1 answer

Alternative for AnyLogic deprecated method getJComponent()?

I recently updated to AnyLogic PLE 8.4.0 and Java SE 12 on my Windows 10 laptop. And now an AnyLogic model that used to work earlier stops with the error "The method getJComponent() is undefined for the type ShapeTextField." I looked it up in…
2
votes
2 answers

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 agents based on an Excel sheet that assigns…
2
votes
1 answer

How to stop arrival rate from source in anylogic?

My current fire evacuation simulation model begins when I push a button which triggers the fire alarm. I would like to stop pedestrians from arriving during the evacuation process. Below is my flow chart: For example I want to stop pedestrians from…
2
votes
1 answer

anylogic how to set port is visible on upper layer false

Can you explain the "is Visible on Upper Layer" property, please? It's on everything, yet I can't seem to find it programmatically. I have a custom block, and I have parameters for the block that provide functionality options. When the user selects…
brett
  • 33
  • 4