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 > Tips and Tricks
Downloads

Tips and Tricks Share helpful modeling ideas

  #1  
Old 08-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 First Interval Distributions

Often you'll have time between failure samples or other inter-arrival times, but are left wondering at the start of the simulation what the time to the first of these should be. This user command generates another set of samples that you can fit (using eg. Expertfit) and then enter as the 'First Interval' distribution that you see on the MTBF dialog or use elsewhere as appropriate. It takes about 10 seconds to create a sample of 100,000 from a population of 1 million. Load the library to auto install the command:


generateFirstIntervalSamples(str expression,num samplesize, num populationsize,obj targetnode)

Description: For time-based distributions of arrival or failure intervals, this creates a set of values for subsequent fitting that reflect the initial times to the first arrival or failure. This is useful if the distribution is not exponential (or special cases of gamma/erlang and weibull where the shape value makes them exponential) , and you want to start the model with valid first intervals. Exponential distributions do no need this as they are memoryless (try it and you'll see the first interval samples fit the same distribution you entered).

Write your distribution as a string expression and specify how many samples you would like and the population size it should use (to create a base timeline in which to sample). Pass in a node where the function will create a table and place the sample.

Export the values to ExpertFit and fit the sample to determine a good estimate of the FirstInterval field for MTBF and other interval base time fields.


Example:
Code:
generateFirstIntervalSamples("gamma(20,3000,1.8)",10000,1000000,reftable("Sample"));
...places the first interval samples of the gamma(20,3000,1.8) distribution in a column in the global table called "Sample".
Attached Files
File Type: zip FirstInterval.zip (1.3 KB, 189 views)
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post:
Tom David (08-01-2010)


Thread Thread Starter Forum Replies Last Post
Distributions in Flexsim michaelsmith Q&A 1 06-16-2010 06:44 AM
I want Recorder to collect interval statistics qin tian Gripes and Goodies 13 03-03-2008 06:43 PM
How to get interval average,max,etc of a queue content ? qin tian Q&A 5 02-14-2008 10:11 PM
Explanation of empirical, cempirical and dempirical distributions Cliff King Q&A 0 01-04-2008 12:12 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.