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 Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 08-10-2015
Axel Kohonen
Guest
 
Posts: n/a
Downloads: 22
Uploads: 0
Default Default routing for released flowitems

Hi,

I have a very basic twofold question. I tried to look for an answer for it in the threads and in the user manual, but cannot find it clearly described so I thought I would ask it here. I think I have figured the answer out, but want to verify it to make sure.

The general questions are: If I have a downstream object, e.g. a processor, and 1 or 2 queues that contain released objects, what is the default order that the objects flow down to the processor? Are the flowitems released in the order they happen to be in the queue, in the order they were released, or possibly in some other order?

The two specific questions that I would want an answer to relate to the two attached models.

Model description:
The flowitem is given a numeric label “releaseTime” on creation which contains the time before which the item should be not released to the processor. Send to port of the queue is set to not release the item. At entry to the queue the time when the item should be released is calculated and the queue sends a message to itself to arrive at that time. When the queue receives the message it releases the item.

Specific questions:
  1. The model with 1 unsorted queue seems to show that the first flowitem to exit the queue is always the one that is first in the queue (FIFO) as long as the item has been released. The order the items have been released in does not matter. Is this correct? (Sorting the queue according to releasetime obviously makes the flowitems exit in the order of the releasetime then.)
  2. The model with 2 sorted queues seems to show that the processor always first takes all released objects from the queue connected to the first input port of the processor, no matter if there is an item with an earlier releasetime in the second queue. So as long as there are released items in the queue connected to the first input port of the processor they always get picked and no items flow to the processor through the seconds input port. Is this correct?
Thank you!

Kind regards,

Axel
Attached Files
File Type: fsm 1UnsortedTimedQueue-DefaultFlowOrder.fsm (19.7 KB, 346 views)
File Type: fsm 2SortedTimedQeues-DefaultFlowOrder.fsm (23.9 KB, 337 views)
  #2  
Old 08-18-2015
Axel Kohonen
Guest
 
Posts: n/a
Downloads: 22
Uploads: 0
Default

Hi all,

Sorry for initially posting this in the Tips and tricks section as it was a question. However, I got this clarified with Flexsim support. See Ben's answer below.

Quote:
Hi Axel,

1) Yes, you are correct. Look at the queue in the tree, then expand with the '+' button to see the flowitems inside.

The default order that flowitems appear in the tree is oldest item on top of list, with new items added to the bottom. You can use the queue's onEntry trigger to do sorting and change this ordering any way you wish (for instance by the releaseTime label, as you suggested).

When the downstream object tells the queue that it can accept a new flowitem, the queue loops through its list of flowitems from top to bottom (default FIFO), or from bottom to top (LIFO, if checked on properties page). The first item it finds that has been released will be sent downstream.

I have modified your first model to more easily see everything that is going on. Check out the tree view of the items in the queue to see what I mean. Model attached.

2) Yes, the processor notifies the upstream objects of its availability in the order of its ports. You could use pull logic on the processor to program finer-grained control of which flowitem the processor should accept next.

Thanks,

Ben Wilson
FlexSim Tech Support
The Following User Says Thank You to Axel Kohonen For This Useful Post:
Jing Chen (08-18-2015)

Tags
default flow, timed queue


Thread Thread Starter Forum Replies Last Post
Question on routing and time Jack Lai Q&A 11 02-20-2012 12:30 AM
routing items Private Q&A 12 05-13-2010 05:18 AM
HC Routing to two areas Kenny Macleod FlexSim HC: Q&A 2 02-26-2010 09:05 AM
default GUI error qin tian Q&A 1 11-19-2008 11:10 AM
Make this GUI the Default Ortho GUI jellyboy Q&A 1 03-13-2008 09:11 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.