Hello,
I am relatively new to System Dynamics and I am currently working on a project for my school in the Netherlands about a nice subject, cocaine use in the Netherlands
However after inputting all the equations and fixing problems with simultaneous equations I get a new one- a fix floating point error, I really don't understand why this is happening and how to fix it, especially that I believe that my model is quite correct...
Division by zero is the cause. "Cocaine stock" is zero, causing the floating point problem in "Cocaine Price".
You probably want to use the ZIDZ function. I'd also try and remove "demand for cocaine/cocaine stock*(INITIAL PRICE*(1+CONTAINERS SCAN RATE+SUCCESSFUL DRUG SEARCHES RATE))" into a separate equation, nesting equations makes debugging difficult.