Reviewing Monte Carlo output in Graphs

Use this forum to post Vensim related questions.
Post Reply
emcgeachie
Junior Member
Posts: 10
Joined: Wed Feb 22, 2012 4:42 pm

Reviewing Monte Carlo output in Graphs

Post by emcgeachie »

Hi there,
I have adapted one of your standard Venapp's and have been working on doing a sensitivity - monte carlo analysis on it. I have the model setup to run from 0 wks to 13wks. I have the sensitivity graph setup and it works great. I then thought how do I show the distribution of failures I get and how frequently do they occur. So I used a bar graph - with sensitivity added in. So I set the Bar Graph Toolset to pick up the sensitivity at the last week = 13. I have set the sensitivity to 20000 runs and I get a lovely chart showing the distribution for wk 13. This got me thinking can you advise how can I make the week number variable so that I can move the lever and to say week 10 and view the distrubition for week 10, right now I cant find a way forward.

Thanks
tomfid
Administrator
Posts: 4000
Joined: Wed May 24, 2006 4:54 am

Re: Reviewing Monte Carlo output in Graphs

Post by tomfid »

You can set the bar graph tool to display at Special Time rather than End of the simulation. Then you can modify the time with TIMEAXIS>SPECIALTIME.
emcgeachie
Junior Member
Posts: 10
Joined: Wed Feb 22, 2012 4:42 pm

Re: Reviewing Monte Carlo output in Graphs

Post by emcgeachie »

Thanks Tom will try this later thanks
emcgeachie
Junior Member
Posts: 10
Joined: Wed Feb 22, 2012 4:42 pm

Re: Reviewing Monte Carlo output in Graphs

Post by emcgeachie »

hi Tom tried this code but I cant get it to go. Looks like I cant get it to determine the weekno can u please help thanks

:SCREEN What
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,0
RECTANGLE,"",27,14,0,0,,,,
TEXTONLY,"What if analysis - Supply Planning Test ",-11,3,100,0,C|Times New Roman|20|B|0-64-128,0,,
!"",27,5,0,0,,,,
COMMAND,"",0,0,0,0,,,SPECIAL>SETWBITEM|Shortage
BUTTON,"Start Synthesim",10,3,16,9,C,,"MENU>SYNTHESIM|o",
TOOL,"Shortage",16,25,52,62,,,WORKBENCH>Bar Graph&TIMEAXIS>SPECIALTIME|weekno,
BUTTON,"Save Scenario",88,89,15,6,C,,"SPECIAL>STOPSIM|S",
SLIDEVAR,"weekno",75,30,7,5,,[0|13|1],"",
!
tomfid
Administrator
Posts: 4000
Joined: Wed May 24, 2006 4:54 am

Re: Reviewing Monte Carlo output in Graphs

Post by tomfid »

I think you need to do something to trigger a screen refresh when the weekno slider gets moved; otherwise the special time update won't happen. I'm not sure that adding a command or screen redirect (to the same screen) will work with the slidevar, so you might have to change to a button or something. Tony might have more insight.
Post Reply