Simulation using Any logic
Harishh & Nagul Prasad
Introduction
What any logic does:
Simulate complex systems: AnyLogic can handle a wide range of systems, from
manufacturing lines to supply chains to social dynamics.
Multiple modelling methods: It supports three main approaches to simulation: agent-based,
discrete event, and system dynamics. This allows you to choose the right method for the
specific system you're modelling.
Cross-platform compatibility: AnyLogic works on Windows, macOS, and Linux, so you can
use it on whatever device you prefer.
Industry-specific tools: AnyLogic offers built-in features for various industries, such as
manufacturing, logistics, and healthcare, making it easier to get started with simulations in
your field.
Model:
Source: This represents the point where customers arrive. It could be the entrance to a bank
or a specific area where people queue up to use the ATM.
Queue: The queue is where customers wait in line for their turn at the ATM. It’s depicted as
three horizontal lines resembling a list.
ATM: The ATM itself is the central component. Transactions occur here, such as cash
withdrawals, balance inquiries, or deposits.
Sink: After completing their transactions, customers exit the ATM area. The “sink”
represents this endpoint.
SOURCE
Source: This property specifies where the agent enters the simulation. In this case, the source
is named "source".
Arrivals defined by: This property specifies how the arrival times of agents are determined.
In this case, arrivals are defined by an interarrival time, which is set to an exponential
distribution with a mean of 0.2 minutes.
Location of arrival: This property specifies where the agent enters the simulation model. In
this case, the location of arrival is not specified.
Add agents to: This property specifies the population to which the agents will be added. In
this case, agents will be added to the default population.
QUEUE:
Queuing: This section specifies how agents are queued. The screenshot shows that FIFO
(First-In-First-Out) is selected. This means that agents will enter and exit the queue in the
order they arrived.
Enable exit on timeout: This property is not selected, so it has no effect.
Enable pre-emption: This property is also not selected, so it has no effect on the agent.
ATM:
Name: You can assign a name to the delay block here. The current name is blank.
Type: This property specifies how the delay is applied. In this case, the type is set to
Specified time. This means that all agents will experience the same delay duration.
Delay time: This property specifies the amount of time that agents will be delayed. The
current value is set to an exponential distribution with a mean of 0.25 minutes. An
exponential distribution means that there's a higher probability of shorter delays than longer
ones.
Capacity: This property specifies the number of agents that can be in the delay block at the
same time. The current capacity is set to 1. This means that only one agent can be delayed at
a time. If another agent arrives while the delay block is occupied, it will have to wait in a
queue until the current agent finishes being delayed.
Maximum capacity: This property specifies the maximum number of agents that can be
queued up waiting to enter the delay block. This value is not set in the screenshot.
Agent location: This property specifies the location of the agent within the simulation model
while it is delayed. The location is not set in the screenshot.
Advanced: This section contains additional properties for configuring the delay block
behavior.
Forced pushing: This property is not selected in the screenshot. If it were selected, it would
force agents to enter the delay block even if it is at capacity.
Restore agent location on exit: This property is not selected in the screenshot. If it were
selected, it would restore the agent's location to its previous value after the delay is finished.
Force statistics collection: This property is not selected in the screenshot. If it were selected,
it would force AnyLogic to collect statistics on the delay block, even if it is not part of an
experiment.
Overall, the ATM - Delay window allows you to define how long agents are delayed in your
simulation model and how many agents can be delayed at a time. The current settings in the
screenshot indicate that agents will experience a random delay with an average of 0.25
minutes, only one agent can be delayed at a time, and there is no limit to the number of
agents that can be queued up waiting to be delayed.
SINK:
Through sink , blocks remove agents from the simulation. This particular sink named "sink"
ignores entering agents and doesn't record data. It's visible in the model by default.
FINAL OUTPUT
With minimum speed
With maximum speed
Conclusion:
simulations typically aim to:
Analyse system behaviour: Simulating a system allows you to observe its performance under
various conditions. This can help identify bottlenecks, inefficiencies, or areas for
improvement.
Test different scenarios: By modifying variables within the simulation, you can test how the
system would react to changes in real life. This helps with risk assessment and decisionmaking.
Validate a proposed design: Before implementing a new process or system in the real world,
you can test it virtually using AnyLogic to identify any potential issues.