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.
377 questions
7
votes
3
answers
246
views
Maze Solver in Python inspired by Micro-Mouse Competition Logic
Why I made it
I watched this video by veritasium about Micro-Mouse maze-solving competitions, and found the logic to get to the center fascinating. Hence, despite not having a maze or a mouse, I spent ...
0
votes
0
answers
66
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
983
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
50
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
170
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
857
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
560
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
269
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
196
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
370
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
190
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
100
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
213
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 ...