03.12.2012 Views

Simulation with Arena

Simulation with Arena

Simulation with Arena

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4<br />

Working <strong>with</strong> <strong>Arena</strong>


What We’ll Do ...<br />

• User interface<br />

• Menus (including Running)<br />

• Toolbars<br />

• Help<br />

• Model windows<br />

• Drawing<br />

• Printing<br />

• Running<br />

• Building the simple processing model<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 2


Basic Interaction<br />

• True Windows 95/NT application<br />

– Usual behavior of mouse, keyboard, selecting, dragging,<br />

resizing, menus, buttons, folder tabs<br />

– Usual window operations — resize, reposition, layer,<br />

maximize, minimize, close<br />

• Usual file operations<br />

– New, Open, Save, Save As, Print, Print Preview<br />

• Cut/Copy/Paste<br />

– Within an <strong>Arena</strong> window<br />

– Between <strong>Arena</strong> windows<br />

– Between <strong>Arena</strong>, other apps (when sensible)<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 3


• Miscellaneous<br />

Basic Interaction (cont’d.)<br />

– Object-oriented: select an object, then act on it<br />

– Undo/Redo<br />

– Right (secondary) mouse button<br />

• Repeat last action<br />

• Bail out of current action<br />

– Drawing: hold Shift to constrain lines to 45 0<br />

, rectangles to<br />

squares, ellipses to circles, etc.<br />

– Cycle among open <strong>Arena</strong> windows: Ctrl+Tab<br />

– Duplicate selection: Ctrl+D — then move it, edit it<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 4


Menus<br />

• File, Edit, View, Tools, Arrange, Module, Run,<br />

Window, Help<br />

– If no model window open: just File, View, Tools, Help<br />

• Standard Windows operations in usual menus<br />

– File menu has Open, Save, Save As, etc.<br />

– Edit menu has Cut, Copy, Paste, etc.<br />

– Help menu<br />

– etc.<br />

– So focus below on <strong>Arena</strong>-specific things in menus<br />

• Many menu items have toolbar buttons too<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 5


File Menu<br />

• New, Open..., Save, Save As...<br />

• Import CAD DXF files for “backdrop”<br />

• Color palette<br />

• Print, Print Preview<br />

• Send mail<br />

– Attach .doe files<br />

• Recent models<br />

• Exit <strong>Arena</strong><br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 6


Edit Menu<br />

• Undo/Redo<br />

• Cut, Copy, Paste<br />

• Paste Link (OLE link)<br />

• Duplicate, Delete selected object<br />

• Select All, Deselect All<br />

• Find — searches through all modules in current<br />

model for text string (for slobs who forget what<br />

names they’ve chosen, or for poor typists)<br />

• Links — info, control links to other kinds of<br />

documents<br />

• Insert, edit Objects from other applications<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 7


View Menu<br />

• Zooming In (down), Out (up)<br />

• Named views<br />

– Pre-defined by <strong>Arena</strong>, you<br />

– Go to defined views (hot keys better)<br />

• Grid — display, Snap, settings<br />

• Layers — what model objects show up in what<br />

mode<br />

• Toolbars — what “button” collections show up<br />

• Status bar (check, uncheck) — state, coords.<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 8


Tools Menu<br />

• Separate applications related to <strong>Arena</strong> model<br />

building and analysis<br />

– Input Analyzer<br />

– Output Analyzer<br />

• Scenario Manager<br />

• License information<br />

• Add-Ins installed<br />

• Visual Basic Editor to write VBA code for model<br />

(see Chapter 10)<br />

• Options… — control many aspects of how <strong>Arena</strong><br />

works, looks<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 9


Arrange Menu<br />

• For drawing objects<br />

• Bring selected object to Front, Send it to<br />

Back — for “stacking” effects<br />

• Group, Ungroup objects<br />

• Flip object around Vertical, Horizontal line<br />

• Rotate object<br />

• Snap selected object to Grid<br />

• Change point on object that gets snapped<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 10


• Connection controls<br />

– Connect tool<br />

Module Menu<br />

– Auto-Connect newly placed module to selected module —<br />

toggle on/off<br />

– Smart Connections — new connections in<br />

horizontal/vertical segments rather than one diagonal<br />

segment — toggle on/off<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 11


• Template Panel<br />

Module Menu (cont’d.)<br />

– Attach (easier to use Attach… tab)<br />

– Detach — even if model has modules from it<br />

• Show — toggle for module’s name on screen<br />

or just its animation picture<br />

• Breakpoint — attach to module to interrupt<br />

during run (for debugging)<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 12


Run Menu<br />

• Entries to run, check, pause, step through<br />

• Alternatives to watch execution, view results (or<br />

errors)<br />

• Control how run goes and is displayed<br />

• Most capabilities on Run or Run Interaction<br />

Toolbar, and will be described a bit later in detail<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 13


Window Menu<br />

• Cascade, Tile multiple open model windows<br />

• Arrange Icons for any minimized model windows<br />

• Use system Background Color — use Windows<br />

colors rather than <strong>Arena</strong> settings<br />

• List of open model windows<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 14


Help Menu<br />

• One of several ways to get into Help system<br />

• <strong>Arena</strong> Help Topics — TOC, Index, Find<br />

• Using Help — general info about Windows Help<br />

systems<br />

• List of attached templates — click to get Help on<br />

that one<br />

• Introduction… — as at startup<br />

• Tip of the Day<br />

• About <strong>Arena</strong>… version number, etc.<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 15


Toolbars<br />

• Collections of buttons for “frequent” operations<br />

– Most (not all) are duplication of menu entries<br />

• Standard, View, Arrange, Draw, Color, Animate,<br />

Template, Run, Run Interaction, Integration<br />

• View/Toolbars (or right-click in a toolbar area) to<br />

decide which ones show up, which to hide<br />

• Toolbars can be torn off (“floating” palettes), or<br />

“docked” to an edge of screen<br />

• <strong>Arena</strong> remembers your Toolbar configuration for<br />

next time<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 16


Help<br />

• Extensive, comprehensive online system —<br />

replaces traditional manuals<br />

• Interlinked via hypertext for cross referencing<br />

• Multiple entry points, including Help menu<br />

• Welcome screen described in Chapt. 3<br />

• button for context-sensitive help<br />

• button in many dialogs<br />

• button (What’s This?) for info on items<br />

• Tool tips — leave mouse motionless on<br />

something, get little yellow sticky note<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 17


Model Windows<br />

• Where you build, edit, run a model<br />

• Can have several open at once<br />

• Really a “window” on the “world” — (x, y)<br />

coordinates in world units<br />

• Open existing models (default .doe extension)<br />

• Create new (blank) model windows<br />

• Save, Save As...<br />

• Add modeling constructs — click from template,<br />

drop into model<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 18


Drawing<br />

• Draw via toolbar buttons only (no menus):<br />

• Line, Polyline (hold Shift key for 45 0<br />

), Arc, Bezier<br />

Curve<br />

• Box, Polygon, Ellipse (fill, line, shade)<br />

• Text (font, size, style, color)<br />

• Visible/Hidden setting — show during animation?<br />

• Change position, size, color<br />

• By far best way to learn: just play around<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 19


Printing<br />

• Can print directly from <strong>Arena</strong><br />

• Supports color<br />

• Big models — many pages<br />

• Also will print any Named Views separately<br />

– Print Preview, select only what you want for printing<br />

• PrintScreen key — sends screen to clipboard,<br />

paste into another application<br />

– Alt+PrintScreen — sends only active window to clipboard<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 20


Running<br />

• Run Menu; Run & Run Interaction Toolbars<br />

• Go ( ) — run simulation “normally” (depends on<br />

Options... selected from Tools menu)<br />

• Step ( ) — one “step” at a time (verify, debug)<br />

• Fast-Forward ( ) — disable animation (faster)<br />

• Pause ( ) — freeze run, resume <strong>with</strong> Go<br />

• Start Over ( ) — go back to beginning of<br />

simulation<br />

• End ( ) — get out of run mode<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 21


Running (cont’d.)<br />

• Check Model ( ) — like compiling<br />

• Review Errors — for most recent Check<br />

• View Results — Summary for most recent run<br />

• SIMAN — see, save underlying SIMAN .mod, .exp<br />

files generated from your <strong>Arena</strong> model<br />

• Command ( ) — bring up interactive commandline<br />

window to control run<br />

• Break… ( ) — set times, conditions to interrupt<br />

for checks, illustration<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 22


Running (cont’d.)<br />

• Trace… ( ) — generate detailed history<br />

(debugging)<br />

• Watch… ( ) — bring up a window to watch a<br />

variable or expression during run<br />

• Report… ( ) — see a numerical status when<br />

Paused<br />

• Setup… — alter run conditions (animation on/off,<br />

full-screen during run animation)<br />

• Speed — control speed of animation display (<<br />

and > keys easier)<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 23


Building the Simple Processing<br />

Model<br />

• Open a new model window<br />

• Attach Common template (if not auto-attached —<br />

check Tools/Options/Toolbars tab)<br />

• Drop in Arrive, Server, Depart, Simulate, two<br />

Animate modules<br />

• Double-click, edit modules as indicated in text<br />

• Connect logic modules as required<br />

• Dress up <strong>with</strong> drawing, text<br />

• Run<br />

• The “Display” notation used from here on<br />

– Module handle/animation, completed dialog(s), table<br />

showing what to enter (omitting defaults)<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 24


Display for the Arrive Module<br />

Enter Data<br />

Station In Door<br />

Arrival Data<br />

Time Between EXPO(5.0)<br />

Mark Time Attribute Time of Arrival<br />

Leave Data<br />

Connect select<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 25


Display for the Server Module<br />

Enter Data<br />

Station Machine<br />

Server Data<br />

Process Time TRIA(1,4,8)<br />

Leave Data<br />

Connect select<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 26


Display for the Depart Module<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

Enter Data<br />

Station Out Door<br />

Count<br />

Individual Counter select<br />

Counter Productio<br />

Tally<br />

Individual Tally select<br />

Tally Flowtime<br />

Attribute Time of Arrival<br />

4 - 27


Animate Module and Plot:<br />

Queue Length<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 28


Animate Module and Plot:<br />

Number Busy<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 29


Display for the Simulate Module<br />

Project<br />

Title Simple Processing System<br />

Analyst Desdemona Rocketship<br />

Replicate<br />

Length of Replication 15<br />

<strong>Simulation</strong> <strong>with</strong> <strong>Arena</strong> — Chapter 4 — Working <strong>with</strong> <strong>Arena</strong><br />

4 - 30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!