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
0 answers
motosim twincat 3 interface
For a simulation project with a yaskawa robot and twincat 3 software I wanted to use yaskawa's simulation software motosim but I can't figure out if there's a way for twincat 3 to interface with it. Does anyone know if it's possible from twincat 3…

venraj
- 11
- 1
1
vote
0 answers
How to simulate more train objects running simultaneously in Python?
Good evening,
I am trying to make my first simulation, modelling metro network. I discovered I was probably very naive. Can someone point me in the right direction?
I wanted to have 6 trains on 3 metro lines (in opposite directions) running silently…

random_user1234
- 45
- 1
- 5
1
vote
1 answer
Animation only works when moving the mouse
I am using Pygame and I have to adapt the following code thus the animation is also showing when the mouse is not moved (so there is no event). Can someone maybe help me please?
The "DDR.png" is attached below. I tried out several things, also by…

Kilian Kramer
- 89
- 5
1
vote
2 answers
Is it possible to make a static reference to an excel sheet in AnyLogic?
I want to call an Excel with a static java function within an AnyLogic Model as shown in the picture. The function "readExcelFile" has to be static, because I want to call it from another class within my AnyLogic Project.
However, when I call the…

DynamiX
- 63
- 4
1
vote
1 answer
How do you reverse the direction of a ball if continuously going in one direction?
var velocity = 100;
var positionX = 0;
var ball = document.getElementById('ball');
function moveBall() {
var Xmin = 0;
var Xmax = 300;
positionX = positionX + velocity;
ball.style.left = positionX + 'px';
}
setInterval(moveBall,…

lei-marie
- 33
- 3
1
vote
1 answer
How do I link a flight schedule from an excel sheet to my AnyLogic simulation agents?
I have an excel file with the flight timetable with the following columns: Airline, destination, departure time, flight number, check-in desk, gate number, departures, number of passengers.
I have created an agent containing this database in my…

Hana Omar
- 21
- 2
1
vote
2 answers
DJI Assistant 2 simulator will not run missions. DJI ERROR 5021 "TOTAL MISSION DISTANCE TOO LARGE"
So I have been writing an application to run custom missions, the missions run fine and everything works as intended, however when attempting to run on the simulator I receive this error.
The missions should not be considered too large as I…

AR1412
- 11
- 1
1
vote
1 answer
Simulating rate data (negative-binomial distribution)?
I am attempting to simulate data that approximates rate data - that is: count data that generally fit a negative binomial distribution but also an offset term for survey effort.
I think I can simulate counts well using the negative-binomial function…

Kodiakflds
- 603
- 1
- 4
- 15
1
vote
0 answers
Python : Difficulty finding direction from 1 point to another
I am trying to make a orbit simulator in Python and i have some basic mechanics like acceleration , velocity implemented.
I was trying to implement Newtonian gravitational formula GMm/r**2
But there to calculate the direction of the force im doing…

Extorc Productions
- 146
- 2
- 9
1
vote
1 answer
Is there any way to output "monitor" objects value in real time as text/values in Salabim?
I know we can use animatemonitor to have a synchronized real-time value of monitor objects value and display as a graph over the built-in display/gui, but I have a requirement to use those values/plot in another graph in a browser. So i need those…

Praveen stein
- 21
- 1
1
vote
4 answers
Generating 100 Random Share Prices
I want to construct a list of 100 randomly generated share prices by generate 100 random 4-letter-names for the companies and a corresponding random share price.
So far, I have written the following code which provides a random 4-letter company…

codemachino
- 103
- 9
1
vote
2 answers
Optimizing a simple Photon Detection Simulation
I am a medical physics student trying to simulate photon detection - I succeeded (below) but I want to make it better by speeding it up: it currently takes 50 seconds to run and I want it to run in some fraction of that time. I assume someone more…

Corwin of Amber
- 57
- 7
1
vote
0 answers
How to create a more complex animation in flutter like the movement of water droplet in a container?
I was wondering if it is possible to create more complex animations using Flutter SDK, for example, the movement of water droplets over a surface, or other natural objects' movement simulations! If it is possible, can you please guide me to the…

sm_sayedi
- 326
- 2
- 17
1
vote
1 answer
Replace outliers with NA
I have found this function and I would like to adapt it to replace outliers with NA instead of removing the observation.
I have tried to add <-NA in this line data <- data[!outliers(data[[col]]),] but I cannot make it work. Could you help me to…

JuanJMV
- 127
- 6
1
vote
1 answer
Merging recorded times by different timeMeasureEnd blocks into a single histogram
I have multiple timeMeasureEnd blocks as presented in the image below. I intend to build a single histogram with the information recorded by all blocks. Can it be done? Thank you in advance!

Francisco Marques
- 41
- 5