Questions tagged [event-simulation]

Simulation of a action or occurrence detected by the program that may be handled by the program. Typically events are handled synchronously with the program flow, that is, the program has one or more dedicated places where events are handled, frequently an event loop.

Simulation of a action or occurrence detected by the program that may be handled by the program. Typically events are handled synchronously with the program flow, that is, the program has one or more dedicated places where events are handled, frequently an event loop. Typical sources of events include the user (who presses a key on the keyboard, in other words, through a keystroke). Another source is a hardware device such as a timer. Any program can trigger its own custom set of events as well, e.g. to communicate the completion of a task. A computer program that changes its behavior in response to events is said to be event-driven, often with the goal of being interactive.

90 questions
0
votes
1 answer

Why Anylogic stopDelay() function throws error when Delay block is empty?

I have an event with action delay.stopDelay(delay.get(0)); it works fine but when the delay block gets empty error shows up enter image description here
Aqeel Tariq
  • 315
  • 1
  • 8
0
votes
0 answers

While loop keep iterating the jobs started at first iteration in Simpy?

I am working with simpy to schedule the jobs with container. I am facing a problem that only those jobs are kept iterating which started at the time of the first iteration. i.e the first 3 jobs keep iterating . does not let the 4th job to come in…
wasiq khan
  • 11
  • 2
0
votes
1 answer

How to run example with simulation package in Java?

Need help to run examples in the JavaSim simulation package. https://github.com/nmcl/JavaSim The example Main.java is available at: examples/src/main/java/org/javasim/examples/basic Screenshot is attached of the error Note that I also performed in…
0
votes
1 answer

SimPy and PyQt Interaction

I've been looking to make PyQt and SimPy "talk" to one another. For instance, in the code below, I have a PyQt widget with a single label that displays the SimPy environment time. I'd like for this label to be updated as the simulation progresses…
Sav
  • 21
  • 4
0
votes
1 answer

R simmer: custom logic for selecting server

I am building a simmer simulation for the delivery of vaccines via drone. Pseudocode up to the simulation part is: Generate N "demand points" in a geography, representing locations needing vaccines. Make into a dataframe. Add arrival times as a…
Ralph Asher
  • 192
  • 9
0
votes
1 answer

Using the same service block for different tasks in anylogic

I am currently busy with a project at a hospital. I need to create a simulation model replicating the processes at the hospital. I have a problem with regards to one counter or service desk at the hospital. The staff member at the service desk needs…
Steven
  • 1
0
votes
1 answer

R Simmer - Reallocate resource between pots based on queue size

I have a working example of a simmer DES, for a simple outpatient department service. There are high priority and low priority patients, and each has a dedicated clinic. The high priority clinic has 5 slots per day, the low priority clinic has 1…
chrisR
  • 15
  • 2
0
votes
1 answer

Cannot trigger two events in SIMPY (simulation in python)

Recently I learned about SIMPY and I think it can be very helpful in providing my work with some information and provide a background to make decisions. Please note I am quite new to programming with python, I know the basics but I am learning as I…
J.Rommers
  • 69
  • 11
0
votes
0 answers

R simmer package question about get_mon_arrivals

I'm currently learning how to use the simmer package in R in order to simulate processes. I'm trying to gather information regarding a simulation I've built, using the get_mon_arrivals function. I've noticed something weird about running this…
0
votes
0 answers

Value error while simulating with simpy package in python

I want to simulate first 10 customers using simpy package. I am getting error I could not able to find what is actual error. Please, help me. Code is below: Source function is like below. SRTFunc is used to get service time. data…
Navya
  • 307
  • 3
  • 15
0
votes
1 answer

Can you inspect arrival attributes in R simmer event simulation?

I'm new to R and very new to discrete event simulation. r.simmer seems to be a very good package for doing this, so trying to model strategies for hospital bed admissions using it, it seems natural to me that the trajectory branch option be able to…
0
votes
0 answers

Anylogic, activate or deactivate a Delay block based on a time condition

Is it possible to activate or deactivate a Delay block based on a time condition? I wish an entity in the queue could enter into a delay block only if the current simulation time is greater/equal to a certain instant (for example when it is…
Alessio
  • 111
  • 1
  • 1
  • 5
0
votes
1 answer

Anylogic, how to change the size of production batches dynamically?

I have a production line where some resources create batches of pieces. The number of pieces created by the "source" block and the number of batches are parameters. For example, if you set 48 pieces created and 4 batches, each batch closes when…
Alessio
  • 111
  • 1
  • 1
  • 5
0
votes
1 answer

Anylogic, mutate the capacity of the resource dynamically

I have a model with a queue and two machines, one of which is used just in case of overcrowding of the queue in front of these resources. My model has a simple Queue and a Delay block and I tried to mutate the Delay capacity based on a previous…
Alessio
  • 111
  • 1
  • 1
  • 5
0
votes
1 answer

Anylogic, split an agent in multiple different agent types

I've a problem with a simulation in anylogic. I have an item (agent) that must be processed by a resource, the result of this service block is the starting object and two different documents which are processed in two separate offices and which at…
Alessio
  • 111
  • 1
  • 1
  • 5