Questions tagged [systemdynamics]
38 questions
1
vote
2 answers
Ifelse statement inside deSolve not working
I want to create a Dynamic model of butterfly ecology using deSolve. the simulation runs over several simulation years and some events are triggered by the day of the year (so I added one state variable of days ). in order to trigger those events I…

Rodrigo Solis
- 11
- 3
1
vote
1 answer
IF THEN ELSE nested statement system dynamics command in NetLogo
I have variables in system dynamic in NetLogo and I am trying a nested if else as follows
Md * (( ifelse n_porg = 0 [ 0 ] [ ifelse ( ( SDIa * Total_norg ) / n_porg ) > 1
[ 1 ] [ ( SDIa * Total_norg ) / n_porg ] ] ) / delay )
I am getting…

lubida1
- 49
- 3
0
votes
1 answer
Dynamic colors for flow elements in AnyLogic?
I would like for the flows (and also stocks) within my system dynamics model to change color on the basis of certain thresholds being crossed. Is this possible?
Based on this response (How to change the color of rectangular node based on number of…

Alex
- 33
- 4
0
votes
0 answers
How to simulate wind speed in AnyLogic?
I have created a Wind Farm using this tutorial. Now I want to simulate the wind speed and simulate the turbine is going off due to heavy wind. I found this research paper which describes about the components of the wind simulator and the logic…

Randi
- 639
- 2
- 6
- 23
0
votes
1 answer
Problems with the accuracy of values in System dynamics with multiple agents
I have the problem that in my system Dynamics the genaugikeit of the values are not correct. I have several agents built in.
In the following figure you can see a flow and a stack. The flow is based on a table with values. For each hour in the…
0
votes
0 answers
Possible function that makes a value in a variable wait a specified amount of time each time a condition becomes true
With the delay function in Anylogic, is there a way to not take the delay time from the start of the simulation, but from the point at which the delay is "triggered"?
Picture of my SystemDyamics System
My code:
complexity <= 2 ?
(stressresponse +…

Nico
- 5
- 3
0
votes
0 answers
Problems running BPTK-Py
I am trying to run the systems dynamics package BPTK-Py.
I am able to download it successfully and when I do list in the terminal it does show up as installed under the name BPTK-Py.
But when I try to run
from BPTK-Py import Model
from BPTK-Py …

TropicalByron2
- 13
- 3
0
votes
1 answer
Table Data input from excel to system dynamics stock in Anylogic
I have a 2 column table data on excel for energy consumption (representing consumption per month). I want to input that data to a stock representing the consumption of the SME in my system dynamics model on AnyLogic. I used the table function to do…

Hussien Alkadri
- 1
- 1
0
votes
1 answer
SEIR infection charts going up and down
I have a problem constructing my SEIR model for system dynamics.
I want to create an infectious character chart that goes up, down and up again.
How do I go about creating it, the current one that I simulated goes up the down meaning that the virus…
0
votes
1 answer
AnyLogic variable for cumulative sum in system dynamics
Good morning, in a System Dynamics model created on AnyLogic, I would like to compute the cumulative sum of a flow of the previous 7 days.
My purpose is to calculate the reproduction ratio of a disease starting from the infectious population at time…
0
votes
1 answer
Generic modeling of an energy supply chain with Anylogic
I have been working with Anylogic for about 6 months now and my goal is to model a generic energy supply chain for an energy demand (e.g. storm and heat for a house). As a result I want to evaluate how suitable the components in the energy supply…

Immi1990
- 17
- 3
0
votes
1 answer
Anylogic: fixed production cost with system dynamics
I would like to formalise this problem with system dynamics: I have a stock of raw materials and one of finished goods, among them I have a production flow that has a certain value (e.g 1000 units per day). My goal is to calculate the manufacturing…

Jack
- 7
- 2
0
votes
1 answer
Anylogic: how to calculate the cumulative sum?
I would like to know how to calculate the cumulative sum in Anylogic. Specifically, I have a cyclic event that changes the value of a parameter every week. From this parameter I would like to calculate the cumulative sum of the values it received,…

Jack
- 7
- 2
0
votes
1 answer
How the calculation works on anylogic?
i’m currently working on project using anylogic. I’m making a system dynamic to modelling a SIR model. and I make a manual calculation of each stock in excel (using euler method) , but the results in excel are different from the result in anylogic.…

Lalayeye
- 3
- 2
0
votes
1 answer
Flexibly change simulation duration in Anylogic
I have a system dynamics model with only one agent. I can set the duration of the simulation, one example value would be 120 months for my case. What do I do if I would like to experiment with different durations, like 24 or 240 months? Changing it…

gingergenius
- 35
- 5