4-Handout 2_2010 - 1 IE 372 Simulation - Handout 2...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
IE 372 Simulation - Handout 2 INTRODUCTION TO ARENA AND SIMAN About Simulation Languages Common features of simulation languages Random number (RN) and random variate (RV) generation Managing event list, calling necessary routines depending on the type of next event to be processed Advancing the simulation clock Collecting output data and supporting statistical analysis Detecting error conditions and helping the modeler in debugging Advantages of using a simulation language Reduces programming effort significantly Makes model modification easier Provides better error detection Advantages of using a general purpose programming language Widely known and available Provides more flexibility A well-written program is faster 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Different Approaches and Tools for DES Approach Tool Constructs In SIMAN /ARENA Flexibility Ease of Modeling Modular Simulation package Modules (templates, icons) Using BasicProcess.tpo Low Easy Process interaction Simulation language Elements and blocks Using Elements.tpo and Blocks.tpo Discrete- event scheduling General purpose language GPL constructs Allows linking of FORTRAN or C code High Hard The above classification is in general true but has exceptions. For example, Simscript, which is a simulation language, is discrete-event scheduling oriented. The three approaches are related. Discrete-event scheduling: Based on our flowcharts. Process interaction: Entities flow through blocks that represent “processes” and “interact” with these processes. Underlying approach is still discrete-event scheduling. Modular: Based on flow of entities through modules, which are higher level constructs than blocks. Underlying approach is still process interaction. SIMAN is a (general purpose) simulation language. ARENA is the simulation package built upon SIMAN. The mid level above is a compromise between the two, seeking both flexibility and ease of modeling. That is what we will use in general. 2
Background image of page 2
Model Building Using ARENA Modules There are modules such as Create : to create entities and schedule their arrivals Process : to model service of incoming entities, e.g. a server with its queue in simple queueing system, a machining station in a factory Decide : to model non-sequential flow of entities, e.g. to route good and bad parts coming out of inspection to different places in the model Dispose : for entity departures The “dialog box” of each module allows us to enter the “operands” relevant to that module Operands specify how entities entering a module will be processed in that module 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example: Simple Queueing System With Modules Create module named as “Arrivals” 4
Background image of page 4
Process module named as “Service” 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Dispose module named as “Departures” 6
Background image of page 6
Run Setup Project Parameters menu option 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Run Setup Replication Parameters menu option 8
Background image of page 8
Run Setup Reports menu option 9
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Model code generated by ARENA (with modules) Experiment frame PROJECT,
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 58

4-Handout 2_2010 - 1 IE 372 Simulation - Handout 2...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online