lecture 8 chapter 5

23
1 Lecture 8 Chapter 5 Def 5.1 Every local optimum for a LP is a global optimum. Def 5.3 If x is an extreme pointof a convex set, then there are no other points y and z in the set such that x lies on the line segment connecting y and z. Extreme Points

Upload: kylar

Post on 11-Jan-2016

29 views

Category:

Documents


0 download

DESCRIPTION

Lecture 8 Chapter 5. Def 5.1 Every local optimum for a LP is a global optimum. Def 5.3 If x is an extreme point of a convex set, then there are no other points y and z in the set such that x lies on the line segment connecting y and z. Extreme Points. Unique LP Optimum. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Lecture 8 Chapter 5

1

Lecture 8Chapter 5

Def 5.1 Every local optimum for a LP is a global optimum.

Def 5.3 If x is an extreme pointof a convex set, then there are no other points y and z in the set such that x lies on the line segment connecting y and z.

Extreme Points

Page 2: Lecture 8 Chapter 5

2

Unique LP Optimum

Def 5.5 If an LP has an optimum, then it has some extreme point that is an optimum.

(There may be other points that are optimal as well.)

Unique Optimal Solution

Page 3: Lecture 8 Chapter 5

3

Infinite Number Of Optimal Solutions

Infinite number of optimal solutions.

Do we have an extreme point that is an optimum?

Page 4: Lecture 8 Chapter 5

4

Interior Point That Is An Optimum

Please give an example of a LP that has an interior point as an optimum.

Minimize cx

What is c, so that red point is an optimum?

Page 5: Lecture 8 Chapter 5

5

Standard Notation For LPs

Minimize j cjxj

Subject toj aijxj = bi, all i

xj > 0, for all j

Minimixe cxSubject to

Ax = bx > 0

Summation Notation

Matrix Notation

Page 6: Lecture 8 Chapter 5

6

Converting To Standard Notation

Converting inequalities to equalities

2x + y < 10, x > 0, y > 0Becomes2x + y + s = 10, x > 0, y > 0, s > 0Try itx = 3, y = 3.5Implies that s must be 0.5How do you handle 2x + y > 10, x > 0, y > 0

Page 7: Lecture 8 Chapter 5

7

Solving Systems Of Equations

(Finding The Inverse By Inspection)Example #1X1 + X2 = 10

-X1 = -5

-X2 – X3 = -3

In matrix notation we have Bx = b

1 1 0

-1 0 0

0 -1 -1

B =

10

-5

-3

b =

Page 8: Lecture 8 Chapter 5

8

B-1 Is Inverse Of B

BB-1 = I =

Find B-1 by inspection

1 0 0

0 1 0

0 0 1

Page 9: Lecture 8 Chapter 5

9

Matrix Multiply

B B-1 = I

Matrix Multiply: Row r of B time Col c of B-1

Produces the r,c element of the result

1 0 0

0 1 0

0 0 1

1 1 0

-1 0 0

0 -1 -1

Page 10: Lecture 8 Chapter 5

10

Determine 1st Row

B B-1 = I

Matrix Multiply: Row r of B time Col c of B-1

Produces the r,c element of the result

1 0 0

0 1 0

0 0 1

0 -1 01 1 0

-1 0 0

0 -1 -1

Page 11: Lecture 8 Chapter 5

11

Determine 2nd Row

B B-1 = I

Matrix Multiply: Row r of B time Col c of B-1

Produces the r,c element of the result

1 0 0

0 1 0

0 0 1

0 -1 0

1 1 0

1 1 0

-1 0 0

0 -1 -1

Page 12: Lecture 8 Chapter 5

12

Determine 3rd Row

B B-1 = I

Matrix Multiply: Row r of B time Col c of B-1

Produces the r,c element of the result

1 0 0

0 1 0

0 0 1

0 -1 0

1 1 0

-1 -1 -1

1 1 0

-1 0 0

0 -1 -1

Page 13: Lecture 8 Chapter 5

13

Solution To Equations

x = B-1b = =

Check The Solution X1 = 5, X2 = 5, X3 = -2

X1 + X2 = 10

-X1 = -5

-X2 – X3 = -3

0 -1 0

1 1 0

-1 -1 -1

10

-5

-3

5

5

-2

Page 14: Lecture 8 Chapter 5

14

Example 2

X1 + X2 = 10

-X1 = -2

X3 = -3

X4 = -1

-X2 – X3 – X4 + X5 = 2

Bx = b

Page 15: Lecture 8 Chapter 5

15

What Row Do We Find First?

B B-1 = I

1 1

-1

1

1

-1

-1

-1 1

1

1

1

1

1

Page 16: Lecture 8 Chapter 5

16

Row 3

B B-1 = I

1 1

-1

1

1

-1

-1

-1 1

0 0 1 0 0

1

1

1

1

1

Page 17: Lecture 8 Chapter 5

17

Row 1

B B-1 = I

1 1

-1

1

1

-1

-1

-1 1

0 -1 0 0 0

0 0 1 0 0

1

1

1

1

1

Page 18: Lecture 8 Chapter 5

18

Row 2

B B-1 = I

1 1

-1

1

1

-1

-1

-1 1

0 -1 0 0 0

1 1 0 0 0

0 0 1 0 0

1

1

1

1

1

Page 19: Lecture 8 Chapter 5

19

Row 4

B B-1 = I

1 1

-1

1

1

-1

-1

-1 1

0 -1 0 0 0

1 1 0 0 0

0 0 1 0 0

0 0 0 1 0

1

1

1

1

1

Page 20: Lecture 8 Chapter 5

20

Row 5

B B-1 = I

1 1

-1

1

1

-1

-1

-1 1

0 -1 0 0 0

1 1 0 0 0

0 0 1 0 0

0 0 0 1 0

0 1 1 1 1

1

1

1

1

1

Page 21: Lecture 8 Chapter 5

21

Solution

Solution is given by x = B-1b

0 -1 0 0 0

1 1 0 0 0

0 0 1 0 0

0 0 0 1 0

0 1 1 1 1

10

-2

-3

-1

2

=

2

8

-3

-1

6

Page 22: Lecture 8 Chapter 5

22

Check

X1 = 2, X2 = 8, X3 = -3, X4 = -1, X5 = 6

X1 + X2 = 10

-X1 = -2

X3 = -3

X4 = -1

-X2 – X3 – X4 + X5 = 2

Page 23: Lecture 8 Chapter 5

23

To Solve LPs

To solve linear programs, we have to solve a sequence of systems of equations. Actually, we solve

vB = cB and By = aj

for v any y at each iteration (step).

cB, B, and aj are all original data in the problem.