ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Healthcare (HC) > FlexSim HC: Q&A
Downloads

FlexSim HC: Q&A Questions about FlexSim Healthcare

  #1  
Old 11-06-2015
Kelvin Heide
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default 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.
Attached Thumbnails
Click image for larger version
Name:	Percentageverdeling.png
Views:	489
Size:	20.3 KB
ID:	3086  
  #2  
Old 11-06-2015
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

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.
  #3  
Old 11-06-2015
Kelvin Heide
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default

Hello Steven,

About 10.000 patients everytime I run the model.
So I think that is not the problem.
  #4  
Old 11-06-2015
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

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));
to:
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)
  #5  
Old 11-09-2015
Kelvin Heide
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Thumbs up

Thanks Phil BoBo, this works great!


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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.