discrete event simulation - mit opencourseware · pdf filediscrete event simulation •...

26
Discrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly systems – Understand its strengths and weaknesses – See some statistics about real systems Simulation 11/20/2002 Daniel E Whitney 1997-2004 1

Upload: vuongnhu

Post on 01-Feb-2018

240 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Discrete Event Simulation

• Goals of this class – Understand discrete event simulation

– See how it applies to assembly systems – Understand its strengths and weaknesses – See some statistics about real systems

Simulation 11/20/2002 Daniel E Whitney 1997-2004 1

Page 2: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

“Stoppage? What stoppage?”

• It is very hard to achieve high uptime

• People do not notice the stops that add up the most: the very short ones

• Story (on a later slide) about loop machine with three tenders

• Denso rules for line workers repairing their own machine – you have 30 minutes to fix it yourself– if you don’t think you can fix it or if 30 min are up, call

the repair crew Simulation 11/20/2002 Daniel E Whitney 1997-2004 2

Page 3: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Histogram of Stoppage Durations

Simulation 11/20/2002 Daniel E Whitney 1997-2004 3

Image removed for copyright reasons.Source:Figure 16-3 in [Whitney 2004] Whitney, D. E. Mechanical Assemblies: Their Design, Manufacture,

and Role in Product Development. New York, NY: Oxford University Press, 2004. ISBN: 0195157826.

Page 4: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Where Do All The Seconds Go?W. M. Chow, Assembly Line Design, Marcel Dekker, 1990

24 hours per day

• part jams

• machine broken

• tool change • variety change

• employee breaks

Process efficiency

Process quality

Scheduled operating time (utilization)

Scheduled (good) downtime

• preventive maintenance

Unscheduled (bad) downtime

• queue block/starve

• task time variation, line balance, logistics, scheduling

• % bad parts or cycles

Simulation 11/20/2002 Daniel E Whitney 1997-2004 4

Image removed for copyright reasons.Source:Figure 16-2 in [Whitney 2004] Whitney, D. E. Mechanical Assemblies: Their Design, Manufacture,

and Role in Product Development . New York, NY: Oxford University Press, 2004. ISBN: 0195157826.

Page 5: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Block Line Uptime Varies Greatly from Plant to Plant

100%

scheduled stops(tools/variants /TPM)

unscheduled stops (tool, machine, parts)

uptime

Note: Data not available for some lines

percent of scheduled time

80%

60%

40%

20%

0%

1

6

11

16

21

individual lines

Simulation 11/20/2002 Daniel E Whitney 1997-2004 5

Page 6: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Uptime Is a Property of the Engine PlantUptime Values Provided by Engine Plants

Note that on Average, in one Plant, there is less than a 15% Difference in Uptime between any of the 3 Machining Lines

100%

90%

80%

70%

60%

50%

40%

30%

20%

10%

0%

Uptime BLOCK Uptime CRANK Uptime HEAD

Engine Plants

Simulation 11/20/2002 Daniel E Whitney 1997-2004 6

Page 7: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

How to Get 85% Uptime

• Loop-style assembly machine for washing machine feet

• Two people with wands to beat stuck part feeder tracks

• Machine with bus-style pull cord

• When a track jams, the people whack at it with their wands and yank the cord to restart the machine

• Result is 85% uptime Simulation 11/20/2002 Daniel E Whitney 1997-2004 7

Page 8: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Basics of Simulation

• Allows for inclusion of a variety of random events– machine stoppages – queue blockages and starvation – absence of workers, pallets, parts, fixtures – resource contention and levels of service – queue capacity

• Companies are surprisingly unaware of the effects of random events and do not take good data on downtime

• “We made the line ‘lean.’ It had no buffers. It didn’t work.”

Simulation 11/20/2002 Daniel E Whitney 1997-2004 8

Page 9: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Simulation

• Uses a system definition to run a time-based simulation

• Often includes random variables • Can be “continuous” time or discrete event

Simulation 11/20/2002 Daniel E Whitney 1997-2004 9

Page 10: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Continuous and Discrete

• Continuous means equal size time steps

• Discrete event means that time advances until the next event can occur – time steps during which nothing happens are skipped

– duration of activities determines how much the clock advances

Simulation 11/20/2002 Daniel E Whitney 1997-2004 10

Page 11: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Components of a D. E. Simulation

• Simulations contain– activities where things happen to entities during some

time (which may be governed by a probability distribution)

– queues where entities wait an undetermined time – entities that wait in queues or get acted on in activities

• entities can have attributes like kind, weight, due date, priority

Simulation 11/20/2002 Daniel E Whitney 1997-2004 11

Page 12: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Things that Can Be Simulated

• Factories – entities are products, people, transporters, tools – activities are machines for fab or assembly – queues are conveyors, warehouses

• Highways – entities are cars, trucks, cops – activities are go, stop, rage – queues are highways, on-ramps, off-ramps, rest stops

Simulation 11/20/2002 Daniel E Whitney 1997-2004 12

Page 13: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Goals of System Simulation

• Check the design of the system – Material flows - are there bottlenecks? – Queue locations and sizes - do they get blocked or starved? – Resources - are they sufficient, do they starve important

operations? – Failure modes - what are they and what causes them?

• Check if it has the required capacity • See what different types of downtime do to performance

• Improve the design

Simulation 11/20/2002 Daniel E Whitney 1997-2004 13

Page 14: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Choices for Probability Distributions

• Things that have distributions:– Station operating times – Breakdown intervals – Station repair times – Transport system performance

• Alternate distributions – Normal – Weibull – Uniform – Fatigue Life – Rayleigh

Simulation 11/20/2002 Daniel E Whitney 1997-2004 14

Page 15: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Station Time Data

• Obtained by Prof Tim Baines, Cranfield U, UK • Taken at engine dressing line at UK car company• Electronic data gathered from operator’s release of

pallet to next station • Averaged over many operators at many stations on

this line to protect anonymity • Main conclusion is that times vary much more

widely than is accounted for in typical simulations

Simulation 11/20/2002 Daniel E Whitney 1997-2004 15

Page 16: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Simulation 1611/20/2002 Daniel E Whitney 1997-2004

0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.

Activity Time: a typical day

Graph removed due to copyright restrictions. (Workstation time [s] vs Time of Day.)

Page 17: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Activity Times & Production Standard Times (PST)

Simulation 11/20/2002 Daniel E Whitney 1997-2004 17

Graph removed due to copyright restrictions. (Frequency vs Activity Time.)

Page 18: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Common Probability Distributions

Weibull Normal

Uniform Fatigue Life http://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm

Simulation 11/20/2002 Daniel E Whitney 1997-2004 18

Page 19: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Kinds of Design Choices

• Number and location of resources – People - operators and repair crews – Machines – Pallets and their carrying capacity – Tools

• Queue locations, sizes, disciplines • Priorities of activities that compete for limited resources

• Floor layout – distances, separation of people and machines

• Kinds of transport – conveyors, AGVs

• Assembly sequences

Simulation 11/20/2002 Daniel E Whitney 1997-2004 19

Page 20: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Simple Simulation Diagram

Takes 10 3 % fail

Takes 15

Arrive & wait

Test

Done +/- 1 minute

Takes 3 minutes

+/- 10 minutes

Machine

Wait-test

Repair Wait-repair

Note: If Wait-repair and Wait-test both are full, the system will become deadlocked as soon as the next unit needs repair because the test station will be unable to unload and take the next unit.

Simulation 11/20/2002 Daniel E Whitney 1997-2004 21

Page 21: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

What You Might Learn

• Products fail too often

• Repair takes too long

• A queue is so short that it fills up and prevents products from moving along

• Machines break too often, or there are not enough repair personnel, or it takes them too long for them arrive, etc

• Then you have to do something about it

Simulation 11/20/2002 Daniel E Whitney 1997-2004 22

Page 22: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

How a Sim Works

• Scan the agenda of activities

• Find the first ones that can execute (or continue executing) – all the entities they need are available

• Advance the clock to the end of the activity with the shortest operating time

• Send its entities to their destination queues– the destinations must be open, not full

• Go back to the top

Simulation 11/20/2002 Daniel E Whitney 1997-2004 23

Page 23: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Basic Modeling Considerations

• Identify all the elements and activities • Decide which activities need which entities

• Separate the activities with queues • Decide the queue discipline

– first come first served, latest, heaviest, etc

• Decide where entities should go when the activity is finished

• Often, when you have done all this, you have learned so much that you do not need to run the simulation

Simulation 11/20/2002 Daniel E Whitney 1997-2004 24

Page 24: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Bottlenecks

• Every system has a bottleneck

• It’s the station with the minimum capacity, the one that paces the system’s operations (often the one with the longest operation time)

• A cycle lost on the bottleneck station is a cycle lost forever – see The Goal by Goldratt

• Queues at non-bottleneck stations are illusions

Simulation 11/20/2002 Daniel E Whitney 1997-2004 25

Page 25: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Strengths and Weaknesses

• Modeling makes you think • You can run systematic experiments, even DOE

• Modeling is not a solution, just a model of a proposed design

• GIGO applies

• The probability distributions you choose may not be the correct ones

Simulation 11/20/2002 Daniel E Whitney 1997-2004 26

Page 26: Discrete Event Simulation - MIT OpenCourseWare · PDF fileDiscrete Event Simulation • Goals of this class – Understand discrete event simulation – See how it applies to assembly

Conclusions

• Simulation is valuable and should be part of every manufacturing system design process

• Simulation makes you think about a stochastic world, which is reality

• Too often, simulation is done only when a problem is discovered with a system that is already installed and hard to change

• In this and other ways, simulation is like variation analysis

Simulation 11/20/2002 Daniel E Whitney 1997-2004 27