Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Use this forum to post Vensim related questions.
Post Reply
Inthanongsone
Member
Posts: 34
Joined: Thu Jan 28, 2016 6:01 pm
Vensim version: DSS

Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by Inthanongsone »

Hello Folks,

I'm trying to make Monte Carlo Sensitivity analysis on venapp for the users in order for them to change the input value in the preset ranges.

I tried the following methods that I've read from the modules but It unfortunately didn't not work for me.
For example,
Discount rate(%) = 10
Gold price($/oz) = 1000

MODVAR, "Discount rate(%) MIN",
MODVAR, "Discount rate(%) MAX",
MODVAR, "Gold price($/oz) MIN",
MODVAR, "Gold price($/oz) MAX",
SLIDEVAR,""Vol MIN"",23,83,15,5,,,,
SLIDEVAR,""Vol MAX"",47,83,15,5,,,,
......
......
...... etc

When I run the venapp, the value didn't show up on the screen. I can't figure it out what the errors were. Could anyone help suggesting to fix this problem?

I appreciate any help. :)

Thank you so much.

Regards,
Inthan
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by Administrator »

Can you post the venapp and model? It's impossible to see what the error is without them.
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
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by tomfid »

Can we assume that you have variables named "Discount rate(%) MIN" etc.?
Inthanongsone
Member
Posts: 34
Joined: Thu Jan 28, 2016 6:01 pm
Vensim version: DSS

Re: Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by Inthanongsone »

Hi Admin, Hi Tom,

Thanks for your response.

Yes, I've all of these variables in the model and it's constant variable.

Sorry, I'm revising the model and I'll post it asap for your to check it out.

Regards,
Inthan
Inthanongsone
Member
Posts: 34
Joined: Thu Jan 28, 2016 6:01 pm
Vensim version: DSS

Re: Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by Inthanongsone »

Hi Tom,

I was confusing about the variable.
I've a variable named " Dicount rate (WACC, %)" then I put "MIN" or "MAX" at the quote to specified the min and max value for sensitivity analysis. For instance, " Dicount rate (WACC, %) MIN", for the minimum value, and Dicount rate (WACC, %) MAX", for the maximum value like if I use RANDOM UNIFORM (MIN, MAX) in Monte Carlo Sensitivity in Vensim.
Inthanongsone
Member
Posts: 34
Joined: Thu Jan 28, 2016 6:01 pm
Vensim version: DSS

Re: Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by Inthanongsone »

Here I've uploaded the models.

Could you please check it out for the errors.

Thank you so much.
Last edited by Inthanongsone on Fri Feb 03, 2017 6:05 pm, edited 1 time in total.
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by tomfid »

Appending MIN or MAX to the name isn't going to do anything, because there's no such syntax support in Vensim. You could, however, create explicit x_MIN and x_MAX variables and use those in your interface and random definitions, however.
Inthanongsone
Member
Posts: 34
Joined: Thu Jan 28, 2016 6:01 pm
Vensim version: DSS

Re: Set MIN/MAX Values for Monte Carlo Sensitivity in Venapp

Post by Inthanongsone »

Hi Tom,
Thank you very much for your suggestion.
I'll do so.

Best regards,
Inthan
Post Reply