Académique Documents
Professionnel Documents
Culture Documents
Worldview
process interaction
Entity, Attribute, Process, Activity
Modeling Components in Arena
Resources & Schedules
Animation
Multiple Runs
Lab#1:
Arena worldview
Parts of Arena window (attaching/detaching panels, RunSetup)
Entity, attribute, process, activity
Modeling Components in Arena
Modules (create, process, dispose)
Resources
Expressions
Running a simulation
Plots (Process.WIP, NQ(Queue), MR(Resource))
Run Setup (terminating endtime/conditional)
Reports
Little’s Law
Example: Checkout Counter (Single Channel Queue)
Lab#2:
Resources
Modules (assign, decide)
Entity Types
Attributes
Example: simple bank
Example: dump trucks
Lab#3:
Exercise: Microscope Exhibit
Lab#4:
Exercise: (s,S) Inventory
Exercise: Recall the microscope exhibit example discussed before. The viewing
times have a triangular distribution with a =1, b =3, andc =5. The arrival rate of the
visitors is 10 per hour with exponentially distributed interarrival times. The waiting
line discipline is FIFO and the ticket purchases are not modeled.
a) Build an Arena model when the view-again probability is 30%
and is independent of how many times the visitor has viewed the
exhibit already.
b) Build an Arena model when the number of views of a visitor has
the following distribution: p(1) = 60%, p(2) = 30%, p(3) = 10%.
c) Build the Arena model for the previous part but this time model
the ticket purchases where the visitors with tickets have priority
over visitors without tickets. Assume that visitors decide to buy
a ticket with 50% chance at the the of arrival only when there is at
least one visitor at the waiting line.
a)
a) (cont)
b)
b) (cont)
b) (cont)
There are two equivalent ways to
specify the decide module, as
depicted on the left top and
bottom:
Alternative 2
IE303 System Simulation – Fall 2010 Arena 27
Microscope Exhibit IŞIKIE
c)
1 2
c) (cont)
c) (cont)
c) (cont)
AvgCustomerDemand=2.5widget/customer
CustomerArrivalRate=10customer/day
Reordering Point = s
Order Upto Level = S
We define:
InvOnHand : widgets physically present in the warehouse
InvBackordered : widgets promised to customers but not delivered yet
InvOnOrder : widgets ordered with the supplier but not received yet
Simulate the (s,S) system for 300 days and estimate the Total Cost per day. Total
Cost is the sum of three components: fixed ordering cost, holding cost, and
backordering cost. Fixed ordering cost is incurred every time Widgets By Bucky
places an order to its supplier. Fixed ordering cost (K=$32/order) does not depend
on how many widgets are ordered. Holding cost (h=$1/widget/day) is incurred per
widget onhand held per day. Backordering cost (b=$5/widget/day) is incurred,
similarly, per widget backordered per day. In order to find calculate Total Cost per
day we need to calculate the Total Cost over time [0,T] where T is the time
simulation ends.
CREATE “Customers”
Entity Type: customer
Time Between Arivals Type: Random (Expo) Value: 0.1 Units: Days
Entities per Arrival: 1 Max Arrivals: Infinite First Creation: 0.0
ASSIGN “Widgets Ordered”
Assignment1: Attribute, ordersize, DISC(0.2, 1, 0.5, 2, 0.8, 3, 1.0, 4)
ASSIGN “Update Inventory Level”
Assignment1: Variable, InvLevel, InvLevel – ordersize
ASSIGN “Order Widgets from Supplier”
Assignment1: Entity Type, widgetorder
Assignment2: Attribute, widgetno,
OrderUptoLevel – (InvLevel + InvOnOrder)
Assignment3: Variable, InvOnOrder, InvOnOrder + widgetno
Assignment4: Attribute, leadtime, UNIF(1,4)
SEPARATE “Separate 1”
Type: Duplicate Original Percent Cost: 100 #Duplicates: 1
DECIDE “Order Decision”
Type: 2-way by Condition If: Expression
Value: InvLevel + InvOnOrder <= ReorderPoint
IE303 System Simulation – Fall 2010 Arena 36
(s,S) Inventory System IŞIKIE
Statistics
Name Type Expression ReportLabel
InvOnHand TimePers.
MAX(InvLevel,0) InvOnHand
InvBackord TimePers.
MAX(–InvLevel,0) InvBackord
OrdersPlaced Output EntitiesIn(widgetorder)/TFIN OrdersPlaced
TotalCost Output 1*DAVG(InvOnHand)+ TotalCost
5*DAVG(InvBackord)+
32*EntitiesIn(widgetorder)/TFIN
Reports – UserSpecified – TimePersistent
Reports – UserSpecified – Output
Run Setup
NumberofReplications: 1
Warmup Period: 0.0 Time Units: Days
Replication Length: 300 Time Units: Days
HoursPerDay: 24 BaseTimeUnit: Days
TerminatingCondition: “”