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
|
|||
|
|||
offset patient from the path
Hi
I would like the patients to travel on the path with certain amount of random offset, so that different patient has different offset from the path. How can I do it? I can't use the distance offset on the node as it will offset all patients to the same distance. Thanks David
__________________
Advent2 Labs David |
#2
|
||||
|
||||
Hi david,
Try giving different acceleration and speed to patients Edit:Sorry misunderstood the question Last edited by sagar bolisetti; 05-16-2014 at 09:55 PM. |
#3
|
||||
|
||||
Hi david,
I do not know HC.But i read that modelers use patients in conjunction with flowitems in HC.I do not know that this idea works or not Try using this code setvarnum(current,"prodxoffset",3); for x direction setvarnum(current,"prodyoffset",4); for y direction and give different offset values to different patients.Note that this code is used only for flowitems not for moving resources because the label prodxoffset are intended for flow items only. Last edited by sagar bolisetti; 05-16-2014 at 10:41 PM. |
The Following 2 Users Say Thank You to sagar bolisetti For This Useful Post: | ||
Jörg Vogel (05-16-2014) |
#5
|
||||
|
||||
David,
the network nodes have a variable "sideoffset" which you can change for every single traveler OnArrival. Best wishes Ralf FlexSim |
The Following User Says Thank You to RalfGruber For This Useful Post: | ||
sagar bolisetti (05-27-2014) |
#6
|
||||
|
||||
Hi David,
If you want to sideoffset for all networknodes in a model copy this code in a script window and will be executed.It will change the sideoffset value of all network nodes in a model to a range of offset distance between 2 and 5 Code:
treenode nnobj = node("/travelnetworks/NetworkNode", library()); double offset = duniform(2,5); int index; forobjecttreeunder(model()) { if(objectexists(classobject(a)) && classobject(a) == nnobj) setvarnum(a, "sideoffset", offset); } Last edited by sagar bolisetti; 05-28-2014 at 03:50 AM. Reason: Fixed error |
#8
|
||||
|
||||
The NetworkNode is not direct under the library anymore but under a sub node in the library tree.
So changing the first line to: treenode nnobj = node("/travelnetworks/NetworkNode", library()); Should do the trick. (I haven't tested it!) |
The Following User Says Thank You to Steven Hamoen For This Useful Post: | ||
sagar bolisetti (05-28-2014) |
Thread | Thread Starter | Forum | Replies | Last Post |
Modeling a resource gets utilized where the patient continues with its track | Peter Wolf | FlexSim HC: Q&A | 1 | 02-20-2014 12:16 PM |
Patients and Flowitems - using medical records to control patient flow | Lou Keller | FlexSim HC: Tips & Techniques | 0 | 12-24-2013 03:41 PM |
how to set the patient arriving patten for emergency department | hu xiaoling | FlexSim HC: Q&A | 0 | 06-17-2013 09:49 PM |
Moving item into patient | David Chan | FlexSim HC: Q&A | 6 | 06-15-2010 08:35 AM |
How to create probability functions in patient tracks? | Lionel Lim | FlexSim HC: Q&A | 9 | 11-20-2009 03:29 PM |