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
NA / NaN / Inf on call to an external function (arg 5)
I have the following problem, I am generating random values and when I run the syntax I get the following error "NA / NaN / Inf in a call to an external function (arg 5)" but this error appears when there is text in the base (at least that I read),…
1
vote
0 answers
How to perform parameter estimation for ODEs, including simulating steady steady state and using multiple experimental conditions in Julia
I am trying to figure out how to do parameter estimation of a system of ODEs for multiple experimental conditions, with unknown initial values. I know the relationships between the different quantities of the different variables, but not the exact…

Willov
- 11
- 3
1
vote
3 answers
Internal OptQuest Error. (Is Feasible() - solution has not been evaluated.)
My optimisation experiment inside AnyLogic is refusing the run, the error coming up is:
Internal OptQuest Error. (Is Feasible() - solution has not been evaluated.)
I cannot find anyone online explaining what this means and so I was wondering if…

Natasha Jones
- 33
- 5
1
vote
0 answers
Image Extractor by AI Habitat produces a configuration error when importing Matterport dataset
I need help understanding the error message, which is along the lines of changing the file name to json because the configuration fails. I have a long error message but pasted the part that is mostly repeated throughout the…

Kyra
- 11
- 1
1
vote
1 answer
How to compare one observation against the rest of the dataframe using poisson distribution in R?
I want to find a way to compare the values of hp of a car using Poisson distribution to see which one is more likely to have the lowest value of hp from all cars for example Mazda Rx4 has a horsepower of 110.
I want to simulate this value following…

Pastor Soto
- 336
- 2
- 14
1
vote
0 answers
R function to generate random integers with predefined mean and standard deviation
Does anybody know a function custom or not, to generate random integers following (as a whole set) a predefined mean and standard deviation?
For example I'd like to be able to generate a set of 5 integer that will have a mean of 2.8 and standard…

blazej
- 1,678
- 3
- 19
- 41
1
vote
1 answer
How do you go about making a convert probability chance for an agent in netlogo?
I'm currently working on a zombie apocalypse simulation in NetLogo 2D. In my current simulation, when the zombies collide with humans the humans have a 100% chance to turn into a zombie. I would like to change this so that I can use a slider to set…

Louis K
- 11
- 2
1
vote
1 answer
Change value of internal signals while running simulation
I would like to know how I can change a value of an internal signal and propagate this modification.
I have a counter and in the third cycle of simulation, where cnt(internal signal) takes 3 I have forced it to 0 for two cycles. the problem I found…

Noura AIT MANSSOUR
- 45
- 4
1
vote
1 answer
Do I need to reduce for-loop in R and how?
I am a freshman in R coding, but I've heard that loop in R is much slower than other language like Python or C. So do I need to reduce loop when coding in R?
Specifically, in this simulation code, how can I improve my poor coding…

James Yu
- 13
- 3
1
vote
0 answers
monte carlo with PERT distribution EXCEL
I have to provide a 1000 iteration monte-carlo simulation in EXCEL
We will use the PERT distribution for all of our randomly generated times.
Here my data. I calculated the expected time and variance
I generated the iterations from 1 to 1000 then I…

Eileen
- 21
- 3
1
vote
1 answer
Using a wait block to make agents wait until condition is true
I am using a wait block to make agents wait until a condition is true (a resource is idle). I have tried writing the following in the wait blocks "on enter" field:
if(resourcePool1.idle()> 0){ self.free(agent); }
The problem is that if the resource…

KrisG125
- 43
- 5
1
vote
0 answers
Combining a kinship matrix and pedigree data into a new kinship matrix
I am running a very large simulation, trying to simulate kinship of a constant size population of 500 along 50,000 iterations. In each iteration one individual dies and one is born.
The function PED of the package KINSHIP2 does the job easily for a…

Irith
- 11
- 1
1
vote
2 answers
R Simulation, For loop
I am solving a R-simulation qn, when the sum of the 2 dice == the round number (i.e. round 1, round 2...) then add 1 point to the player, else return 0 points. But I am unfamiliar with R for-loop. Appreciate if anyone could help!
Here is my rough…

ppotatomato
- 57
- 6
1
vote
0 answers
What is a good method to keep track all of the objects in OOP?
I am building a simulator and I have many classes in different Python files. Currently, I created a dictionary in one of my classes (Building class), and then I am calling it from other classes to update or use the information stored inside it. I am…

RookieScientist
- 314
- 2
- 12
1
vote
2 answers
Simulation of correlated categorical and continuous data
I want to simulate correlated categorical and continuous data. How to achieve that in R?
#For example, how to simulate the data in a way that these two variable are correlated?
x <- sample( LETTERS[1:4], 1000, replace=TRUE, prob=c(0.1, 0.2, 0.65,…

cliu
- 933
- 6
- 13