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
|
|||
|
|||
Destination based on percentages
I am trying to use the patient destination based on percentages but something seems to go wrong.
I've put my distribution in the attachment. When I use this distribution the patients will not go to "ok" and "polikliniek". Why isn't this working? PS. The flowchart isn't the problem. |
#2
|
||||
|
||||
Hello Kelvin,
How many patients do arrive? I'm asking because the % for the ok and the polikliniek are very small. On average you need more then 100 people to have 1 person going there and with randomness it can even be that it takes over 300 people before the first one goes there. |
#4
|
||||
|
||||
This looks like a bug in the pick option. Open the Code Window for the pick option and remove the trunc() call from line 21:
Change: Code:
double randomnum = trunc(uniform(0.0, 100.0, stream)); Code:
double randomnum = (uniform(0.0, 100.0, stream)); |
The Following User Says Thank You to Phil BoBo For This Useful Post: | ||
Kelvin Heide (11-09-2015) |
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple Entrance and specify destination for each one | PeiranQuan | FlexSim HC: Q&A | 3 | 09-29-2014 11:02 PM |
Getting Information about destination of a TaskExecuter | Patrick Frank | Q&A | 4 | 07-15-2013 04:49 AM |
Task Exec - pick up object without destination? | JMEngelhart | Q&A | 2 | 05-03-2010 06:38 AM |
Frame Animation based on Time | Shanon Loughton | Q&A | 4 | 04-06-2009 09:57 AM |
How to queue transporters at destination? | Shanon Loughton | Q&A | 1 | 03-31-2009 02:05 AM |