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
4
votes
6 answers
Modeling and Simulation Programming Language
I work with many different models and simulations. Some of the older models and simulations are written in FORTRAN. Some of those models have been converted to C++, but the current trend is to create these models using MATLAB/SIMULINK. From a…

SchwartzE
- 2,558
- 5
- 30
- 39
4
votes
4 answers
How to simulate JavaScript in a client C# Applications
I'm writing a web crawler (web spider) that crawl all links in a website.
My application is a Win32 App, written in C# with .Net framework 3.5.
Now I'm using HttpWebRequest an HttpWebResponse to communicate with the web server.
I also built my own…
user112899
4
votes
1 answer
How to create a more efficient simulation loop for Monte Carlo in R
The purpose of this exercise is to create a population distribution of nutrient intake values. There were repeated measures in the earlier data, these have been removed so each row is a unique person in the data frame.
I have this code, which works…

Michelle
- 1,281
- 2
- 16
- 31
4
votes
3 answers
Generating random number by length of blocks of data in R data frame
I am trying to simulate n times the measuring order and see how measuring order effects my study subject. To do this I am trying to generate integer random numbers to a new column in a dataframe. I have a big dataframe and i would like to add a…

Markus Korhonen
- 43
- 4
4
votes
3 answers
Python logging: override log time
Following Python's documentation, I'm trying to override logging.Formatter.converter in order to control the time logged.As you can see below - the milliseconds were not overriden (they are the current time milliseconds).
How come? How can I control…

Jonathan Livni
- 101,334
- 104
- 266
- 359
4
votes
1 answer
How to get a trace file for hard disk access?
I have implemented a simulation which takes trace file as input which basically tracks each request for read, write access to hard disk and process it.
Can someone tell me how/where I can get this trace (track) file or if is there any kinda option…

Junaid
- 1,668
- 7
- 30
- 51
4
votes
1 answer
Simultaneous simulations in python
I have a large set of simple simulations that I need to run, and I'm wondering if they can be done simultaneously. Let me describe the situation: I have 1000 draws of prevalence for ~100 diseases, and 1000 draws of corresponding disability weights…

mike
- 22,931
- 31
- 77
- 100
4
votes
1 answer
Bioreactor Simulation for Ethanol Production using GEKKO
I am trying to simulate a DAE system that solves a fed-batch bioreactor problem for ethanol production using GEKKO. This is done so I can later optimize it more easily to maximize Ethanol production.
It was previously solved in MATLAB and produced…
4
votes
0 answers
Co-Simulation: AnyLogic and Unreal Engine
I understand that AnyLogic has a 3D Engine to visualize simulations, as described in the AnyLogic Documentation. Since the Unreal Engine is one of the most powerful 3D engine, I was wondering if it would be possible to couple these two tools, maybe…

Dr No
- 118
- 5
4
votes
0 answers
Keyboard Events Simulation using Node.JS
It's possible to simulate a keyboard stroke in node.js?
Of course I would like to simulate the keyboard event on the machine where the node application is running, not in a html/js client application.

vannyn
- 41
- 1
- 4
4
votes
1 answer
Object too fast for Collision in Unity
I'm currently making a simulation where disks are placed in a conveyor belt and sorted by color. When the sensor detects a white disk, a rectangular object 'pushes' out of the conveyor belt into a box, and it needs to move quickly. However, whenever…

codebeginner
- 41
- 3
4
votes
2 answers
Change the number of resources during simulation in simpy
I am currently working on a model which simulates a delivery process throughout an operating day in simpy. The deliveries are conducted by riders which are delivering one package at a time. The packages need to be delivered within a certain time…

Joost Loth
- 43
- 2
4
votes
1 answer
Simulation Problem Java
I'm new to simulation and i just wanted to find out the best approach to solve a certain problem i have come up with.
I have a "world" in which there are different Locations (different cities). In each city, there are a certain random amount of…

Shile
- 57
- 7
4
votes
0 answers
simulate dice with fair coin flip
Given a fair coin (0/1), how do you simulate fair dice(0 to 5)
Obvious answer I know is toss 3 times, treat each toss as a bit to produce (2^3 = 0 to 7)
If result == 7, discard and repeat.
Well, theoretically worst case big-O of this is really bad…

Ajeet Ganga
- 8,353
- 10
- 56
- 79
4
votes
1 answer
virtual networking on single machine
Is it possible to run more than one virtual machines on my PC using virtual box/ vmware/ virtual pc etc and connecting all of them together? So if i write an application like a chat program or something else, it treats running image as separate…

Amit Kumar Gupta
- 7,193
- 12
- 64
- 90