Dear members,
I have constructed a model to predict the water shortage rate and used simultaneous equations to study the effects of different regulatory policies on the water shortage rate. This control was achieved by setting f to a value within [0, 1]. An error "Unable to converge simultaneous loop at time T" (not all the time) occurred when I assumed that f1 =0.7, f2 =f3=0.
Unable to converge simultaneous loop at time
Unable to converge simultaneous loop at time
- Attachments
-
- T(}[UEMP1_Z99P(S)68S`FF.png (44.88 KiB) Viewed 3480 times
-
- 1(J%IS8HLVV1U@ND3UPCN1U.png (86.13 KiB) Viewed 3480 times
-
- Simultaneous equation of water shortage rate
- AIA_OLDO`~LMQ(I4V)PF_%S.png (15.24 KiB) Viewed 3480 times
-
- Super Administrator
- Posts: 4573
- Joined: Wed Mar 05, 2003 3:10 am
Re: Unable to converge simultaneous loop at time
I don't get an error using the latest version of Vensim.
But are you sure you should be using the SIMULTANEOUS function? There has to be a delay between a shortage and any kind of adjustment to capacity.
You might also want to add units to the model. It's impossible for me to know what the model is actually calculating (eg, what is fish pond area measured in, is it m2 or km2 or something else?). It's also bad practice to embed constants in your equations (eg, what is "0.00748269" in the "water shortage rate"?).
But are you sure you should be using the SIMULTANEOUS function? There has to be a delay between a shortage and any kind of adjustment to capacity.
You might also want to add units to the model. It's impossible for me to know what the model is actually calculating (eg, what is fish pond area measured in, is it m2 or km2 or something else?). It's also bad practice to embed constants in your equations (eg, what is "0.00748269" in the "water shortage rate"?).
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Unable to converge simultaneous loop at time
Thank you for your reply.
I took into account the information transmission as "water shortage rate -> feedback rate a -> policies determining water demand and supply -> new water supply and water demand - water shortage rate after regulation". Water shortage rate was included in this cycle, so the simultaneous equation was used. And 0.00748269 was the predicted water shortage rate without policy regulation. The unit issue will be modified in the formal model.
"There has to be a delay between a shortage and any kind of adjustment to capacity." Are you saying that I should use delay functions instead of simultaneous equations?
Thanks and regards.
I took into account the information transmission as "water shortage rate -> feedback rate a -> policies determining water demand and supply -> new water supply and water demand - water shortage rate after regulation". Water shortage rate was included in this cycle, so the simultaneous equation was used. And 0.00748269 was the predicted water shortage rate without policy regulation. The unit issue will be modified in the formal model.
"There has to be a delay between a shortage and any kind of adjustment to capacity." Are you saying that I should use delay functions instead of simultaneous equations?
Thanks and regards.
-
- Super Administrator
- Posts: 4573
- Joined: Wed Mar 05, 2003 3:10 am
Re: Unable to converge simultaneous loop at time
This implies that a change in water shortage gives an immediate change in policy. Is that correct? I'm sure there should be a delay in there somewhere.Kira Zhou wrote: ↑Mon Jun 15, 2020 8:34 amI took into account the information transmission as "water shortage rate -> feedback rate a -> policies determining water demand and supply -> new water supply and water demand - water shortage rate after regulation". Water shortage rate was included in this cycle, so the simultaneous equation was used. And 0.00748269 was the predicted water shortage rate without policy regulation. The unit issue will be modified in the formal model.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Unable to converge simultaneous loop at time
Yes, in theory there should be delays! Your comments are very relevant, and I will further improve the model according to this idea.
Re: Unable to converge simultaneous loop at time
Another issue here seems to be that supply and demand are completely insensitive to the water shortage index. For example, a1 is constant as parameterized.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Unable to converge simultaneous loop at time
Dear administrator, I hope to delete all posts under this topic due to the need of confidentiality, but I do not have permission. Could you please help me?
Re: Unable to converge simultaneous loop at time
I deleted the post with the model. The rest is useful for others, if OK to leave it. If not, let us know.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/