CIN Files and Sensitivity Analysis
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
CIN Files and Sensitivity Analysis
If a model throws overflow errors during sensitivity analysis, does Vensim generate CIN files for the set of parameters responsible for the overflow?
-
- Super Administrator
- Posts: 4826
- Joined: Wed Mar 05, 2003 3:10 am
Re: CIN Files and Sensitivity Analysis
No. I could add that in easily enough though (so will ticket it so it gets done).
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
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
Re: CIN Files and Sensitivity Analysis
Thank you so much for your quick response! It's good to know, and it would be great to have it in the future versions. Thanks again.
Do you or anyone have any suggestions on how to find the problematic parameter settings?
Thanks a lot!
Do you or anyone have any suggestions on how to find the problematic parameter settings?
Thanks a lot!
Re: CIN Files and Sensitivity Analysis
I think if you export the results at final time only, you'll find rows that have parameters but not variable values.
/*
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
*/
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
Re: CIN Files and Sensitivity Analysis
Thanks a lot, Tom! This is a great suggestion. I guess I can write a script to look for those variables that don't have any data and extract the parameters in a CIN like style so that I can explore the error. Thanks again!
Re: CIN Files and Sensitivity Analysis
Hopefully my "think" is correct. In any case we can add it quickly. If you're stumped, and need an immediate result, we could take a look in the debugger.
/*
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
*/
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
Re: CIN Files and Sensitivity Analysis
Thank you so much, Tom. I already had a code and just updated it further (with the help of one of these LLMs) to save the cin files. The core idea was the one you mentioned, which is keeping track of variables that don't have data at the final point of the time.
I'm sharing the code in case anyone wants to use it. The data should be printed with time going down (like the screenshot attached). Also, the model had 5 variables of interest in the save list file.
I'm sharing the code in case anyone wants to use it. The data should be printed with time going down (like the screenshot attached). Also, the model had 5 variables of interest in the save list file.
- Attachments
-
- Printing Interesting True Params v02.py.zip
- (2.58 KiB) Downloaded 119 times
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
Re: CIN Files and Sensitivity Analysis
It also exports all CIN files separately.