math 4211 6211 optimization linear programming
play

MATH 4211/6211 Optimization Linear Programming Xiaojing Ye - PowerPoint PPT Presentation

MATH 4211/6211 Optimization Linear Programming Xiaojing Ye Department of Mathematics & Statistics Georgia State University Xiaojing Ye, Math & Stat, Georgia State University 0 The standard form of a Linear Program (LP) c x


  1. MATH 4211/6211 – Optimization Linear Programming Xiaojing Ye Department of Mathematics & Statistics Georgia State University Xiaojing Ye, Math & Stat, Georgia State University 0

  2. The standard form of a Linear Program (LP) c ⊤ x minimize subject to Ax = b x ≥ 0 where • x ∈ R n is the unknown variable; • A ∈ R m × n is given, where m < n and rank ( A ) = m ; • b ∈ R m is given. Xiaojing Ye, Math & Stat, Georgia State University 1

  3. Other forms of LP can be converted to the standard form. For example, suppose an LP is given as c ⊤ x maximize subject to Ax ≤ b x ≥ 0 Then we can rewrite it as an equivalent standard form ( − c ) ⊤ x minimize Ax + y = b subject to x , y ≥ 0 where [ x ; y ] ∈ R n + m is the variable to solve for now, and y is called the slack variable. If [ x ∗ ; y ∗ ] is a solution of the new problem, then x ∗ is a solution of the original problem. Xiaojing Ye, Math & Stat, Georgia State University 2

  4. Example . Convert the LP below into the standard form maximize x 2 − x 1 subject to 3 x 1 = x 2 − 5 | x 2 | ≤ 2 x 1 ≤ 0 • x ′ ⇒ x ′ 1 := − x 1 , then x 1 ≤ 0 ⇐ 1 ≥ 0 • x 2 = u − v where u, v ≥ 0 • | x 2 | ≤ 2 ⇐ ⇒ − 2 ≤ u − v ≤ 2 • Introduce slack variables x 3 , x 4 ≥ 0 such that u − v + x 3 = 2 and u − v − x 4 = − 2 Xiaojing Ye, Math & Stat, Georgia State University 3

  5. Example (cont) . Now we obtain an equivalent problem: − x ′ minimize 1 − u + v 3 x ′ subject to 1 + u − v = 5 u − v + x 3 = 2 u − v − x 4 = − 2 x ′ 1 , u, v, x 3 , x 4 ≥ 0 Note that there are 5 variables now. Xiaojing Ye, Math & Stat, Georgia State University 4

  6. Example . Suppose a factory wants to manufacture 4 products with the cost and budget (availability), as well as their profits, given in the table below. The goal is to maximize total profit. P1 P2 P3 P4 availability man weeks 1 2 1 2 20 kg of material A 6 5 3 2 100 boxes of material B 3 4 9 12 75 profit 6 4 7 5 Solution . Let x i be the quantity to manufacture product i , then the LP is maximize 6 x 1 + 4 x 2 + 7 x 3 + 5 x 4 subject to x 1 + 2 x 2 + x 3 + 2 x 4 ≤ 20 6 x 1 + 5 x 2 + 3 x 3 + 2 x 4 ≤ 100 3 x 1 + 4 x 2 + 9 x 3 + 12 x 3 ≤ 75 x 1 , x 2 , x 3 , x 4 ≥ 0 Exercise : convert this into the standard form of LP . Xiaojing Ye, Math & Stat, Georgia State University 5

  7. Geometric interpretation of the feasible set Ω = { x ∈ R n : Ax ≤ b , x ≥ 0 } : Let a ⊤ i be the i th row of A for i = 1 , . . . , m . Then a ⊤ i x ≤ b i is a half space. Hence Ax ≤ b is the intersection of m half spaces, which is a polyhedra . So is Ω . The objective c ⊤ x is a plane with slope defined on Ω , and the optimal point x ∗ is the point in Ω that has the minimum value c ⊤ x ∗ . Xiaojing Ye, Math & Stat, Georgia State University 6

  8. Basic solutions of linear system Ax = b . Suppose A = [ B D ] where B ∈ R m × m has rank ( B ) = m . Denote x B = B − 1 b ∈ R m . Then � � x B ∈ R n x = 0 is called a basic solution of Ax = b . Xiaojing Ye, Math & Stat, Georgia State University 7

  9. Definition . We introduce the following terms: • x B ∈ R m : basic variables • If x B has zero component(s), then x is called a degenerate basic solution � n � • B : basic columns of A . Note that in practice there are up to ways to m choose the basic columns. • x is called a feasible point if x ∈ Ω := { x ∈ R n : Ax = b , x ≥ 0 } . • x is called a basic feasible point if x is a basic solution and also feasible. • x ∗ ∈ Ω is called an optimal (feasible) solution if c ⊤ x ∗ ≤ c ⊤ x for all x ∈ Ω . Xiaojing Ye, Math & Stat, Georgia State University 8

  10. Properties of basic solutions Theorem (Fundamental Theorem of LP) . For an LP with nonempty feasible set Ω , the following statements hold: (a) A basic feasible point exists. (b) If LP has solution, then there exists an optimal basic feasible solution. Xiaojing Ye, Math & Stat, Georgia State University 9

  11. Proof . Part (a). Let x ∈ Ω (since Ω � = ∅ ), i.e., Ax = b and x ≥ 0 . WLOG, assume x 1 , . . . , x p > 0 and x p +1 , . . . , x n = 0 . Then Ax = x 1 a 1 + · · · + x p a p = b where A = [ a 1 , . . . , a p , . . . , a n ] . If a 1 , . . . , a p are linearly independent, then p ≤ m (since A ∈ R m × n ), and hence x is a basic feasible point. If a 1 , . . . , a p are linearly dependent, then ∃ y 1 , . . . , y p ∈ R not all zero such that Ay = y 1 a 1 + · · · + y p a p = 0 where y = [ y 1 , . . . , y p , 0 , . . . , 0] ⊤ ∈ R n (WLOG we assume at least one y i > 0 otherwise take y = − y ), then we know A ( x − ε y ) = b for all ε . Xiaojing Ye, Math & Stat, Georgia State University 10

  12. Proof (cont) . Choose ε = min { x i /y i : y i > 0 } , then x − ε y ∈ Ω and has only p − 1 nonzero components. We update x to x − ε y (then x ≥ 0 and has p − 1 positive components). Repeat this procedure until we find the basic columns of A and its correspond- ing basic feasible point. Xiaojing Ye, Math & Stat, Georgia State University 11

  13. Proof (cont) . Part (b). Let x ∈ Ω be optimal, and again WLOG assume x 1 , . . . , x p > 0 . If a 1 , . . . , a p are linearly independent, then p ≤ m and x is also a basic solution. Hence x is optimal, basic, and feasible. If a 1 , . . . , a p are linearly dependent, then with the same argument as in (a), ∃ y 1 , . . . , y p ∈ R not all zero such that Ay = y 1 a 1 + · · · + y p a p = 0 If c ⊤ y � = 0 (say > 0 ), then by choosing any 0 < ε ≤ min {| x i /y i | : y i � = 0 } , we have x − ε y ∈ Ω and c ⊤ ( x − ε y ) = c ⊤ x − ε c ⊤ y < c ⊤ x , which contradicts to the optimality of x . Hence c ⊤ y = 0 . So we can choose ε in the same way as in (a) to get x − ε y which has p − 1 nonzeros. Repeat to obtain an optimal, basic, and feasible solution. Xiaojing Ye, Math & Stat, Georgia State University 12

  14. Theorem . Consider an LP with nonempty Ω , then x is an extreme point of Ω iff x is a basic feasible point. In theory, we only need to examine the basic feasible points of Ω and find the optimal basic feasible solution of the LP . However, there could be a large amount of extreme points to examine. Xiaojing Ye, Math & Stat, Georgia State University 13

  15. Now we study the Simplex Method designed for LP . Recall basic row operations to linear system Ax = b : • interchange two rows • multiply one row by a real nonzero scalar • adding a scalar multiple of one row to another row Each of these operations corresponds to an invertible matrix E ∈ R m premul- tiplying to A . Xiaojing Ye, Math & Stat, Georgia State University 14

  16. Also recall that, to solve a linear system Ax = b , we first form the augmented matrix [ A , b ] , then apply a series of row operations, say E 1 , . . . , E t , to the matrix to obtain E t · · · E 1 [ A , b ] = [ I , D , B − 1 b ] where D is such that E t . . . E 1 A = [ I , D ] and B = ( E t · · · E 1 ) − 1 ∈ R m × m is invertible. Note A = [ B , BD ] . Then a particular solution of Ax = b is x = [ B − 1 b ; 0 ] ∈ R n . In addition, note that [ − Dx D ; x D ] ∈ R n is a solution of [ I , D ] x = 0 (hence a solution of Ax = 0 ) for any x D ∈ R n − m . Therefore, any solution of Ax = b can be written for some x D ∈ R n − m as � B − 1 b � � � − Dx D x = + x D 0 Xiaojing Ye, Math & Stat, Georgia State University 15

  17. Suppose we have applied basic row operations and converted Ax = b to [ I , Y ] x = y 0 (called the canonical form ) where     y 1 m +1 · · · y 1 n y 10 . . . ...  ∈ R m × ( n − m )  ∈ R m . . . Y = y 0 = . . .       y m m +1 · · · y m n y m 0 Note that the column y q = [ y 1 q ; . . . ; y mq ] ∈ R m ( q > m ) gives the coefficients to represent a q using a 1 , . . . , a m , where a i is the i th column of A : a q = y 1 q a 1 + · · · + y mq a m = [ a 1 , . . . , a m ] y q since A = [ a 1 , . . . , a m , a m +1 , . . . , a n ] = [ B , BY ] . Now we are using a 1 , . . . , a m as basic columns, and x = [ B − 1 b ; 0 ] is the corresponding basic solution to Ax = b . If B − 1 b ≥ 0 , then x is a basic feasible point of the LP . We temporarily assume we started with a basic feasible point. Xiaojing Ye, Math & Stat, Georgia State University 16

  18. Now we want to move to another basic feasible point. To this end, we need to exchange one of a 1 , . . . , a m with another a q ( q > m ) to form the new basic columns, find the corresponding basic solution x of Ax = b , making sure that x ≥ 0 . Exchanging basic columns p and q where p ≤ m < q is simple: just apply basic row operations [ I , Y ] so that the q th column becomes e p . Here e p ∈ R n is the vector with 1 as the p th component and 0 elsewhere. However, which a q we should choose to enter the basic columns, and which a p to leave? Xiaojing Ye, Math & Stat, Georgia State University 17

  19. Since x = [ y 10 ; . . . ; y m 0 ; 0; . . . ; 0] ∈ R n + is a basic solution corresponding to Ax = b , we know y 10 a 1 + · · · + y m 0 a m = b Suppose we decide to let a q enter the basic columns, then due to a q = y 1 q a 1 + · · · + y mq a m = [ a 1 , . . . , a m ] y q we know for any ε ≥ 0 there is ( y 10 − εy 1 q ) a 1 + · · · + ( y m 0 − εy mq ) a m + ε a q = b Xiaojing Ye, Math & Stat, Georgia State University 18

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend