ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Dashboard & Experiment Questions
Good morning - I have a few questions here:
Robert |
#2
|
|||
|
|||
Quote:
Thanks, Robert |
#3
|
||||
|
||||
first workaround: use a table to collect your data and present this at a visual tool.
If you insist to use the dashboard, have a look at commands to manipulate the bundle data type. An Example at. Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
Carsten Seehafer (08-29-2013) |
#4
|
||||
|
||||
Another option is to start your simulation at 0:00 with the first events at 8:00. Add a user event at 0.001 with this code inside:
Code:
step(); Last edited by Carsten Seehafer; 08-29-2013 at 07:06 AM. |
The Following User Says Thank You to Carsten Seehafer For This Useful Post: | ||
Jörg Vogel (08-29-2013) |
#5
|
||||
|
||||
Quote:
Change the label value in your experimenter scenarios. Jörg |
#6
|
||||
|
||||
When running experiments, I think the most appropriate dashboard chart type is the box plot because it gives you distributed statistics over a user-specified period of time during the run and across multiple replications, but for a single scenario. The example I just posted here is a good example taken from an original post by AJ regarding the use of dashboards in an experiment.
Here's a screen capture showing box plot statistics for the length of stay of PCI 1 type patients for the scenario named "6-2-2" just during the daytime hours of 08:00 to 18:00. Did you know you can change the time scale of the line graph with the scroll bar at the bottom of the line graph widget? There are three adjustments that can be made with the scroll bar using your mouse. Drag the left end of the bar to adjust the earliest time displayed in the graph window, drag the right end to adjust the latest time displayed in the graph window, and drag somewhere in the middle of the bar to slide the graph window left or right. Here is an example of a line graph displaying staff utilization in a model where the staff don't really do anything until about 6am. Here's a screen shot after I dragged the left end of the scroll bar to the right. As for changing an activity's process time during an experiment, there are a couple options. One option Jörg described above is to use a label to hold the numeric value for the process time, and then simply reference the label value within the process time field itself with getlablenum() command. Take not that in Jörg's explanation, he had the might have been the process time of an Item Processing object in mind rather than the process time of a patient's activity, so you would need to adapt the references accordingly (i.e. patient rather than current). Also note that his example assumes you are changing a constant numeric value for the process time. If you want to experiment with stochastic process times using different distributions for different scenarios, then you need an approach that will let you modify and execute distributions on the fly. You could still a label or a global table to store the process time, but it would need to be a label/table that stores text strings rather than numbers, AND you would need to execute the string to get a number out of it. There happens to be a picklist option called "Based on global table lookup" that lets you specify whether it should return a number from the table, or execute the string it looks up out of the table as an expression. Having said that, I would suggest you simply use the experiment variable type called "Track Activity Parameter" as shown here: Then simply select the particular track activity and parameter (i.e. ProcessTime) you want to change as shown here: Then type in the distributions you want to use for your scenarios as I did in the "Scenario 1" and "Scanario 2" columns of experiment in my example as shown in both screen captures above. Good luck, Cliff |
The Following User Says Thank You to Cliff King For This Useful Post: | ||
Jorge Toucet (08-29-2013) |
Tags |
custom code, dashboard, experiment, line graph, scenario |
Thread | Thread Starter | Forum | Replies | Last Post |
Dashboard and Experimenter | Lucie Lerivrey | Q&A | 7 | 10-03-2013 09:45 AM |
dashboard error? | zhang xin | Q&A | 3 | 03-07-2013 06:19 PM |
Dashboard can't display anything... | syseo | Q&A | 6 | 08-31-2012 01:47 AM |
Why can persons come back original position in experiment model ? | Dane Lee | Q&A | 3 | 07-30-2009 08:03 PM |
the Maxium number of Experiment variables | Vic Li | Q&A | 0 | 02-18-2009 03:47 AM |