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
7
votes
1 answer

Agent Based Modeling in Modelica

Is it possible to simulate multi-agent systems in Modelica? I'm talking about a system such MASON written in Java. How easy or difficult it would be? As I understand, Modelica is not a typical programming language, so would it be particularly…
7
votes
1 answer

Java Card applet EEPROM vs RAM testing

One of typical bugs in Java Card applets is using the persistent memory for temporary variables which are supposed to be in RAM. These bugs can slow down the applet and cause some serious troubles (e.g. Symptoms of EEPROM damage). Unit tests can…
vojta
  • 5,591
  • 2
  • 24
  • 64
7
votes
1 answer

How to code a multiparameter log-likelihood function in R

I would like to estimate power of the following problem. I am interested in comparing two groups that both follow Weibull distribution. So, group A has two parameters (shape par = a1,scale par = b1) and two parameters has group B (a2, b2). By…
user36478
  • 346
  • 6
  • 14
7
votes
1 answer

Fast(er) way of indexing matrix in R

Foremost, I am looking for a fast(er) way of subsetting/indexing a matrix many, many times over: for (i in 1:99000) { subset.data <- data[index[, i], ] } Background: I'm implementing a sequential testing procedure involving the bootstrap in R.…
Niels
  • 81
  • 5
7
votes
1 answer

Simple algorithm modeling stock market behavior

I have been working on a virtual stock market game using PHP. The formula that I have been using for deciding the price of a stock is $price += $ran*0.001*$price + $ratio*0.005*$price where $ran = rand(-1*$intensity, 2*$intensity) $intensity is a…
Archit Verma
  • 1,911
  • 5
  • 28
  • 46
7
votes
1 answer

QEMU as an Embedded Simulator for Firmware Testing

I've been looking at QEMU for a while now and I've been trying to find out if I can use it to simulate a device that we are developing. The device will be powered by an ARM Cortex M3 and QEMU is well suited for emulation of its software. What I…
nonsensickle
  • 4,438
  • 2
  • 34
  • 61
7
votes
4 answers

Improving soccer simulation algorithm

In another question, you helped me to build a simulation algorithm for soccer. I got some very good answers there. Thanks again! Now I've coded this algorithm. I would like to improve it and find little mistakes which could be in it. I don't want to…
caw
  • 30,999
  • 61
  • 181
  • 291
7
votes
1 answer

Finding velocity vector based on angle and speed

I am programming some movement for AI for a game based on angle and speed.Its a 2D program based on x,y axis. I currently have a position vector as-well as a velocity vector which accounts for speed and current direction of the AI.Every time I move…
Tohmas
  • 547
  • 2
  • 7
  • 14
7
votes
4 answers

What's the best trick to speed up a monte carlo simulation?

Whenever I run large scale monte carlo simulations in S-Plus, I always end up growing a beard while I wait for it to complete. What are the best tricks for running monte carlo simulations in R? Any good examples of running processes in a…
griffin
  • 3,158
  • 8
  • 37
  • 34
7
votes
3 answers

How to mimic an IP Address - Device Simulator Required

I'm new here...been digging around for some help but figured I would join and ask for some guidance. I'm looking to create an app that can create multiple "fake" devices. They need an IP Address and I'm guessing able to respond to ping. Being able…
user1786176
  • 139
  • 3
  • 7
7
votes
0 answers

Is this strange behavior naturally emergent or an error on my part?

I am working on a 2d game/simulation where planets composed of blocks around a core orbit around a star. They also rotate on their own, and both their rotation around the star and their personal rotation have random velocities. The program keeps…
7
votes
1 answer

Shortest Remaining Time First: Java Multithreading

I am trying to simulate CPU scheduling algorithms in java and am using multithreading. I have successfully implemented FCFS(First Come First Serve) and SJF(Shortest Job First). But the problem is when i start to think of SRTF(Shortest Remaining Time…
akaHuman
  • 1,332
  • 1
  • 14
  • 33
7
votes
6 answers

Simulating virtual worlds: continuous or discrete steps?

I'm making something similar to Polyworld, which means I will be simulating virtual worlds where little creepers run around, eat, and evolve. I'm making that with Node.js, and I plan to use physics and neural networks, but I'm not sure what's the…
corazza
  • 31,222
  • 37
  • 115
  • 186
7
votes
3 answers

Preferred (or recommended) way to store large amounts of simulation configurations, runs values and final results

I am working with some network simulator. After making some extensions to it, I need to make a lot of different simulations and tests. I need to record: simulation scenario configurations values of some parameters (e.g. buffer sizes, signal…
Kokos
  • 2,143
  • 3
  • 17
  • 16
7
votes
4 answers

What are good libraries for creating a python program for (visually appealing) 3D physics simulations/visualizations?

What are good libraries for creating a python program for (visually appealing) 3D physics simulations/visualizations? I've looked at Vpython but the simulations I have seen look ugly, I want them to be visually appealing. It also looks like an old…
Bentley4
  • 10,678
  • 25
  • 83
  • 134