sensitivity analysis (vensim)
sensitivity analysis (vensim)
Hi, guys
I have this difficulty.
I am using the vensim DSS, and I plan to do sensitivity analysis. I can do this in the Monte Carlo function, but when I try generate the graph, I can not, that is, the sensitivity analysis button in the vensim does not appear.
What can it be?
Best regards,
I have this difficulty.
I am using the vensim DSS, and I plan to do sensitivity analysis. I can do this in the Monte Carlo function, but when I try generate the graph, I can not, that is, the sensitivity analysis button in the vensim does not appear.
What can it be?
Best regards,
 Attachments

 screenshot.424.jpg (9.04 KiB) Viewed 1459 times
Re: sensitivity analysis (vensim)
Try loading a new Analysis Toolset?
/*
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
*/

 Super Administrator
 Posts: 3422
 Joined: Wed Mar 05, 2003 3:10 am
Re: sensitivity analysis (vensim)
Click Tools>Analysis Toolset>Modify.
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/magazine27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
Re: sensitivity analysis (vensim)
Or just Tools>Analysis>New to reload a new copy of the toolset.
/*
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: sensitivity analysis (vensim)
Thanks, guys!
However, I have another problem. The graphs of the sensitivity analysis were different and did not appear those indicators of sensitivity 50%, 57%, 95% and 100%.
I have annexed!
What do you think?
However, I have another problem. The graphs of the sensitivity analysis were different and did not appear those indicators of sensitivity 50%, 57%, 95% and 100%.
I have annexed!
What do you think?
 Attachments

 screenshot.425.jpg (35.61 KiB) Viewed 1444 times

 screenshot.426.jpg (37.14 KiB) Viewed 1444 times
Re: sensitivity analysis (vensim)
Rightclick the sensitivity graph tool and change the options to show confidence bounds rather than individual traces.
From your second graph, it looks like the range of behavior is very narrow.
From your second graph, it looks like the range of behavior is very narrow.
/*
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: sensitivity analysis (vensim)
I simulate my parameters, but in all graphs the intervals are constant.
Estranged!
Estranged!
 Attachments

 screenshot.427.jpg (35.76 KiB) Viewed 1441 times
Re: sensitivity analysis (vensim)
What is shown on this plot? If it's a parameter, it will be constant.
/*
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: sensitivity analysis (vensim)
Try the samples in the help system: http://vensim.com/documentation/usr15.htm
/*
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: sensitivity analysis (vensim)
Thank you for your help!
Re: sensitivity analysis (vensim)
Hi,
I have two questions regarding sensitivity analysis and stochastic programming in Vensim:
1 Can we do these sentivity analysis in a model which has external function? I am asking this becasue I get this errors:
{ERROR: Yearly Depreciation Factor not found or wrong type must be constant.
ERROR: No sensitivity inputs marked in sensitivity file}
2 I have a largescale model for electricity market, which minimizes the total system cost (I have an external function for this minimization function). I want to include uncertainty in the model and consider some parameters (assume fuel price) uncertain in order to model the system stochastically. I was wondering how could I solve my problem stochastically (if its possible) with facilities of Vensim like Payoff definition or Optimization options when I have some external functions as well?
Best Regards
I have two questions regarding sensitivity analysis and stochastic programming in Vensim:
1 Can we do these sentivity analysis in a model which has external function? I am asking this becasue I get this errors:
{ERROR: Yearly Depreciation Factor not found or wrong type must be constant.
ERROR: No sensitivity inputs marked in sensitivity file}
2 I have a largescale model for electricity market, which minimizes the total system cost (I have an external function for this minimization function). I want to include uncertainty in the model and consider some parameters (assume fuel price) uncertain in order to model the system stochastically. I was wondering how could I solve my problem stochastically (if its possible) with facilities of Vensim like Payoff definition or Optimization options when I have some external functions as well?
Best Regards

 Super Administrator
 Posts: 3422
 Joined: Wed Mar 05, 2003 3:10 am
Re: sensitivity analysis (vensim)
These errors are nothing to do with external functions. I'd suggest looking in the help system first and trying the example there before trying it on your own 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/magazine27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
Re: sensitivity analysis (vensim)
Sounds like your control file (.vsc) specifies a variable that doesn't exist or isn't constant.
/*
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: sensitivity analysis (vensim)
I did it with a sample model W/O external function and it was okay, that's why I was wondering can external functions cause any failure for sensitivity analysis?Administrator wrote: ↑Tue Sep 17, 2019 4:56 pmThese errors are nothing to do with external functions. I'd suggest looking in the help system first and trying the example there before trying it on your own model.
Re: sensitivity analysis (vensim)
I think the second error is a consequence of the first. It's not finding Yearly Depreciation Factor, and therefore not adding it as an input. Are there other parameters in the vsc?
Does Yearly Depreciation Factor have an array dimension? It's not set to "Initial" type by accident?
Does Yearly Depreciation Factor have an array dimension? It's not set to "Initial" type by accident?
/*
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: sensitivity analysis (vensim)
I think the "wrong type" error only occurs if a variable is not a constant (the "not found" is misleading). Most likely causes are setting the constant subtype to unchangeable (with ==), setting the type to initial(), or simply specifying a nonnumeric expression for the variable, like x*y or 3/4.
/*
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: sensitivity analysis (vensim)
I found it. The reason was that the variable had subscripts. So I used another variable W/O subscripts and it worked well.
Can I ask you how can I do sensivity analysis for variables with subscripts and variables with array dimension?
Can I ask you how can I do sensivity analysis for variables with subscripts and variables with array dimension?
Re: sensitivity analysis (vensim)
I solved it too. I should have just included subscripts in the .vsc file.
Re: sensitivity analysis (vensim)
I have a largescale model that its simulation time is 7 hours (I am using compiler as well). From computational points of view, is it possible to do a Monte carlo simulation on it? Is there any linear relation between "number of simulation" in Monte carlo tab and "time of simulation" in vensim?

 Super Administrator
 Posts: 3422
 Joined: Wed Mar 05, 2003 3:10 am
Re: sensitivity analysis (vensim)
You can run montecarlo, but it will probably take you years to run it if a single run takes 7 hours. Each montecarlo simulation will take 7 hours.
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/magazine27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
Re: sensitivity analysis (vensim)
Thanks. Do you have any suggestion for modeling uncertainty in such models which take very long in Vensim? Is there any sample model for simulating uncertainty with feedbackloops in Vensim itself?Administrator wrote: ↑Thu Oct 03, 2019 4:09 pmYou can run montecarlo, but it will probably take you years to run it if a single run takes 7 hours. Each montecarlo simulation will take 7 hours.
Re: sensitivity analysis (vensim)
There's a little advice on speed here: https://metasd.com/2011/01/optimizingvensimmodels/
One item that's not mentioned there is that restricting the savelist helps.
We have an experimental version that does parallel multicore execution, which would reduce your simulation time by a factor of the number of cores you have (I have a server with 60, so it does in a minute what normally takes an hour). We could explore that option, though memory might be a problem. Still, doing 1000 or 1000000 runs would be a little daunting.
One item that's not mentioned there is that restricting the savelist helps.
We have an experimental version that does parallel multicore execution, which would reduce your simulation time by a factor of the number of cores you have (I have a server with 60, so it does in a minute what normally takes an hour). We could explore that option, though memory might be a problem. Still, doing 1000 or 1000000 runs would be a little daunting.
/*
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: sensitivity analysis (vensim)
Great. Have you released that version or is it possible to have it in the near future? Using such version can speed up simulation of largescale model noticeably.tomfid wrote: ↑Fri Oct 04, 2019 3:23 pm
We have an experimental version that does parallel multicore execution, which would reduce your simulation time by a factor of the number of cores you have (I have a server with 60, so it does in a minute what normally takes an hour). We could explore that option, though memory might be a problem. Still, doing 1000 or 1000000 runs would be a little daunting.