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
Reviewing Monte Carlo output in Graphs
-
- Junior Member
- Posts: 10
- Joined: Wed Feb 22, 2012 4:42 pm
Re: Reviewing Monte Carlo output in Graphs
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.
/*
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
*/
-
- Junior Member
- Posts: 10
- Joined: Wed Feb 22, 2012 4:42 pm
Re: Reviewing Monte Carlo output in Graphs
Thanks Tom will try this later thanks
-
- Junior Member
- Posts: 10
- Joined: Wed Feb 22, 2012 4:42 pm
Re: Reviewing Monte Carlo output in Graphs
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],"",
!
: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],"",
!
Re: Reviewing Monte Carlo output in Graphs
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.
/*
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
*/