1 Welcome to 620-261 Introduction to Operations Research.

54
Welcome to 620-261 Introduction to Operations Research

Transcript of 1 Welcome to 620-261 Introduction to Operations Research.

Page 1: 1 Welcome to 620-261 Introduction to Operations Research.

1

Welcome to620-261

Introduction toOperations Research

Welcome to620-261

Introduction toOperations Research

Page 2: 1 Welcome to 620-261 Introduction to Operations Research.

2

620-261: Introduction to Operations

Research

620-261: Introduction to Operations

Research Lecturer: Peter Taylor Heads Office Richard Berry Building Tel: 8344 7887 E-mail:

- [email protected] Course due to: Moshe Sniedovich

Page 3: 1 Welcome to 620-261 Introduction to Operations Research.

3

ScheduleSchedule

Lectures:

Mon, Wed, Friday 3:15 PM

Tutorial:

Check Notice Board and Web site

Page 4: 1 Welcome to 620-261 Introduction to Operations Research.

4

Office HoursOffice Hours

Monday 2-3 PM Wednesday 2-3PM Friday 2-3PM These may have to vary sometimes – see my

assistant Lisa Mifsud

Page 5: 1 Welcome to 620-261 Introduction to Operations Research.

5

AssessmentAssessment

Assignments: 10% Final Exam: 90%

Page 6: 1 Welcome to 620-261 Introduction to Operations Research.

6

Group ProjectsGroup Projects

You are encouraged to study with friends, but you are expected to compose your own reports.

Page 7: 1 Welcome to 620-261 Introduction to Operations Research.

7

CommunicationCommunication

You are expected to respond to questions asked (by the lecturer) during the lectures

Suggestions, comments, complaints:– Directly to lecturerDirectly to lecturer– via Student Representativevia Student Representative

Don’t wait till you are asked to complain!

Page 8: 1 Welcome to 620-261 Introduction to Operations Research.

8

Lecture NotesLecture Notes

On Sale (Book Room) If out-of-print, let me know

Page 9: 1 Welcome to 620-261 Introduction to Operations Research.

9

Thou Shall NotThou Shall Not

Page 10: 1 Welcome to 620-261 Introduction to Operations Research.

10

Thou Shall NotThou Shall Not

Page 11: 1 Welcome to 620-261 Introduction to Operations Research.

11

Student Representative(SSLC)

Student Representative(SSLC)

Pizza!!!!! Two meetings Questionnaire

Page 12: 1 Welcome to 620-261 Introduction to Operations Research.

12

Web SiteWeb Site

http://www.ms.unimelb.edu.au/~dmk/620-261

Page 13: 1 Welcome to 620-261 Introduction to Operations Research.

13

Reference MaterialReference Material

Lecture Notes Bibliography (10 copies of Winston in Maths

library, reserved Shelves) Hand-outs

Page 14: 1 Welcome to 620-261 Introduction to Operations Research.

14

Computer LiteracyComputer Literacy

_ Applied Mathematics is computational._ I don’t expect any specific knowledge, but I

do expect an open attitude to things computational.

Page 15: 1 Welcome to 620-261 Introduction to Operations Research.

15

PerspectivePerspective

Universe Applied maths

OR620-261

Page 16: 1 Welcome to 620-261 Introduction to Operations Research.

16

What is OR ?What is OR ?

Controversial question! Surf the WWW for answers Roughly:

– .... Applications of quantitative scientific methods .... Applications of quantitative scientific methods to decision making and support in business, to decision making and support in business, industrial and military organisations, with the industrial and military organisations, with the objective of improving the quality of managerial objective of improving the quality of managerial decisions ..... decisions .....

Page 17: 1 Welcome to 620-261 Introduction to Operations Research.

17

Basic CharacteristicsBasic Characteristics

Applies scientific methods Adopts a systems approach Utilises a team concept Relies on computer technologies

Page 18: 1 Welcome to 620-261 Introduction to Operations Research.

18

OR StreamOR Stream 620-261: Introduction to Operations

Research 620-262: Decision Making 620-361: Operations Research Methods and

Algorithms 620-362: Applied Operations Research Probability and Statistics are useful other

subjects to study

Page 19: 1 Welcome to 620-261 Introduction to Operations Research.

19

and more and more

Honours MSc PhD

Page 20: 1 Welcome to 620-261 Introduction to Operations Research.

20

JobsJobs

_ There is a shortage of people with OR skills_ Graduates with these skills get good jobs

Page 21: 1 Welcome to 620-261 Introduction to Operations Research.

21

Reading .....Reading .....

Appendix A Appendix B Appendix E Chapters 1,2,3,4 Web

Page 22: 1 Welcome to 620-261 Introduction to Operations Research.

22

The OR Problem Solving Schema

Solution

Formulation

Realization

Modelling

Analysis

Implementation

Monitoring

Page 23: 1 Welcome to 620-261 Introduction to Operations Research.

23

In Practice

Solution

Formulation

Realization

Modelling

Analysis

Implementation

Monitoring

Page 24: 1 Welcome to 620-261 Introduction to Operations Research.

24

Important CommentImportant Comment

In 620-261: Formulation and Modelling Analysis and Solution

Page 25: 1 Welcome to 620-261 Introduction to Operations Research.

25

Chapter 2:Optimization Problems

Chapter 2:Optimization Problems

General formulation

f Objective function

x Decision variable

Decision Space

opt Optimality criterion

z* Optimal return/cost

z*:optx

f ( x )

Page 26: 1 Welcome to 620-261 Introduction to Operations Research.

26

Observe the distinction between f and f(x). Note that f is assumed to be a real valued

function on .

z*:optx

f ( x )

Page 27: 1 Welcome to 620-261 Introduction to Operations Research.

27

ExampleExample

z*:max x n2 xn

3 n 1

10

s. t.

x nn1

10

5

xn {0,1} , n 1, .. .,10

Page 28: 1 Welcome to 620-261 Introduction to Operations Research.

28

f (x): xn2 xn

3 n1

10

: x10 : xnn1

10

5, xn {0,1} , n 1,...,10

opt max

z* unknown

Page 29: 1 Welcome to 620-261 Introduction to Operations Research.

29

We let* denote the set of optimal decisions associated with the optimization problem. That is * denotes the subset of whose elements are an optimal solution to the optimization problem. Formally,

*:={x*: x*, f(x*)=opt {f(x): x }}.

By construction * is a subset of , namely optimality entails feasibility.

Page 30: 1 Welcome to 620-261 Introduction to Operations Research.

30

RemarksRemarks

The set of feasible solution, , is usually defined by a system of constraints.

Thus, an optimization problem has three ingredients:– Objective functionObjective function– ConstraintsConstraints– Optimality CriterionOptimality Criterion

Page 31: 1 Welcome to 620-261 Introduction to Operations Research.

31

Classification of Optimal Solutions

Classification of Optimal Solutions

Consider the case where opt=min. Then by definition:

x* * iff f(x*) f(x) x If opt=max:

x* * iff f(x*) ≥ f(x) x Solutions of this type are called global optimal

solutions.

Page 32: 1 Welcome to 620-261 Introduction to Operations Research.

32

f(x)

Global max

Global min

X

Page 33: 1 Welcome to 620-261 Introduction to Operations Research.

33

Question:

How do we solve optimization problems of this type?

Answer:

There are no general purpose solution methods. The methods used are very much problem-dependent.

Page 34: 1 Welcome to 620-261 Introduction to Operations Research.

34

SuggestionSuggestion

Try to think about optimization problems in terms of the format:

Z*:= opt f(x)

s.t.----------------------------------------------------------

----------------------------- constraints----------------------------- constraints

----------------------------------------------------------

Page 35: 1 Welcome to 620-261 Introduction to Operations Research.

35

Thus ......... Modelling = Thus .........

Modelling = opt = ? f(x) = ? Constraints = ?

Page 36: 1 Welcome to 620-261 Introduction to Operations Research.

36

TipTip

You may find it useful to adopt the following approach:

Step 1: Identify and formulate the decision variables.

Step 2: Formulate the objective function and optimality criterion.

Step 3: Formulate the constraints.

But do not be dogmatic about it !!!!!

Page 37: 1 Welcome to 620-261 Introduction to Operations Research.

37

Example 2.4.2

False Coin ProblemExample 2.4.2

False Coin Problem

N coins N-1 have the same weight (“good”) 1 is heavier (“false”) Find the best weighing scheme using a

balance beam.

Page 38: 1 Welcome to 620-261 Introduction to Operations Research.

38

ObservationsObservations It does not make sense to put a different

number of coins on each side of the scale. The result of any non-trivial weighing must

fall into exactly one of the following cases:– False coin is on the False coin is on the left-handleft-hand side side– False coin is on the False coin is on the right-handright-hand side side– False coin is False coin is not on the scalenot on the scale

Page 39: 1 Welcome to 620-261 Introduction to Operations Research.

39

The scheme should tell us what to do at each “trial”, i.e. how many coins to place on each side of the scale, depending on how many coins are still to be inspected.

The term “Best” needs some clarification:

Page 40: 1 Welcome to 620-261 Introduction to Operations Research.

40

Best = ???Best = ??? “Best” = “fewest number of weighings”

is not well defined because a priori we don’t know how many weighings will be needed by a given scheme.

This is so because we do not know where the false coin will be placed.

The bottom line: who decides where the false coin will be as we implement the weighing scheme ?

Page 41: 1 Welcome to 620-261 Introduction to Operations Research.

41

We need help!!!We need help!!!

Many of the difficulties are nicely resolved if we assume that

Mother Nature Always Plays Against Us! Of course, if you are an optimist you may

prefer to assume that Mother Nature Always Plays in Our Favour!

Page 42: 1 Welcome to 620-261 Introduction to Operations Research.

42

AssumptionAssumption

Mother Nature Always Plays Against Us !

Observe that this assumption resolves the question of where the false coin will be.

Nature will always select the largest of (nL,nR,no)

nL nR

no

Page 43: 1 Welcome to 620-261 Introduction to Operations Research.

43

SolutionSolution

Let

n := Number of weighings required to identify the false coin.

xj := Number of coins placed on each side of the scale in the j-th weighing (j=1,2,3,...,n)

Page 44: 1 Welcome to 620-261 Introduction to Operations Research.

44

Thus, our objective function is

f(x1,x2,...,xn):= n

and

opt=min.

To complete the formulation of the problem we have to determine .

Page 45: 1 Welcome to 620-261 Introduction to Operations Research.

45

ConstraintsConstraintsLet

sj := Number of coins left for inspection after the j-th weighing (j = 0,1,2,...,n)

Then clearly,

s0 := N (All coins are yet to be inspected)

sn := 1 (Only false coin is left for inspection)

Page 46: 1 Welcome to 620-261 Introduction to Operations Research.

46

xj {0,1,2,...,[sj-1/2)]}

where

[z]:= Integer part of z.

Page 47: 1 Welcome to 620-261 Introduction to Operations Research.

47

Dynamics = ????Dynamics = ???? We have to specify the dynamics of the

process: how the {sj} are related to the {xj}.

This is not difficult because we assume that Nature Plays Against Us:

sj = max {xj , sj-1-2xj}

xj xj

sj-1-2xj

Page 48: 1 Welcome to 620-261 Introduction to Operations Research.

48

xj xj

sj-1-2xj

j-th weighing:

(j-1) weighing:

sj-1

coins left

sj = max {xj , sj-1-2xj}

Page 49: 1 Welcome to 620-261 Introduction to Operations Research.

49

Complete FormulationComplete Formulationz* :min n

s.t.

so N

sn 1

s j max{x j ,sj 1 2x j}, j 1,2,..,n

x j sj 1

2x j {0,1,2,...} (Erase N)

Page 50: 1 Welcome to 620-261 Introduction to Operations Research.

50

Complete FormulationComplete Formulation

z * :min n

s.t.

so N

sn 1

sj max{x j , s j 1 2x j}, j 1, 2,..,n

x sj 1

2x j{0,1, 2,...}

Page 51: 1 Welcome to 620-261 Introduction to Operations Research.

51

Examples of OR ProblemsExamples of OR Problems Example 2.4.6 Towers of Hanoi Task: Move the discs from left to right Rules:

– One disc at a timeOne disc at a time– No large disc on a small oneNo large disc on a small one

Page 52: 1 Welcome to 620-261 Introduction to Operations Research.

52

Example 2.4.4 Travelling Salesman Problem

Visit N cities, starting the tour and terminating it in the home city such that:

Each city (except the home city) is visited exactly once

The tour is as short as possible.

Question: What is the optimal tour?

Page 53: 1 Welcome to 620-261 Introduction to Operations Research.

53

Remark:

There are (N-1)! distinct tours. This means that for 11 cities there are 3,628,800 possible tours and for N=21 cities there are 2x1018 possible tours !!!!!!!!!!!!!!!

Page 54: 1 Welcome to 620-261 Introduction to Operations Research.

54

If we try to enumerate all the feasible tours for N=21 using a super fast computer capable of enumerating 1,000,000,000 tours per second, we will complete the enumeration of all the feasible tours in approximately 800 years.

This phenomenon is known as

The Curse of Dimensionality!