Questions tagged [simulation]

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.

5194 questions
12
votes
4 answers

agent-based simulation: performance issue: Python vs NetLogo & Repast

I'm replicating a small piece of Sugarscape agent simulation model in Python 3. I found the performance of my code is ~3 times slower than that of NetLogo. Is it likely the problem with my code, or can it be the inherent limitation of…
max
  • 49,282
  • 56
  • 208
  • 355
12
votes
4 answers

Algorithms for City Simulation?

I want to create a city filled with virtual creatures. Say like Sim City, where each creature walks around, doing it's own tasks. I'd prefer the city to not 'explode' or do weird things -- like the population dies off, or the population leaves, or…
anon
  • 41,035
  • 53
  • 197
  • 293
12
votes
3 answers

monte carlo simulation of protein structure and grid

I am working Monte Carlo simulation script over protein structure. I have never done before Monte Carlo scripting. I will extent this program at large scale. According to protein xyz coordinates I have to define the box size. This box will be…
awanit
  • 263
  • 1
  • 2
  • 11
11
votes
4 answers

Reading data from Flight Simulator

I'm looking at building some hardware components to interface with Microsoft Flight Simulator which (hopefully) will display things that are currently taking up screen real estate (altimeter, airspeed indicator, radios, etc.) Is there a way to read…
Flyer1
  • 847
  • 3
  • 10
  • 14
11
votes
3 answers

Are there any programs that can simulate an unstable network connection?

We need to simulate an unstable network connection to try to debug some connectivity issues in our server/client application and I was wondering if there are any programs out there that can simulate those conditions such as on a faint wireless…
Davy8
  • 30,868
  • 25
  • 115
  • 173
11
votes
3 answers

Cell-Based Liquid Simulation: Local pressure model?

I'm attempting to add semi-realistic water into my tile-based, 2D platformer. The water must act somewhat lifelike, with a pressure model that runs entirely local. (IE. Can only use data from cells near it) This model is needed because of the nature…
Steffan Donal
  • 2,244
  • 4
  • 24
  • 47
11
votes
3 answers

What is a Calendar Queue?

I am working on a building a discrete event simulator. Wikipedia mentioned that there are several general purpose priority queues that are good for use in DES's. Specifically, it mentions that a Calendar Queue is a good structure. I found one pdf…
fbl
  • 2,840
  • 3
  • 33
  • 41
11
votes
2 answers

Geometric Brownian Motion simulation in Python

I am trying to simulate Geometric Brownian Motion in Python, to price a European Call Option through Monte-Carlo simulation. I am relatively new to Python, and I am receiving an answer that I believe to be wrong, as it is nowhere near to converging…
tgood
  • 129
  • 1
  • 2
  • 7
11
votes
6 answers

discrete event simulators for C++

I am currently looking for a discrete event simulator written for C++. I did not find much on the web written specifically in OO-style; there are some, but outdated. Some others, such as Opnet, Omnet and ns3 are way too complicated for what I need…
Bob
  • 10,741
  • 27
  • 89
  • 143
11
votes
8 answers

How is time-based programming done?

I'm not really sure what the correct term is, but how are time-based programs like games and simulations made? I've just realized that I've only wrote programs that wait for input, then do something, and am amazed that I have no idea how I would…
ektrules
  • 405
  • 3
  • 9
11
votes
10 answers

What's the best language for physics modeling?

I've been out of the modeling biz, so to speak, for a while now. When I was in college, most of the models I worked with were written in FORTRAN, which I never liked. I'm looking to get back into science, so I'm wondering if there are modern…
FCBastiat
  • 119
  • 1
  • 1
  • 4
11
votes
4 answers

What design pattern to use for generating multiple simulations?

I have a simulation that runs at a specific height and a specific temperature: interface IGeneratable { string Name { get; } void Generate(); } interface ISimulation : IGeneratable { int Height { get; } int Temperature { get; } …
alhazen
  • 1,907
  • 3
  • 22
  • 43
11
votes
2 answers

Is it possible to make realistic n-body solar system simulation in matter of size and mass?

Important note: this question has utterly no relation to "PhysX", which is a computer-game-physics system (useful for the physics in arcade games such as ball games, etc); PhysX is a system built-in to Unity3D and other game engines; PhysX is…
OldBerkay
  • 171
  • 1
  • 2
  • 13
11
votes
5 answers

How to throttle network traffic for environment simulation?

I'm trying to test an application that uses a database connection. What I would like to do is throttling the bandwith to, say, 1 MBit or such to get a better feeling for the application under realistic conditions. I already use Wireshark to have a…
user274464
11
votes
5 answers

factory floor simulation

I would like to create a simulation of a factory floor, and I am looking for ideas on how to do this. My thoughts so far are: • A factory is a made up of a bunch of processes, some of these processes are in series and some are in parallel. Each…
fishhead
  • 5,829
  • 7
  • 32
  • 43