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.
Questions tagged [simulation]
5194 questions
1
vote
1 answer
A few questions about pymunk's accuracy
I am interested in simulating a sort of rod-pendulum system:
from intro import pymunk, space, App
import pygame
from pymunk.vec2d import Vec2d
pygame.init()
b0 = space.static_body #declare a universe
b1 =…

Ivan Viti
- 271
- 2
- 11
1
vote
1 answer
Simulation based on set of rules in R
I want to run a sim that randomly picks rows and adds up the total value of the rows based on a set of rules. I'm new to simulations so don't know where to start.
Rules: 9 total rows picked per sim. Each sim of 9 must include the following number of…

Jeff Henderson
- 643
- 6
- 10
1
vote
1 answer
Loop over to create new variables from uniform dataframe
My problem is the following
I want to create variables e_1, e_2, e_3, ... , e_50 which are all composed of 100 draws from the uniform[-1,1]
This means e_1 is a vector of 100 draws from U[-1.1], e_2, .., e_50 as well.
Here is what I thought I could…

Lola1993
- 151
- 6
1
vote
2 answers
Visual Enhancement for Pick-Up & Drop-off Functions in AnyLogic
I'm trying to replicate a truck pickup and delivery demo. I know that I can use these functions to do the job, but the agents I pick up (that have their destination and other detail embedded) don't appear "on" the truck (assume an open flat-bed…

Dave
- 143
- 5
1
vote
0 answers
Is there a way to trace callstack of an application running on gem5?
I am looking for a way to keep a track of all the functions that are called when I run an application on the gem5 simulator. For example, there is this code test.c:
#include
int main(){
FILE *fp;
char c[] = "hello";
char…

Preet Derasari
- 80
- 7
1
vote
1 answer
how to move and show a robot at a certain speed at specified intervals in pygame
I try to simulate a robot's movement using pygame. Robot gets speed and interval length from an RL algorithm. For example, The robot moves at a speed of 10 for 1 second, then at a speed of 10 for 2 seconds, and so on.
I try this method, but it…

m031n
- 11
- 3
1
vote
1 answer
Error of ModelStructure/Outputs by using FMU container
I am trying to combine three FMUs into one FMU that contains all of the three. Specifically, I have one FMU of a pandapower electricity network and 2 FMUs that are CSV files converted to FMUs by using PythonFMU tool. All of the FMUs have been tested…

Kosmylo
- 436
- 1
- 6
- 20
1
vote
2 answers
Allow only a fixed number of agents to pass through a queue block periodically in Anylogic
I am using a Queue and hold block together, where the hold remains blocked until all the agents arrive at the Queue block.
How to change it and want to allow only a fixed number of agents (say 5 agents) at fixed intervals of time(say every 3…
1
vote
0 answers
How to include time-varying parameters in a Gillespie simulation?
I've been simulating a population dynamics model, and added in some environmental stochasticity by making the value of one of the parameters time-varying.
(To be more specific, I made thermal performance curves that relate the temperature of the…

MadelineJC
- 97
- 7
1
vote
3 answers
Change priority rule of a Queue block at runtime in Anylogic
I am trying to implement reinforcement learning in Anylogic using pathmind library, the RL agent can take either of two actions which is changing the priority rule of a Queue block.
I have a Queue block where I'm using priority-based queueing. I…
1
vote
0 answers
Anylogic Database Integration to power BI?
How can I integrate Anylogic Database to power BI platform so that Power BI can generate from the simulation a real time data (display dashboard) ? (PS : am beginner in simulation modeling with AnyLogic)

Soulaima Ben Lkima
- 11
- 2
1
vote
0 answers
How to model taxis in SUMO so that people only choose it if it is not too far away
This is my first try with taxis in SUMO, and I am defining an intermodal system with public transit and taxis for the moment. Before adding the taxis, the agents either walk or took different public transit systems to go from start to finish by…

Daniel Uribe
- 11
- 1
1
vote
2 answers
Simulation Model and For Loop in R
I am running a simulation model in R. How do I make the for loop multiply all capacity values and create a list of the average of each profit at the capacity level? Thank you!
BuildCost <- 16.00
SellPrice <- 3.70
VariableCost <- 0.20
OperationCost…

gchoi98
- 29
- 1
- 5
1
vote
1 answer
Optimize c++ Monte Carlo simulation with long dynamic arrays
This is my first post here and I am not that experienced, so please excuse my ignorance.
I am building a Monte Carlo simulation in C++ for my PhD and I need help in optimizing its computational time and performance. I have a 3d cube repeated in each…

FoxxyL707
- 13
- 5
1
vote
1 answer
Anylogic - Creating an Elevator System with Pedestrians
I am currently trying to recreate my university dorm elevator system in AnyLogic, however I am unsure how to even start with pedestrians and elevators, as the lifts in the program are only used by transporter fleets.

Marosaur
- 11
- 1