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
5
votes
2 answers

N body simulation in C#

I'm trying to implement an N body simulation in C# using either Runge Kutta 4 or Velocity Verlet integration algorithms. Before I move to a bigger number of particles, I wanted to test the simulation by modeling the earth's orbit around the sun,…
fbartolic
  • 403
  • 1
  • 5
  • 18
5
votes
0 answers

Example of a RoboCup 3D Soccer bot?

I'd like to write a bot to play in the 3D RoboCup software soccer simulation league that runs under SimSpark. Can anyone point me at some code that already deals with communication with the server, etc? (source: sourceforge.net) Ideally this…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
5
votes
4 answers

SET game odds simulation (MATLAB)

I have recently found the great card came - SET. Briefly, there are 81 cards with the four features: symbol (oval, squiggle or diamond), color (red, purple or green), number (one, two or three) and shading (solid, striped or open). The task is to…
yuk
  • 19,098
  • 13
  • 68
  • 99
5
votes
2 answers

A weird "yaw" behavior in simulation using atan2() function

I'm working on an application, a simulator, where a quadrotor flies from waypoint to waypoint. In my code I've implemented a function to calculate the yaw using atan2 function. But when the quadrotor turns over 360° it doesn't move through the…
Dave
  • 349
  • 4
  • 22
5
votes
0 answers

What does this E100 timestamp by Schlumberger Eclipse mean?

I am doing analysis on a reservoir where I have the following YEAR and TIME. The data is imported according to the E100 black oil model from the Eclipse software (Schlumberger) -- this Eclipse is not the same as the traditional Eclipse used for…
hhh
  • 50,788
  • 62
  • 179
  • 282
5
votes
2 answers

Truly Global Variable in python

OK so the project I am working on requires* using a truly global variable (or five) and the other questions on here have to do with cross module variables (could be helpful later just not yet). Here is my problem: I have a program that will be…
unknown
  • 175
  • 6
5
votes
0 answers

Zelig R Cluster Standard Errors Function No Effect

Zelig does not appear to be doing anything when provided information on clusters. Am I doing something wrong? I really appreciate the ease with which this package generates predicted values for changes in a single variable--very useful for getting a…
Michael Davidson
  • 1,391
  • 1
  • 14
  • 31
5
votes
5 answers

Which data structure(s) to back a Final Fantasy ATB-style queue? (a delay queue)

Situation: There are several entities in a simulated environment, which has an artificial notion of time called "ticks", which has no link to real time. Each entity takes it in turns to move, but some are faster than others. This is expressed by a…
ZoFreX
  • 8,812
  • 5
  • 31
  • 51
5
votes
1 answer

Generating Random Variables with given correlations between pairs of them:

I want to generate 2 continuous random variables Q1, Q2 (quantitative traits, each are normal) and 2 binary random variables Z1, Z2 (binary traits) with given pairwise correlations between all possible pairs of them. Say (Q1,Q2):0.23 (Q1,Z1):0.55…
5
votes
2 answers

Can I have multiple independent random number generators in R like I can in C++?

I have many independent random processes (arrival processes say) that require me to generate random numbers. I want to use common random numbers for each of these processes that I can compare how different policies perform when controlling these…
5
votes
2 answers

Modelling versus Simulation

I read the simulation definition from the following paper: MARTE: A Profile for RT/E Systems Modeling, Analysis —and Simulation? Dictionaries define simulation as the act of (faithfully) imitating the appearance or character of something. In…
Carlos
  • 1,522
  • 5
  • 14
  • 26
5
votes
1 answer

Discrete Event Simulation without global Queue?

I am thinking about modelling a material flow network. There are processes which operate at a certain speed, buffers which can overflow or underflow and connections between these. I don't see any problems modelling this in a classic Discrete Event…
5
votes
2 answers

Simple MATLAB/Octave simulation

This should be a very simple question for anyone who has some experience in this area, but I'm still new to this. I have the following system (or here is an image with better resolution): alt text…
Attila O.
  • 15,659
  • 11
  • 54
  • 84
5
votes
3 answers

Matplotlib in Python - Drawing shapes and animating them

So I'm representing a token ring network (doing the simulation in SimPy), I'm a totally newbie to matplotlib, but I was told that it'd be really good for representing my simulation visually. So I googled around and found out how to draw shapes and…
Duncan Tait
  • 1,997
  • 4
  • 20
  • 24
5
votes
3 answers

Simulation and synthetic video generation for evaluation of computer vision algorithms

I am looking for an easy way to generate synthetic videos to test computer vision software. Currently I am only aware of one tool that targets this need: ObjectVideo Virtual Video (OVVV). It is a HalfLife 2 mod that allows to simulate cameras in a…
f3lix
  • 29,500
  • 10
  • 66
  • 86