Simulation is the imitation of some real thing, state of affairs, or process. The act of simulating something generally entails representing certain key characteristics or behaviours of a selected physical or abstract system.
Questions tagged [simulation]
5194 questions
1
vote
1 answer
Scroll one page to the right in Cypress
How could I scroll one page to the right in Cypress?
E.g. I have a horizontally scrollable area. The area contains elements a, b and if I scroll to the right a and b get destroyed, while c and d get added.
My attempt is to find out the width of the…

manymanymore
- 2,251
- 3
- 26
- 48
1
vote
1 answer
Dynamic Object Intersection between a Frustum and Point
I am currently trying to develop a radar for discrete event simulation purposes. Suppose I have 2 objects Sensor S and Target T which are simply just points on screen. S is equipped with a Frustum based on specific parameters provided such as…

Lohver
- 11
- 2
1
vote
1 answer
Collision betwen two same sprites but with diffrerent reactions
I have a small problem with my code. The goal is to simulate traffic (two lanes merging into one). I am close to finishing but i have the problem that when a car hits a car of the same Group the whole lane just jams up. I need to somehow be able to…

Jrmnp
- 25
- 5
1
vote
2 answers
Attribute change with variable number of time steps
I would like to simulate individual changes in growth and mortality for a variable number of days. My dataframe is formatted as follows...
import pandas as pd
data = {'unique_id': ['2', '4', '5', '13'],
'length': ['27.7',…

STG_fisheries
- 23
- 7
1
vote
0 answers
Calculate daily overtime and daily mean overtime of a resourcePool - anylogic
I'm trying to calculate the overtime of each resourcePool, what I reached is time-consuming and almost a manual calculation, looking for the correct way to do that, please.
What I'm doing is as follows, for example, I have the pharmacists' resource…

Majed Hadid
- 59
- 8
1
vote
1 answer
What is causing this 2D fluid simulation to hang?
I attempted to build a fluid simulator based off the architecture of Jos Stam's book, The Art of Fluid Animation, only I'm using node.js and canvas-sketch. I think I can finagle it to work, it's just that when I run it as shown below, it hangs. No…

Dylan J Lindsay
- 31
- 6
1
vote
1 answer
Acuity level - nurse - anylogic
Please any idea how to model the following in any logic using block and a simple code:
we have resourcepool of 14 nurses
one nurse can supervise up to 4 patients (supervise means she only watch them and can not watch more than 4 at the same time,…

Majed Hadid
- 59
- 8
1
vote
3 answers
Laser bouncing inside arbitrary shape
I've been mulling this problem over in my head for a while. Given an arbitrary closed 2d polygon, which is well defined, consisting of lines and curves (perhaps Bezier curves for consistency). Given a starting point and direction within the polygon.…

Em Eldar
- 686
- 1
- 8
- 25
1
vote
1 answer
Using R to simulate multiple days
Using this function which simulates the number of guests arriving at a resturant over an 8 hour period where lambda = 10 customers per hour, guests = maximum number of guests (=12) that can be served and hours = restaurant open 8 hours a day. How…

DaveJohnson123
- 11
- 4
1
vote
1 answer
Workers stuck in the seize operator
In my model the seize operator seizes a workers agent which move a pallete from source to sink, this part is working fine.
But in the release operator I have configured the worker to go to their home node only if there is no more pallete, and the…

Ankit Sahay
- 1,710
- 8
- 14
1
vote
0 answers
Return workers to their home node only when there is no work
I have a simulation model with following flow:
source -> seize -> delay -> release -> sink
In the release block, I want to configure the worker to go back to their home/base location only when there is no more agents from the source block.
I have…

Ankit Sahay
- 1,710
- 8
- 14
1
vote
1 answer
How to compute Kramers-Moyal coefficients when the time step is not to small in Python?
I am coding a simple one-dimensional Ornstein-Uhlenbeck simulation in python to explain some experimental data from a video source, i.e., tracking a brownian particle in a sequence of frames. The sampling frequency of the camera is fps=30 frames per…

alpelito7
- 435
- 2
- 10
1
vote
0 answers
MonteCarlo Simulation for Diffusion in AES
I need to implement a MonteCarlo simulation to an AES to observe the effect of diffusion (if I change a single bit of the plaintext, then half of the bits in the ciphertext should change)... I think I did everything correct here but it says syntax…

Logan
- 23
- 2
1
vote
2 answers
Combine two resources and then send to a node in Anylogic
I am simulating a warehouse inspection model where an inspection-officer (present as node1) needs to go to a different node (node2) to collect tools and then go to node where object to be inspected is laid out.
I am using a resource pool for both…

Ankit Sahay
- 1,710
- 8
- 14
1
vote
1 answer
WebGL how two objects in the same shader can interact correctly
I have two objects in a single shader: a cloth (made of vertices and triangles) and a sphere. When the cloth falls down and meets the sphere, there must be a collision such that the two objects are not in the same position or overlap each other. I…

Ele975
- 352
- 3
- 13