Presentation on theme: "Eastern Mediterranean University Department of Industrial Engineering IENG461 Modeling and Simulation Systems Computer Lab 2 nd session ARENA (Input Analysis)"— Presentation transcript:
Eastern Mediterranean University Department of Industrial Engineering IENG461 Modeling and Simulation Systems Computer Lab 2 nd session ARENA (Input Analysis) Prepared by: Sam Mosallaeipour
DATA COLLECTIN ACTIVITIES Consider modeling a painting workstation where jobs arrive at random, wait in a buffer until the sprayer is available, and having been sprayed, leave the workstation. Suppose that the spray nozzle can get clogged— an event that results a stoppage during which the nozzle is cleaned replaced. in or
SIMULATION MODELING Suppose that you are asked to simulate this painting workstation. List the required data to estimate the expected job delay in the buffer for this simple system
DATA COLLECTION Collection of job interarrival times. – Clock times are recorded on job arrivals and consecutive differences are computed to form the requisite sequence of job interarrival times. If jobs arrive in batches, then the batch sizes per arrival event need to be recorded too. If jobs have sufficiently different arrival characteristics (depending on their type), then the analyst should partition the total arrival stream into substreams of different types, and data collection (of interarrival times and batch sizes) should be carried out separately for each type. – –
DATA COLLECTION Collection of painting times. – The processing time is the time it takes to spray a job. Since nozzle cleaning or replacement is modeled separately (see later), the painting time should exclude any downtime.
DATA COLLECTION Collection of times between nozzle clogging. – This random process is also known as time to failure. Observe that the nozzle clogging process takes place only during painting periods, and is suspended while the system is idle. Thus, the observations of the effective time to failure should be computed as the time interval between two successive nozzle cloggings minus the total idle time in that interval (if any). –
DATA COLLECTION Collection of nozzle cleaning/replacement times. – This random process is also known as downtime or repair time. – Observations should be computed as the time interval from failure (stoppage) onset to the time the cleaning/replacement operation is complete.
DATA COLLECTION Suppose we collected the following sample data for repair times (nozzle cleaning/replacement times for painting station given above) and recorded them in a file named as “repair.txt”:
CHI-SQUARE TEST for Uniform Distribution (Repair Data) Cell numberCell Interval# of ObservationsRelative Frequency Theoretical Probability Why ? 1 2 3 4 5 6 7 8 9 10 [10,12) [12,14) [14,16) [16,18) [18,20) [20,22) [22,24) [24,26) [26,28) [28,30) 139891281310108139891281310108 0.130.090.080.090.120.080.130.100.100.080.130.090.080.090.120.080.130.100.100.08 0.100.100.100.100.100.100.100.100.100.100.100.100.100.100.100.100.100.100.100.10 2 0.10,7 12 k -s -1 = 10-2-1=7, α = 0.10 22 0.10,70.10,7 3.6 3.6 12 12 Can not reject the null hypothesis
ARENA INPUT ANALYZER Arena provides built-in data analysis facilities via is to its Input Analyzer tool, whose main objective fit distributions to a given sample. Keep in mind that Arena provides built-in facilities for fitting distributions to independent empirical data, however, Arena does not provide any built- in facility for fitting dependent (time series) random processes.
ARENA INPUT ANALYZER The Input Analyzer is accessible from the Tools menu in the Arena home screen. After opening a new input dialog box (by selecting the New option the File menu in the Input Analyzer window), raw input data can be in selected from two suboptions in the Data File option of the File menu: 1. Existing data files can be opened via the Use Existing option. 2. New (synthetic) data files can be created using the Generate New option as iid samples from a user-prescribed distribution. Once the subsequent Input Analyzer files have been created, they can be accessed in the usual way via the Open option in the File menu
ARENA INPUT ANALYZER The Arena Input Analyzer functionality includes fitting a distribution to sample data in two ways: 1. The user can specify a particular class of distributions and request the Input Analyzer to recommend associated parameters that provide the fit. best 2. The user can request the Input Analyzer to recommend both the class of distributions as well as associated parameters that provide the best fit.
ARENA INPUT Distribution Arena name Arena parameters ANALYZER Exponential Normal Triangular Uniform Erlang Beta Gamma Johnson Log-normal Poisson Weibull Continuous Discrete EXPO NORM TRIA UNIF ERLA BETA GAMM JOHN LOGN POIS WEIB CONT DISC Mean Mean, StdDev Min, Mode, Max Min, Max ExpoMean, k Beta, Alpha G, D, L, X LogMean, LogStdDev Mean Beta, Alpha P1, V1,... a P1, V1,... a The parameters P1, P2,... are cumulative probabilities. Table displays the distributions supported by Arena and their associated parameters.
ARENA When you open this file via “Use Existing Option”, the Input Analyzer automatically creates a histogram from these sample data, and provides a summary of, sample statistics, as shown in the figure. INPUTANALYZER
ARENA INPUT ANALYZER The Options menu in the Input Analyzer menu bar allows the analyst to customize a histogram by specifying its number of intervals through the Parameters option and its Histogram option’s dialog box. Once a distribution is fitted to the data (see next section), the same menu also allows the analyst to change the parameter values of the fitted distribution. As mentioned above, either the user can specify a particular distribution and request the Input Analyzer to recommend associated parameters for this distributon or use the “ best fit” option to decide which distribution to use for these sample data.
ARENA INPUT ANALYZER Specifying Uniform Distribution