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

simmer: reading resources from inside trajectory functions

I want to be able to modify the resource capacity inside trajectory as a function of queue length. The following (simplified) code below does not work. - When I try to call get_mon_resources(simStore) inside the function, the code crashes with the…
IVIM
  • 2,167
  • 1
  • 15
  • 41
0
votes
1 answer

anylogic error: Not unqiue database value

In an Anylogic discrete event model, I am trying to set an arrival rate and how many agents per arrival based on a database table I created. The table includes a column for the date and time a material came in, and then a unique code and order…
0
votes
1 answer

Why do we need stochasticity in deterministic simulations?

Assuming the world were deterministic, why would we still need to introduce stochasticity into our simulations?
koksalb
  • 430
  • 8
  • 14
0
votes
1 answer

How to use stopDelay(agent) on AnyLogic

I am generating multiple agents at the source. I would like to let them wait until some event. I am trying to access the "delay.stopDelay(agent)" however it requires an agent as a parameter. How should I proceed?
0
votes
1 answer

Request entity from Anyogic Process Block and wait until it's available if there is not currently one

I'm trying to emulate what QUEST does when a buffer is queried for a certain Part. In there if the part is not in the buffer the request is left pending and if a Part arrives to the buffer it's released to the machine requesting it. I have also seen…
jacandau
  • 197
  • 1
  • 12
0
votes
2 answers

Java Discrete Event Simulation, how to signal a class of a different object

I have a class named Neuron, and when the Neuron object fires, it signals all of the objects of class Synapse to fire. I'm unsure how to send a signal to the Synapse from class Neuron, can anyone explain?
Bob Long
  • 51
  • 1
  • 8
-1
votes
1 answer

R simmer resource not dropping arrival when capacity --> 0

In my simulation, certain resources are on a capacity schedule, which alternates between 0 and 1 based on the time of day. If a resource cannot complete its task by the time its capacity goes to zero, the arrival should be dropped, wait a short…
Aorus
  • 128
  • 6
-1
votes
1 answer

Anylogic: avoid unwanted execution of process in seize block

I am trying to simulate manufacturing process by using statechart. And i have created agents for particular machines by statecharts and connecting those agents according to manufacturing process with help of resource pool, seize block and release…
-1
votes
1 answer

Can you do you a closed loop system using SimPy on Python?

I am trying to model a garage which has cars available to drive. Then as times goes by cars need some repairs and they become unavailable. Once the car is repaired it goes back to the garage. I was wondering if you can model such a system where you…
-1
votes
1 answer

How omnet initialize modules and model?

I read manual and inside the manual there is described using pseudo code that first simulation step, when simulation start is "network initialization" from system module to the sub-modules. In simulation example that I have there is "simulation.ned"…
explorer
  • 93
  • 1
  • 7
-1
votes
1 answer

Searching for an Event Simulation Software with SOAP API

I’m trying to build a showcase for a business activity monitoring (BAM) tool. In my showcase the BAM tool is fed via a soap api with events. Now I’m looking for an event simulation tool like arena which is able to trigger my soap api every time an…
-2
votes
0 answers

Wrong output in python simulation (SimPy library)

I'm using SimPy library for relatively simple hospital simulation. There are receptionists, nurses, acu and ed doctors. For each of them I assign the timeout. The point is to collect timeouts for each entity that visits patient. Then for each…
WizzVard
  • 1
  • 1
-2
votes
1 answer

How can i simulate a lognormal distribution without knowing mean and standard deviation?

Consider the Lucas endowment economy with inflation, we know that consumption growth and inflation are log-normally distributed,and that consumption growth and inflation are uncorrelated through time and with each other. How can I compute Compute…
Expo0
  • 1
-2
votes
1 answer

Is there a way to simulate a user search on the Youtube API?

I am trying to collect some data for a pet study. I would be collecting some metadata on the video suggestions based on a search. I was wondering if it is possible to do the following using the Youtube API(python or R) : Input a search keyword and…
-2
votes
1 answer

verilog flop RTL simulation

Assume we have a D-flip-flop. in RTL simulation (No t_hold and t_setup here), If its data input and clk changes at the same time, what the output should be ? The value before clk rise or the value after it ? To make it even harder, If a data_in and…
1 2 3 4 5
6