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

Initializing pallet racks with parameters in AnyLogic

Dear stack overflow community, I am trying to create a pallet rack in AnyLogic (version 7.1.2 university), in which the number of cells, the number of levels and some other properties are set from parameters. The parameters are set up prior to model…
Sandra
  • 21
  • 2
2
votes
1 answer

How to change material color of any 3d object in AnyLogic using code?

I am having difficulty changing the color of 3d object (Metal detector) using .setColor(materialname,color) method. I am unable to get specific material of object of which I want to change colour. I have tried .setColor(materialname,color)…
2
votes
1 answer

Anylogic moving average of processing times

in my model I have 9 different service blocks and each service can produce 9 different features. Each combination has a different delay time and standard deviation. For example feature 3 need 5 minutes in service block 8 with a deviation of 0.05,…
Marie
  • 35
  • 3
2
votes
3 answers

Dynamically adjusting arrival rate in source

the basic idea behind the modeling issue is a breakdown of a production machine. I would like to model this by setting the arrival rate (simply arrivals per second) to zero (Source.rate = 0). After the machine is repaired, the arrival rate is set…
2
votes
1 answer

AnyLogic: Detect key pressed or which mouse button clicked in "On Click" event of a shape

Is there any way to capture which keyboard key is pressed or which mouse button is clicked in "On Click" event of a shape? In an agent based sample, I need two different actions when user clicks on a specific shape in two different occasions. How…
2
votes
1 answer

Views 2d and 3d model in Anylogic

Help me with my model in Anylogic. For example, when launching the model, there should be a button for switching between 2d and 3d views. How to do it?
2
votes
2 answers

AnyLogic: Internal error while building model

I'm attempting to build a new model in AnyLogic and I'm getting the following error: I'm really grasping at straws to identify what is going wrong as there are no errors in the Problem window. The only thing I can think of is that a while ago I…
Dylan Knowles
  • 2,726
  • 1
  • 26
  • 52
2
votes
1 answer

Using a custom distribution to assign states for agents when create it in Anylogic

I am developing a model to evaluate different interventions of population control in animals. I am trying to use a custom distribution to assign the state in which agents should be when they are created or added later to the population. I have done…
Luzma
  • 21
  • 3
2
votes
1 answer

AnyLogic Error while trying to move agents in hierarchical model

Task description: Model containing two types of agents, one type of agents is living in other. Trying to move agents among agents of higher order, I used following code (finding the random connected agent, then trying to increase its population and…
2
votes
2 answers

How to add to agent to presentation

I am trying to simulate self-sustaining population of cows, but when i dinamicly add new agents to main agent's population newly created agent does not appear. How to fix it? I create agents from mother agent with this.main.add_cows(); first…
mcstarioni
  • 312
  • 1
  • 13
2
votes
2 answers

Q: [Anylogic] Measuring production throughput rate

I would like to know how to measure the throughput rate of the production line on Anylogic. Question: Are there any methods to measure the Time Between Departure of the agent at the sink block? >>(I will calculate the throughput rate by inverting…
Carlzeriss
  • 33
  • 4
2
votes
1 answer

Failure to Read Updated AnyLogic DB Values

I am currently using an AnyLogic database to store used parking capacity. I have written a function that reads the database and assigns an id to each container or trailer that is stored. Afterward, an UPDATE query is used to update the array. The…
M. Pugh
  • 35
  • 2
2
votes
2 answers

Navigate to agent / agent's default view in AnyLogic?

When you double click on an Agent in AnyLogic it navigates to that Agent's internals so you can see its states, variables, etc. Is there a way to do this programmatically with a function call without adding a ViewArea? My current solution is to add…
Dylan Knowles
  • 2,726
  • 1
  • 26
  • 52
2
votes
1 answer

Connecting to the built-in Anylogic DB

I've been using Anylogic's feature to collect data to a database provided by the program. However I have trouble extracting the data again. I've tried using the export to excel function, but the program is getting stuck (probably because of the…
2
votes
2 answers

AnyLogic, custom resource choice among resource sets

within an AnyLogic project, in the 'seize' block I need to make a custom choice of resources from resource sets. Having in the properties tab of the 'seize' block the field "Resource sets" with the value { {ResourcePool_A, ResourcePool_B} } and the…
Roberto B
  • 43
  • 7