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
|
|||
|
|||
Constant content of queue (or CONWIP)
Hi,
Here's a simplified model: Source->Queue->(UseTransport tasksequence)->Sink I would like the queue to contain at least 3 FlowItems (in order to keep busy 3 operators) Solutions, which may make the model very slow are the following: 1) Have a queue with a big number of FlowItems generated at time 0 - so it never runs out of FlowItems 2) Have a queue with capacity 3 and a source generating FlowItems with inter-arrival time 0 Is there a way to use a command like createinstance() to generate FlowItems, or can a source generate FlowItems "on command"? Thanks! |
#2
|
||||
|
||||
Hi Stefan,
i would take the queues OnExit-Trigger to check the content. If the content is underneath a certain level, i would use the insertcopy()-comand to refill the queue. Could this help? Greetings, FlorianK |
The Following User Says Thank You to FlorianK For This Useful Post: | ||
Stefan Trabut (05-04-2011) |
#3
|
|||
|
|||
Hi Florian,
Yes, it helps, thanks. What I've forgotten to say is that the FlowItems have labels (& itemtype) which are generated randomly. This is done in the OnCreation trigger of the Source until now. I would like the new FlowItems' labels to follow the same distribution rules as the created ones. I could displace the labels' setting to the OnEntry trigger of the Queue? |
#4
|
||||
|
||||
I would do the label and item setting right after the insertcopy() comand.
You can label the Items with the same randomnes there like you do it on the source. Futhermore I would create the Items directly in the Queue by using the OnExit-Trigger (see post before). Greetings, FlorianK |
The Following User Says Thank You to FlorianK For This Useful Post: | ||
Stefan Trabut (05-04-2011) |
Thread | Thread Starter | Forum | Replies | Last Post |
Content Variance | Congshi Wang | Q&A | 5 | 12-22-2010 06:25 AM |
Implementig Conwip Control | Congshi Wang | Q&A | 9 | 11-08-2010 10:09 AM |
Pulling from a Queue vs Sorting the Queue | Brandon Peterson | Tips and Tricks | 3 | 03-03-2010 01:27 AM |
Starting content in the Queue | Bartosz Misiurek | Q&A | 4 | 10-04-2009 02:25 PM |
How to get interval average,max,etc of a queue content ? | qin tian | Q&A | 5 | 02-14-2008 10:11 PM |