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.
376 questions
0
votes
0
answers
61
views
Сreating a digital twin of the enterprise
I am creating a program to create digital twins of enterprises. I am using the Simpy framework for this purpose.
I'm creating a universal system that can model almost any enterprise, but I have a ...
6
votes
3
answers
978
views
Moving ball simulation within a donut
How do I optimise my code more?
The goal is to have my code work with more than 200 moving balls, but that takes forever right now and doesn't look smooth at all. Furthermore, I can't get the sizing ...
0
votes
0
answers
49
views
Mediation analysis using AFT
I have this R code for mediation analysis based on AFT.
Can someone take a look?
https://github.com/cristianricciwork-commits/aft-mediation..git
I suggest to take a look at the .pptx (there are ...
1
vote
2
answers
167
views
ProducerConsumerSimulation.java: practicing concurrent programming in Java
Intro
This time, I was in the mood for concurrent programing (ProducerConsumerSimulation.java). To this end, I have ended up with the code below. My primary concerns are:
Class design is trash,
The ...
12
votes
4
answers
1k
views
Simple mutation simulation for use in science class
I've been giving my grade tens an introduction to computational phylogenomics, based around computing dissimilarity between DNA strands, and a simplified model of mutation. They've been exploring how ...
7
votes
2
answers
854
views
Numerical cellular automaton way of simulating water, fire or smoke
I have made up some evolutionary rules for a type of cellular automaton that uses numbers instead of the more common binary black or white cells.
Rules in English:
Takes place on a square grid that ...
5
votes
2
answers
556
views
The Random Skipping Sequential (RSS) Monte Carlo algorithm
Research paper: The Random Skipping Sequential (RSS) Monte Carlo algorithm
The main algorithm described in the given link is a Random Skipping Sequential Monte Carlo Algorithm (RSS Algorithm) ...
6
votes
1
answer
267
views
Optimizing C++ Implementation of the Simulated Bifurcation Algorithm (SB)
I've implemented the Simulated Bifurcation (SB) algorithm in C++, based on the method described in [2] (link to Science Advances). The goal of this algorithm is to find the ground state of an Ising ...
2
votes
1
answer
194
views
Java program for calculating probabilities of die combinations in Yatzy
Yatzy
Yatzy is a dice rolling game where players aim to get particular die combinations.
This program counts probability of each such combinations. They are:
All five ones,
All five twos,
Same for ...
8
votes
2
answers
366
views
Determining Error Rate of Phase Shift Keying via Monte Carlo Simulation
My program calculates the symbol error rate for various signal-to-noise ratio (SNR) and modulation orders using Monte Carlo simulation on Phase Shift Keying (PSK). How can it be improved?
...
1
vote
1
answer
188
views
A web page for running AI vs. AI Connect Four matches with selection of algorithms and search depths
This time, I have prepared this page where a user may select what AI bots will be run in the game of Connect Four. The entire repository is here.
Code
index.html:
<...
3
votes
5
answers
2k
views
How do I speed up this simulation program
This is a program to solve a differential equation numerically using Euler method. As of now, it is very slow, and I need to run 10000 Monte Carlo simulations.
The differential equation is called ...
3
votes
1
answer
99
views
how to launch multiple processes efficiently
I have a list of car models which I want to simulate by launching multiple instances of an external simulator executable. My application stores the current status of all the cars that are being ...
4
votes
1
answer
212
views
Dial up some obscure stats for the Chutes and Ladders game
Years ago, I wrote some code in Perl
for the Chutes and Ladders game. I re-wrote the code here in Python.
The code simulates one player in a game to see how many spins of the dial
are needed to win ...
2
votes
3
answers
229
views
Friendly probability puzzle solved with simulation
A friend posed to me a question to see if I could solve it. He says I solved it appropriately. I was hoping someone here could give me a review of the program I wrote to answer it. I figured it would ...