1. Trang chủ
  2. » Luận Văn - Báo Cáo

Giao trinh bai tap chuong 1 congtac kysu hdxb

33 248 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 33
Dung lượng 114,06 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

ASSIGNMENT PROBLEM‰ We wish to determine the optimal match, i.e., the assignment with the lowest total costs of doing the jobs on the n machines ‰ The brute force approach is simply en

Trang 1

ECE 307 - Techniques for Engineering

Decisions

Hungarian Method

George Gross

Department of Electrical and Computer Engineering

University of Illinois at Urbana-Champaign

Trang 2

ASSIGNMENT PROBLEM

‰ We are given

n machines M 1 , M 2 , … , M n i

n jobs J 1 , J 2 , … , J n j

cost of doing job j on machine i

Q if job j cannot be done on machine i

‰ Each machine can only do one job and each job

requires one machine

c ij =

Trang 3

ASSIGNMENT PROBLEM

‰ We wish to determine the optimal match, i.e., the

assignment with the lowest total costs of doing

the jobs on the n machines

‰ The brute force approach is simply enumeration:

consider n = 10 and there are 3,628,800 possible

choices!

Trang 5

SOLUTION APPROACH

‰ The assignment problem, then, is formulated as

‰ Thus, the assignment problem can be viewed as

a special case of transportation problem

n

ij i

Trang 6

COST MATRIX

1 1

Trang 7

SIMPLIFIED COST MATRIX

‰ Since demands and supplies are 1 for all

assign-ment problems, we represent the assignassign-ment

problem by the cost matrix below

Trang 8

HISTORY OF HUNGARIAN METHOD

‰ First published by Harold Kuhn in 1955

‰ Based on earlier works of two Hungarian

mathematicians, Dénes König and Jenő Egerváry

Trang 9

‰ If optimizes problem (i ), then

also optimizes problem (ii)

n

ij i

n

ij i

Trang 10

BASIC IDEA

‰ The optimal assignment is not affected by a

constant added or subtracted from any row of the original assignment cost matrix by the fact in the previous slide and

‰ A similar statement holds with respect to the

column of the cost matrix

Trang 11

BASIC IDEA

‰ If all elements of the cost matrix are nonnegative,

then the objective is nonnegative

‰ If the objective is nonnegative, and there exists a

feasible solution such that the total cost is zero, then the feasible solution is the optimal solution

Trang 12

THE HUNGARIAN METHOD

‰ For each i , we consider the elements i and

compute

and subtract from each element in row i to get

‰ Then, we do the same procedure to each column

‰ We try to assign jobs only using the machines

with zero costs since such an assignment, if

Trang 13

EXAMPLE 1

6 5

3 4

M 4

2 1

1 2

M 3

6 5

4 3

M 2

7

8 9

Trang 14

EXAMPLE 1

6 5

2

M 3

6 5

Trang 15

EXAMPLE 1

3 2

1

M 3

3 2

Trang 16

EXAMPLE 1

3 2

1

M 3

3 2

Trang 17

HUNGARIAN METHOD

‰ In general, feasible assignment only using cells

with zero costs may not exist after single row and column subtraction

‰ In such cases, we need to draw a minimum

number of lines through certain rows and

columns to cover all the cells with zero cost

‰ The minimum number of lines needed is the

maximum number of jobs that can be assigned to the zero cells subject to all the constraints, a

result that was proved by König

Trang 18

HUNGARIAN METHOD

‰ Then we look up the submatrix that is not covered

by the lines to identify the smallest element

‰ Subtract from each element of the submatrix the

value of the smallest element and add the value to all elements at the intersection of two lines

Trang 19

HUNGARIAN METHOD

‰ The rationale for this operation is that we subtract

the smallest value from each element in a row

including any element that is covered by a line; to compensate we also need to add an equal value to the element which is covered by the intersection

of two lines and therefore the operation keeps the value of the elements not at an intersection

unchanged

Trang 20

EXAMPLE 2

5 4

3 2

M 4

5 6

4 5

M 3

8 7

8 5

M 2

8 7

9 10

Trang 21

EXAMPLE 2

5 4

3

2

M 4

5 6

4

5

M 3

8 7

Trang 22

EXAMPLE 2

3 2

1

0

M 4

1 2

0

1

M 3

3 2

Trang 23

EXAMPLE 2

3 2

Trang 24

EXAMPLE 2

2 2

3

0

M 2

0 0

2 3

Trang 25

EXAMPLE 2

2 2

3

0

M 2

0 0

2 3

Trang 26

EXAMPLE 2

1 1

0 0

2

0

M 2

0 0

Trang 27

EXAMPLE 2

1 1

0 0

2

0

M 2

0 0

2 4

Trang 28

PROBLEM 3-13

‰ We cast the problem as an assignment with the

days being the machines and the courses being the jobs

‰ In order for the assignment problem to be

balanced, we introduce an additional course

whose costs are zero for each day

Trang 29

PROBLEM 3-13

0

30

10 20

10

M 5

0

30 20

30 30

30 40

M 2

0

20

60 40

Trang 30

PROBLEM 3-13

0

10

0 0

0

M 5

0

10 10

10 20

M 4

0

0 20

0 50

M 3

0

10 30

10 30

M 2

0

0 50

20 40

Trang 31

PROBLEM 3-13

0

10

0 0

0

M 5

0

10 10

10

20

M 4

0 0

20 0

50 20

Trang 32

PROBLEM 3-13

10

10

0 0

0

M 5

0 0

0 0

Trang 33

PROBLEM 3-13

10 10

0 0

0

M 5

0 0

0 0

Ngày đăng: 09/12/2016, 07:34

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm