Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [simulation]

Filter by
Sorted by
Tagged with
0 votes
1 answer
109 views

I am making a multiplayer strategy simulation game. The game runs in turns of fixed duration, e.g. 1 minute. For every user, there is a set of state variables that can change every turn, e.g. amount ...
devil0150's user avatar
  • 169
0 votes
0 answers
62 views

I am trying to write a simulation that has multiple (20+) variables, which the user should be able to control without modifying the source code. Currently I'm stuck between two design choices: Should ...
z.x.99's user avatar
  • 101
-1 votes
3 answers
200 views

Currently, I am developing a software in C# (.NET 6) that tests devices after production. Therefore, it runs specific tests, e.g., voltage measurements, using the connected hardware. If the voltages ...
Thern's user avatar
  • 105
0 votes
1 answer
280 views

I've been building a traffic simulation with C++ following the Intelligent Driver Model from this article: https://towardsdatascience.com/simulating-traffic-flow-in-python-ee1eab4dd20f To sum up my ...
silverfox's user avatar
  • 103
1 vote
2 answers
260 views

I'm an applied physics student and currently working on a simulation of the magnetic interactions of multiple protons within a protein. Me having only little experience with programming and almost ...
Meck3l's user avatar
  • 17
0 votes
1 answer
329 views

When designing my simulator, I have gotten stuck on 2 main design choices. The simulator can be described as having X number of nodes (between 50 - 2000) that each need to independently do some ...
Nabiel Kandiel's user avatar
0 votes
5 answers
338 views

I have a simulation in Python which reads its configuration from a toml file. Since I have tons of parameters, the toml file can grow quite large. This is an example file, similar in structure to my ...
jfaccioni's user avatar
  • 516
0 votes
3 answers
212 views

Or ways to get better run time than a nested loop? How would you design this? I hope this is the place to ask semi-vague software engineering questions. My simple simulation is like this: There is a ...
Ben Alan's user avatar
  • 119
1 vote
1 answer
140 views

I am composing a library for Discrete-Event Simulation of vehicle traffic. Vehicles are modelled as agents, while the network is modelled as a set of interconnected edges and nodes (a bidirectional ...
ForeverNoob's user avatar
1 vote
2 answers
840 views

I have a hard time understanding how to combine a rule-based decision making approach for an agent in an agent-based model I try to develop. The interface of the agent is a very simple one. public ...
Vector Zita's user avatar
  • 2,502
-1 votes
2 answers
101 views

Building games and simulation frameworks, it seems I am regularly hounded by this conundrum: Let's say you have a 2D grid, and you have an crate in that grid. I can put the coordinates on the crate, ...
cammil's user avatar
  • 115
-1 votes
3 answers
611 views

I was doing a Monte Carlo implementation of the Birthday Paradox in Python and I wanted to check if the results where the same as in the analytical implementation of the same problem (As they should ...
Edoardo Busetti's user avatar
3 votes
2 answers
649 views

I'm conflicted as to what is the best way to approach this problem. I am writing a simulation in Python, which is parametrized by ~ 50 parameters. I have a JSON file where these parameters are set, ...
jfaccioni's user avatar
  • 516
7 votes
6 answers
13k views

As a practice I'm working on a CPU simulator (runs at about 1.78MHz) and I'm using a switch statement to execute correct opcodes based on the value in the IR (instruction register) variable. This ...
NMITIMEN's user avatar
  • 119
0 votes
0 answers
39 views

I need to build an experiment based on a scientific paper in which a high number of agents have a divided visual field (with limited detection distance) and have to detect other agents in a 2D ...
Hugo Simon's user avatar
2 votes
1 answer
163 views

I have a predictive model which runs 10,000+ scenarios to predict the outcome. It's a micro-simulator model for an insurance company. The data part is almost static with changes from time-to-time, ...
PB4133944's user avatar
-2 votes
1 answer
1k views

I'm implementing an App for fun. It consists of a soccer round-robin tournament simulator in which all teams play each other. A Team consists in a simple object: class Team{ String _teamName; ...
alexpfx's user avatar
  • 303
0 votes
1 answer
219 views

When I write python code for simulations, I often end up with the following situation: I have a class describing the general environment which contains a list of instances of a class that describes ...
user68044's user avatar
  • 111
0 votes
1 answer
117 views

Software I'm working on requires simulation of logic circuits, both combination and sequential. Now the simulation doesn't need to be too detailed, in fact it could be detrimental to the function of ...
user1561358's user avatar
1 vote
1 answer
115 views

In the same way that you can simulate the if statement and functions, I am wondering if there is a way to simulate the comparison operators ==, !=, >, >=, <, <=. For example, in ...
Lance Pollard's user avatar
0 votes
2 answers
235 views

Along the lines of How to Simulate Control-Flow without using Control-Flow Primitives, I am wondering how to simulate return from a function. Given an example setup like this: console.log(a(10)) ...
Lance Pollard's user avatar
1 vote
1 answer
84 views

The gist of my problem is that I'm trying to make a basic simulation for periodically collected data. More specifically, given the position of a radio antenna, the RF patterns would be simulated ...
Forest LeBlanc's user avatar
0 votes
0 answers
75 views

I've noticed that data-flow analysis uses approximations of a programs steps by simulating the value flow in some way (which I don't fully understand yet). They describe it well here. On page 4 they ...
Lance Pollard's user avatar
4 votes
1 answer
368 views

I am looking to perform a large overhaul on a complex simulation system that simulates several instances of several vehicle models in a classroom training environment. For example, 24 students may be ...
Gren Meera's user avatar
1 vote
2 answers
1k views

Cheers guys, I am quite new to C++, however, I have some years of experience in programming and I am open for challenges :-) Currently, I am designing a "small" scientific program to perform some ...
Oliver's user avatar
  • 157
0 votes
1 answer
809 views

Background I am trying to write a simulator where multiple AI agents are competing and/or collaborating to achieve the goal of maximizing some utility function. Each agent has the ability to interact ...
A.Rashad's user avatar
  • 604
3 votes
3 answers
313 views

I was thinking about creating a simple game/simulation where cars drive around in a city as part of a pet project. That made me think how I would simulate these individual cars in a simulated world. ...
bvanvelsen's user avatar
-1 votes
1 answer
143 views

I'm attempting to develop an open-source Python module for modeling task networks for discrete event simulation. The most fundamental component is the task object, which includes various data such as ...
mcman's user avatar
  • 1
3 votes
3 answers
589 views

I started development of simulator for simulation of distributed algorithms in language C. My work consist of creating simple language for algorithm description and simulator which takes the described ...
M.Puk's user avatar
  • 133
1 vote
1 answer
566 views

I'm trying to debug my MCTS implementation for TicTacToe (it doesn't block obvious wins for the opponent). I was wondering what the algorithm should do if it expands to a node which is a game over ...
Amja's user avatar
  • 113
0 votes
1 answer
370 views

I'm currently working on a computational physics code in Fortran. In summary, the code performs the following operations: Initialize Loop until done Advance solution over time Possibly write output We ...
Jannis Teunissen's user avatar
44 votes
4 answers
54k views

I'm trying to simulate an elevator, as always I started very simple by taking only a single order at a time, then added memory to the elevator in the form of queues so that floors are traveled in the ...
Raed Tabani's user avatar
1 vote
0 answers
392 views

Let me preface this by admitting that I am a novice - this is the first real project I am doing outside of a class. I am running a single-threaded C++ simulation several hundred times (i.e. I have ...
GnomeSort's user avatar
  • 119
3 votes
3 answers
5k views

I would like to ask how optimizer software written in C/C++ can be linked to simulator software written in FORTRAN or any other language. I have copied the section of journal article of Singh and ...
Surajit's user avatar
  • 47
4 votes
1 answer
1k views

I've been requested to develop a quite well known problem for a job interview. The Parking Simulation which an example can be found here. I came up with some ideas for which design pattern should I ...
Patrick Bard's user avatar
1 vote
2 answers
700 views

I'm trying to simulate a DVD production line in Java. The thing I have a problem with is the calculation of the time in this kind of simulation and the number of DVDs per hour. The production line ...
Boris Jakovljevic's user avatar
1 vote
0 answers
53 views

I would like to understand a bit more the theory and the approaches available in modelling a population roaming across a landscape. Assume discrete time and space as simple as a discrete grid and a ...
Marcus Junius Brutus's user avatar
1 vote
1 answer
440 views

I am aware of this question, and I think I know why it has been closed. I hope that my question manages to be more specific. My skill level: I have a "Computer Science" degree. I have programmed in ...
XXX's user avatar
  • 193
-2 votes
2 answers
5k views

I'm trying to simulate clients going into a bank and being served by tellers over a period of time. I am using a thread to determine if a client came into the bank via an arrival rate and am using ...
CSjunkie's user avatar
  • 101
0 votes
1 answer
102 views

i'm simulating an ensemble of random walkers in 2D in python, I set [x,y] coordinates of my walkers to be gaussian in a 2D grid, then use a rand array of -1 and +1 to move up down left right: N=20 #...
Jared Lo's user avatar
  • 109
0 votes
2 answers
138 views

We have a program that combines the simulation of an aircraft system and predefined pedagogical scenarios for trainee pilots to learn how to use this system. When we follow the normal scenario, ...
Sebastien Guimmara's user avatar
4 votes
1 answer
165 views

I have an uncommon problem. There are 2 3D objects, which are represented by arrays of vertices and triangles (.stl files). Each of them contains a big enough amount of vertices: 1-10 mln ones. The ...
Eugene's user avatar
  • 169
0 votes
2 answers
790 views

I want to make a roulette board with a ball spinning and landing on a certain field. The catch is that the field the ball will land on, is known beforehand. I want the animation to look somewhat ...
Qqwy's user avatar
  • 4,947
0 votes
1 answer
213 views

I'm attempting to build a Discrete Event Simulation library by following this tutorial and fleshing it out. How should I handle logging metrics in my Discrete Event Simulation engine? If you don't ...
Blackhawk's user avatar
0 votes
1 answer
1k views

Recently I started same projects to improve my programming skills, so I tried to develop a point of sale software. I started to bay the required hardware (ticket printer, Barcode Scanner….) to make my ...
Barttttt's user avatar
  • 103
3 votes
6 answers
958 views

I want to illustrated my question by way of a (hopefully) representative example. Lets say I have a situation where I am developing a class library in C# to be used in some simulations. I want to ...
kcc's user avatar
  • 33
2 votes
2 answers
115 views

I am trying to determine an objective way for a self-interested agent to calculate the optimal buying/selling price for goods in a multi-agent simulation not dissimilar to Sugarscape (http://en....
Milton Manfried's user avatar
1 vote
3 answers
232 views

In a typical perfect-information strategy game like Chess, an agent can calculate its best move by searching the state tree for the best possible move, while assuming that the opponent will also make ...
Milton Manfried's user avatar
3 votes
1 answer
1k views

To randomly shuffle an array, with no bias towards any particular permutation, there is the Knuth Fischer-Yeats algorithm. In Python: #!/usr/bin/env python import sys from random import randrange ...
OregonTrail's user avatar
19 votes
5 answers
721 views

I'm a planetary science researcher and one project I'm working on is N-body simulations of Saturn's rings. The goal of this particular study is to watch as particles clump together under their own ...
Stuart Robbins's user avatar