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
11
votes
16 answers
Advice on starting a large multi-threaded programming project
My company currently runs a third-party simulation program (natural catastrophe risk modeling) that sucks up gigabytes of data off a disk and then crunches for several days to produce results. I will soon be asked to rewrite this as a multi-threaded…

Sisiutl
- 4,915
- 8
- 41
- 54
11
votes
5 answers
Probability Simulation Error not Converging
In an interview, I was given the following problem to solve initially using pen/paper, then via a program to verify the result.
The question is as follows:
There are three people A,B and C. Each person is capable of hitting a target with a…

Switzy
- 217
- 1
- 9
11
votes
1 answer
How to Build a Sensor Simulator for Android?
I am building a application for the Android platform and I would like to use the accelerometer. Now, I have found a very nice application for sensor simulation (OpenIntents' SensorSimulator) but, for what I want to do, a would like to create my own…

Hugo
- 6,244
- 8
- 37
- 43
11
votes
4 answers
Should I use Threads or Tasks - Multiple Client Simulation
I am writing a client simulation program in which all simulated client runs some predefined routine against server - which is a web server running in azure with four instances.
All simulated client run the same routine after getting connected to…

Tejas Vora
- 538
- 9
- 19
10
votes
6 answers
Python alternative to Java applet?
Is there an alternative to making educational Java applets for physics simulations like projectile motion, gravity, etc?

hershey92
- 783
- 2
- 6
- 17
10
votes
7 answers
Is a functional language a good choice for a Flight Simulator? How about Lisp?
I have been doing object-oriented programming for a few years now, and I have not done much functional programming. I have an interest in flight simulators, and am curious about the functional programming aspect of Lisp. Flight simulators or any…

Frank Henard
- 3,638
- 3
- 28
- 41
10
votes
1 answer
IE9 Compatibility Mode: What version is it simulating?
I'm using the latest IE9, and test my websites in compatibility mode. But what version of IE is this actually simulating/replicating? It's not clear. Is it 6, 7 or even 8?

Tom Gullen
- 61,249
- 84
- 283
- 456
10
votes
4 answers
Wave Simulation with Python
I want to simulate a propagating wave with absorption and reflection on some bodies in three dimensional space. I want to do it with python. Should I use numpy? Are there some special libraries I should use?
How can I simulate the wave? Can I use…

kame
- 20,848
- 33
- 104
- 159
10
votes
1 answer
How is Monte Carlo Tree Search implemented in practice
I understand, to a certain degree, how the algorithm works. What I don't fully understand is how the algorithm is actually implemented in practice.
I'm interested in understanding what optimal approaches would be for a fairly complex game (maybe…

Michael Ramos
- 5,523
- 8
- 36
- 51
10
votes
2 answers
XCode 9.1 - Location simulation went missing
I just updated my XCode to 9.1 today, and surprisingly I can't find "Allow location simulation" in scheme setting, please refer to the screenshot below:
Has any one got the same problem? And any suggestion that I can fix it?
Apple's getting worse…

hoang Cap
- 704
- 6
- 18
10
votes
2 answers
numpy positive semi-definite warning
In a Python script I'm writing I am simulating multivariate normal random vectors with the expression
np.random.multivariate_normal(np.zeros(dim_obs), y_cov)
My script runs, but generates the following warning:
RuntimeWarning: covariance is not…

Taylor
- 1,797
- 4
- 26
- 51
10
votes
2 answers
Fluid simulation boundaries and advect
This fluid simulation is based off of a paper by Stam. On page 7, he describes the basic idea behind advection:
Start with two grids: one that contains the density values from the previous time step and one
that will contain the new values. For…

qwr
- 9,525
- 5
- 58
- 102
10
votes
3 answers
How to simulate a corrupt state exception in .NET 4?
Well, in .NET 4 Microsoft added the HandleProcessCorruptedStateExceptions attribute:
HandleProcessCorruptedStateExceptionsAttribute Class
I want to test this feature. How can I bring my application to a "corrupt state"?
user286353
10
votes
5 answers
Physics engine: use double or single precision?
I am making a rigid body physics engine from scratch (for educational purposes), and I'm wondering if I should choose single or double precision floats for it.
I will be using OpenGL to visualize it and the glm library to calculate stuff internally…

user3075741
- 121
- 1
- 6
10
votes
4 answers
How to emulate REPEAT() in SQLite
Most relational databases have some sort of REPEAT() string function, for instance:
SELECT REPEAT('abc', 3)
Would yield
abcabcabc
SQLite on the other hand has a very limited feature set. The functions supported by SQLite are listed…

Lukas Eder
- 211,314
- 129
- 689
- 1,509