ie 415/515 – simulation. today’s agenda information on syllabus office hours prerequisites text...

55
IE 415/515 – Simulation

Upload: elizabeth-maxwell

Post on 15-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

IE 415/515 – Simulation

Page 2: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Today’s AgendaInformation on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format

Introduction to IE simulationContinue lecture material

Page 3: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Office Hours

Mondays/Wednesdays 3-4:30PM By appointmentOffice 424 RogersE-mail: No HW/technical questions! TA: Faisal Alfayez, Zahra Mohktari Office hours TBD

Page 4: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

PrerequisitesStat 314 or equivalent will be needed. Computer programming experience – Helpful but not critical. If specific material is needed, it will be covered for course purposes. Knowledge of Windows and Excel is assumed. Experience programming and debugging is helpful.Some ENGR 390 (engineering economics) background.

Page 5: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Course InformationCourse homepage :

http://classes.engr.oregonstate.edu/mime/winter2015/ie415-001 Syllabus Lecture slides for note taking Handouts

This introductory presentation Information sheet

Homework and lab assignments Check the page for course

information and announcements.

Page 6: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

ReferencesKelton, W.D., Sadowski, R.P. and N.B. Swets, (2010). Simulation With Arena 5th Edition, McGraw-Hill Inc.

Valley Library -11 copies on one-day reserve.

Law, A.M. and W.D. Kelton, (2000). Simulation Modeling and Analysis 3rd Edition, McGraw-Hill Inc.

Two earlier editions on 3-hour reserve

Banks, J., Carson, J.S., Nelson, B.L., Nicol, D.M., (2010). Discrete Event System Simulation 5th Edition, Prentice Hall. On Reserve.Arena online books.Crystal Ball online documentation.

Page 7: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Grading – Allocation

Class participation based on:1. Participation in class – answering questions2. In-class exercises3. Random attendance taken4. Submitting information sheet

Mid-term Exam (2/15/2015) 25%

Final Exam (Monday 3/16/2015 12:00-1:50PM)

35%

Lab Exams (Week 4 lab, Week 9 lab) 20%

Homework/Lab Assignments

(12-14 Labs/HW)15%

Class Participation (includes information sheet if applicable)

5%

Page 8: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Grading Scale92 or above A

89-92 A-

86-89 B+

82-86 B

79-82 B-

76-79 C+

72-76 C

69-72 C-

59-69 D

Page 9: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Exams, Homework, LabsHomework 5-7 homework assignments will be given. Some solutions for programming problems

will be provided after assignment is turned in.

Group study is encouraged but each person should understand all problems.

Due at the beginning of class – Late HW penalized After the final call for homework – 2 out of 10. After 12 noon the day immediately following the

final call – assignment not accepted.

Page 10: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Exams, Homework, LabsLabs Labs start in week 1. Seven total lab assignments – No labs in

week 10. Due by the end of lab. Counts the same as a HW assignment.

Switching lab sections Only with prior approval of the TAs or

instructor. The number approved requests for

switching sections will be limited.

Page 11: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Exams, Homework, LabsLab exams Two lab exams: week 4 and week 9. Tests simulation modeling with specific

software. Graded by the TAs. Different sections will be given different

versions of the exam. The paper copies of the exam are to be returned

to the TAs. No photographs of the exam are allowed.

Page 12: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Exams, Homework, LabsIn-class Exams

Open book and open note exams – No laptop computers, tablets, smartphones, etc. and no electronic communication permitted.

Based on homework, lecture material (in-class exercises and examples), labs.

Exams will only be distributed in class and in office hours for viewing and will then be returned to the instructor. No photos of the exam are allowed.

Grading questions/modifications must be brought to the instructor within one week after the exam is returned in class.

Page 13: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Recipe for FailureLow effort on HW

Utilize solutions from prior terms Split problems with classmates Turn in late HW

Low effort on labs Rely on your partner to complete lab Focus on procedures instead of what the procedure

accomplishes

Don’t attend class Physically Mentally

Page 14: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Things To DoDo the opposite of Recipe for FailureGet your points

Get your HW and lab points At some point do the HW and labs with good effort

Seek help early in the term if neededDo problems under a time constraint

Page 15: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

IE 415 vs. IE 515

IE 415/515 differences IE 515 – additional homework (may

require study outside of class material)

One or more questions on each exam will differ

Grading will be harder for 515 students

Page 16: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Lecture FormatThe first part of class will be devoted to questions.

Unreasonably long questions will be handled one on one.

Lecture Ask questions

End of Class – Will try to leave time for questions.

Page 17: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Lecture FormatMaterial will be delivered on slides using a tablet PC. Material will be added to the slides during class. Examples will be completed electronically on

the slides. There will be periodic in-class problem solving

sessions. Solutions completed electronically on slides.

Minor changes to the slides may be made just before class.

All added (hand written) material is your responsibility – They will not be available on the website.

Page 18: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

18

Class RulesTurn off/quiet cell & smart phones and other communication devices.No web surfing.No newspapers.No completing homework or other assignments.No sleeping.Use common sense and be considerate of others.

Page 19: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Questions ?

Page 20: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

IE 415/515 - Introduction

Simulation

Page 21: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example 1As an IE working at a manufacturing plant, you are asked to help evaluate a potential investment in a new machine (at a highly utilized process step). The company has a number of different types of jobs that undergo processing at this step. Currently there are five machines, and each machine can only process a subset of the jobs. Each existing machine also experiences random failures. The new machine can process any of the currently produced jobs. Jobs arrive in batches (each batch with different job types of known composition). Assuming the percentages of different job types remains the same, you are asked to evaluate the increased throughput realizable by purchasing this machine.

Page 22: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

.

.

.

A,B

C,D

J,K

Jobs to be processed Completed jobs at rate?

New Machine – All job types

Page 23: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example 2Applying engineering economic analysis to evaluate the NPV of two alternatives for fork lift purchases.In addition to NPV, evaluate each alternative with respect to cost risk/uncertainty. There is uncertainty in many of the

parameters used in these calculations.

Page 24: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example 2Known parameters Initial costs Approximate fuel costs (e.g., gas vs.

electric) in the near future.

Unknown parameters Breakdown/maintenance costs Salvage/resale value Future fuel costs

Page 25: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example

How do you proceed?

Page 26: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

ApproachesExperience/Intuition Often effective but limited in very complex

situationsAnalytical models – Mathematical equations Usually preferred if available Usually very fast – many types of “what if” Provide insight into key parameters Limited availability/accessibility

Computer simulations Applicable to the most complex situations

given enough time

Page 27: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Simulation Questions

How do you simulate these systems? What software choices? How are system dynamics represented/simulated?

How do you represent randomness in the system?What is the form of the answer?

How do you interpret simulation results?

What data needs to be collected? How is the data processed?

Page 28: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Simulation

Dictionary definition – “to look or act like”Almost everything done in engineering is simulationEngineers build models to predict and understand the performance of all types of things, systems, and processes

Page 29: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Examples

Equations predicting what happens in physical systems – thermodynamics, statics, …Physical prototypes of products for development, test and validationFinal product testingProcess validation – Soft toolingFlight simulatorsArcade games

Page 30: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Types of Systems IEs SimulateThey are big and costlyInvolve peopleRandom events/values occur over timeThe systems are too big to build physical prototypesA calculation may involve the combination of multiple random componentsThe systems may not exist

Page 31: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Systems IEs Simulate - Examples

Production line performanceCall centers performancePlant floor layout – material movementScheduling of resourcesNetwork performanceInventory control/ordering pointsDistribution and routingEngineering economic calculations incorporating randomness…

Page 32: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Characteristics of Systems IEs Simulate

System operation is often dictated by man-made rules, or the focus is on establishing efficient rulesExamples

Staffing for a desired level of customer performance.

Sizing/allocation of storage areas. The number of machines to use at a

workstation. The scheduling of work. Etc.

Page 33: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

IE Computer SimulationsIn practice, simulation refers to the process of designing and creating computerized models of a system and doing numerical computer-based experiments. Real power - application to complex systems.Industry acceptance.

Page 34: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Objectives of IE Analysis

Estimate performance Throughput of a production line. Average wait time for customers. Minimum investment to achieve a target. Distribution of NPV values. …

Evaluate designs Plant layouts Scheduling rules Production system configurations …

Page 35: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

IE Computer Simulations - Types

Deterministic/StochasticDiscrete/Continuous stateStatic/DynamicIE 415/515 will focus on Stochastic, Discrete, Static & Dynamic simulations.

Page 36: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example

Expected value (average) of the max value from two rolls of a die Approaches

Experience/intuition Analytical Simulation

Physical Computer simulation

Page 37: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example

Experience/Intuition

Page 38: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example – Analytical ModelExpected value (average) of the max value from two rolls of a die

Analytical (can also enumerate for this example).

6

1

2

21

2

121

121

6

1

12121

47.412

42

6

1)],[max(

12

42

)6

1(*2

)1(6)

6*()]|,[max(

)]|,[max(*6

1

)]]|,[max([)],[max(

i

i

iiXXE

ii

iiiiiXXXE

iXXXE

XXXEEXXE

Page 39: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Simulation

Expected value (average) of the max value from two rolls of a die Physical simulation

Page 40: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example

Expected value (average) of the max value from two rolls of a die Computer simulation

Page 41: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

ExampleComputer simulation answer is not a single value More work – more precision

95 % Confidence Intervals for the Avg.150 Trials

Half Width Low Limit Upper Limit

0.23292914 4.12707086 4.592929141

1500 Trials

Half Width Low Limit Upper Limit

0.07068044 4.34931956 4.49068044

Page 42: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Static Stochastic Simulation

Spreadsheet packages @Risk Crystal Ball

Page 43: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Dynamic Stochastic Simulation

The passing of time is a fundamental part of the simulation. For IEs this time is normally the time

a system (e.g., a plant) is operating.

Dynamic stochastic simulations are often animated Validation Communication

Page 44: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example

M/M/1 Queuing System Avg. # in queue, Avg. time in system

Page 45: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example

Experience/Intuition

Page 46: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example – Analytical Model

M/M/1 Queuing System Many results have been obtained.

Page 47: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example – Physical Simulation

M/M/1 Queuing System Most likely not possible – Instead, the

real system can be observed.

Page 48: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Example – Computer Simulation

M/M/1 Queuing System Arena software utilized.

Page 49: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Dynamic Stochastic Simulations

Physical simulations too costly or not possible.Analytical models do not exist - System is too complex.Demo

Page 50: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Dynamic Stochastic Simulations

Normally executed with “simulation software” General-purpose languages (C++)

Tedious, low-level, error-prone Almost complete flexibility Can be used to program static stochastic

simulations too Support packages

Subroutines for list processing, bookkeeping, time advance

Widely distributed, widely modified

Page 51: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Dynamic Stochastic Simulations

Simulation languages GPSS, SIMSCRIPT, SLAM, SIMAN Learning curve for features, effective use,

syntax

High-level simulators Very easy, graphical interface Domain-restricted (manufacturing,

communications) Limited flexibility — model validity?

Page 52: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Dynamic Stochastic Simulations

Demo

Page 53: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Warnings

Simulation is very time consuming Model development Data collection This often makes simulation infeasible

Simulations are complicated – Easy to make errors (logical), validation is often difficultGarbage in – Garbage outSimulation output has randomness

Page 54: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Goals of this Course

Students successfully completing this course should (independent of the simulation system): Understand the basic mechanics of how

almost all discrete event simulation systems operate

Be able to carry out a “complete” simulation project

Understand pros and cons of using simulation to study dynamic systems

Page 55: IE 415/515 – Simulation. Today’s Agenda Information on syllabus Office hours Prerequisites Text Grading Exams & Homework Class format Introduction to

Simulation Coverage Outline

Start with static stochastic simulations Probability and statistics required Cover fundamentals in lecture We will use Excel/Crystal Ball Software in

the lab

Move to discrete dynamic stochastic simulations Cover fundamentals in lecture We will use Arena software in the lab