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 11-01-2010
Congshi Wang Congshi Wang is offline
Student
 
Join Date: May 2010
Location: Germany
Posts: 58
Downloads: 2
Uploads: 0
Thanks: 48
Thanked 0 Times in 0 Posts
Rep Power: 124
Congshi Wang is on a distinguished road
Default Blocked source

Does the blocked state of a source have any affects to the inter arrival time:

Example with an easy model:

source=>processor=>sink

the processor has a constant process time of 20min.

The source has a normal distributed inter arrival time with mean = 20min and sd = 10min.

If the source creates a flowitem 10min before the finish of the ongoing process, this flowitem is blocked (because no queue is buffering it).

But if the random stream generator wants to create the next flowitem just 5 min after (possible because of the sd of the inter arrival time), it even cannot be created because there is already one created flowitem in the source which is blocked (in a kind of "source queue" with a maxcontent of one flowitem).

What happens if the "source queue" releases the blocked flowitem after another 5min (recent process is finished, released flowitem starts new process)?

  • Will the inter arrival time to the next flowitem be calcutated from "zero" again, so that the next flowitem will be created after a "normal" calculated inter arrival time?
  • Or will the flowitem which was about to create (but couldn't) be created immediately?
  • Or will the flowitem which was about to create (but couldn't) be created after the "normal" inter arrival time calculated from "zero" minus the time it has been waiting for its "creation".
  • Or if a created flowitem is waiting in the "source-queue", only inter arrival times longer than the time to finish of the ongoing process are generated. In this example at which a flowitem is created 10min before the end of the ongoing process and waiting in the "source-queue" only a inter arrival times longer than 10min will be calculated. But another question: Will the inter arrival time be adjusted (more shorter inter arrival times than the distribution originally allows if possible) because of some of these inter arrival times with minimum length?
Thanks a lot!

Congshi Wang

Last edited by Congshi Wang; 11-01-2010 at 03:51 AM.
  #2  
Old 11-01-2010
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

Yes, it's only STATE_GENERATING time that counts towards inter-arrival time. You can't alter this by changing the state, the time is sampled on reset and when the the flow-item exits.

The impact will be that you don't actually get an independent arrival distribution if the source is blocked, so you'll need another buffer to accept the items.
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post:
shafizad (11-01-2010)
  #3  
Old 11-01-2010
Congshi Wang Congshi Wang is offline
Student
 
Join Date: May 2010
Location: Germany
Posts: 58
Downloads: 2
Uploads: 0
Thanks: 48
Thanked 0 Times in 0 Posts
Rep Power: 124
Congshi Wang is on a distinguished road
Default

Thanks! I hope I've understood it correctly:

If a created flowitem is waiting in the "source-queue" (because the source is blocked), the inter arrival time to the next flowitem generation must be longer than the time to the finish of the ongoing process to ensure to have a non-blocked source.
  #4  
Old 11-01-2010
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

No - I'd even speculate the opposite. To compensate for time in the blocked state, the inter-arrival time would need to be reduced to get back to the stated distribution.

The easiest way is to feed into a queue and then into your processor.
The Following User Says Thank You to Jason Lightfoot For This Useful Post:
Congshi Wang (11-02-2010)


Thread Thread Starter Forum Replies Last Post
Taskexecuter state "blocked"? Tom David Q&A 4 03-09-2012 12:56 PM
Interpreting Blocked % David Chan Q&A 3 01-28-2010 04:23 AM
Notify Upstream of Blocked Length ? zhang xin Q&A 1 11-02-2009 06:52 AM
block a source ? juan alberto Q&A 4 07-13-2009 02:50 AM
Photo-Eye Blocked or Not? Peter Widas Q&A 11 04-08-2008 06:26 PM


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.