Docsity

Understanding the Simplex Algorithms - Lecture Slides | MA 162, Study notes of Mathematics

Partial preview of the text

Download Understanding the Simplex Algorithms - Lecture Slides | MA 162 and more Study notes Mathematics in PDF only on Docsity!

Understanding the Simplex algorithm.

Ma 162 Spring 2009

Ma 162 Spring 2009

February 2009

Standard Optimization Problems.

A standard maximization problem can be conveniently described in matrix form as follows. Maximize P = CX subject to AX ≤ B and X ≥ 0. Here, X is a column of the variables used in the problem, C is a row vector, so that P = CX is a linear function of X. It is often similar to a profit function, hence the letter P. Moreover, in the current course we assume that B ≥ 0. This insures that the choice X = 0 satisfies all the inequalities, i.e. is a feasible solution. Problems can be analyzed without this assumption, but we won’t try to solve them not in this course. Here is an example (4.1 Example 3): Take

A =

  

   ,^ B^ =

  

   and^ C^ =

[ 2 2 1

] .

Standard Optimization Problems.

A standard maximization problem can be conveniently described in matrix form as follows. Maximize P = CX subject to AX ≤ B and X ≥ 0. Here, X is a column of the variables used in the problem, C is a row vector, so that P = CX is a linear function of X. It is often similar to a profit function, hence the letter P. Moreover, in the current course we assume that B ≥ 0. This insures that the choice X = 0 satisfies all the inequalities, i.e. is a feasible solution. Problems can be analyzed without this assumption, but we won’t try to solve them not in this course. Here is an example (4.1 Example 3): Take

A =

  

   ,^ B^ =

  

   and^ C^ =

[ 2 2 1

] .

Standard Optimization Problems.

A standard maximization problem can be conveniently described in matrix form as follows. Maximize P = CX subject to AX ≤ B and X ≥ 0. Here, X is a column of the variables used in the problem, C is a row vector, so that P = CX is a linear function of X. It is often similar to a profit function, hence the letter P. Moreover, in the current course we assume that B ≥ 0. This insures that the choice X = 0 satisfies all the inequalities, i.e. is a feasible solution. Problems can be analyzed without this assumption, but we won’t try to solve them not in this course. Here is an example (4.1 Example 3): Take

A =

  

   ,^ B^ =

  

   and^ C^ =

[ 2 2 1

] .

Example continued.

We construct a problem table (or tableau) recording all the coefficients as follows:    

x y z Constants 2 1 2 14 2 4 1 26 1 2 3 28 2 2 1 ∗

   ^ or symbolically

 

X Constants A B C ∗

 .

We are using the title “constants” to match the book notation. When we write the Simplex tableau, it may be changed to RHS, since in the tableau, we have equations, not just inequalities.

Example continued.

We construct a problem table (or tableau) recording all the coefficients as follows:    

x y z Constants 2 1 2 14 2 4 1 26 1 2 3 28 2 2 1 ∗

   ^ or symbolically

 

X Constants A B C ∗

 .

We are using the title “constants” to match the book notation. When we write the Simplex tableau, it may be changed to RHS, since in the tableau, we have equations, not just inequalities.

Example continued.

We construct a problem table (or tableau) recording all the coefficients as follows:    

x y z Constants 2 1 2 14 2 4 1 26 1 2 3 28 2 2 1 ∗

   ^ or symbolically

 

X Constants A B C ∗

 .

We are using the title “constants” to match the book notation. When we write the Simplex tableau, it may be changed to RHS, since in the tableau, we have equations, not just inequalities.

Minimization tableau.

There is a natural dual problem associated with this table and it has a dual problem table (tableau) as follows:    

u v w Constants 2 2 1 2 1 4 2 2 2 1 3 1 14 26 28 ∗

   ^ or symbolically

 

Y Constants A ′^ C ′ B ′^ ∗

 .

The matrices A ′ , B ′ , C ′^ are the transposes of A, B, C respectively. Thus the whole table is simply a transpose. Our dual problem is described as follows: Minimize 14 u + 26 v + 28 w subject to the conditions

2 u + 2 v + w ≥ 2 , u + 4 v + 2 w ≥ 2 , 2 u + v + 3 w ≥ 1 and u, v, w ≥ 0_._

Minimization tableau.

There is a natural dual problem associated with this table and it has a dual problem table (tableau) as follows:    

u v w Constants 2 2 1 2 1 4 2 2 2 1 3 1 14 26 28 ∗

   ^ or symbolically

 

Y Constants A ′^ C ′ B ′^ ∗

 .

The matrices A ′ , B ′ , C ′^ are the transposes of A, B, C respectively. Thus the whole table is simply a transpose. Our dual problem is described as follows: Minimize 14 u + 26 v + 28 w subject to the conditions

2 u + 2 v + w ≥ 2 , u + 4 v + 2 w ≥ 2 , 2 u + v + 3 w ≥ 1 and u, v, w ≥ 0_._

Minimization tableau.

There is a natural dual problem associated with this table and it has a dual problem table (tableau) as follows:    

u v w Constants 2 2 1 2 1 4 2 2 2 1 3 1 14 26 28 ∗

   ^ or symbolically

 

Y Constants A ′^ C ′ B ′^ ∗

 .

The matrices A ′ , B ′ , C ′^ are the transposes of A, B, C respectively. Thus the whole table is simply a transpose. Our dual problem is described as follows: Minimize 14 u + 26 v + 28 w subject to the conditions

2 u + 2 v + w ≥ 2 , u + 4 v + 2 w ≥ 2 , 2 u + v + 3 w ≥ 1 and u, v, w ≥ 0_._

Duality theorem.

The dual problem is described as a minimization problem as follows. We let Y be a row vector of variables, equal in number to the number of rows of A.

Minimize YB subject to YA ≥ C and Y ≥ 0_._

Compare this with the inequalities above by taking Y =

[ u v w

] . The reason to write Y as a row rather than a column is somewhat technical and would be clarified below. The amazing theorem called the “duality theorem” states that any solution of the original maximization problem by the Simplex Algorithm produces a solution to its dual minimization problem by simply reading the final tableau. We describe this next.

Duality theorem.

The dual problem is described as a minimization problem as follows. We let Y be a row vector of variables, equal in number to the number of rows of A.

Minimize YB subject to YA ≥ C and Y ≥ 0_._

Compare this with the inequalities above by taking Y =

[ u v w

] . The reason to write Y as a row rather than a column is somewhat technical and would be clarified below. The amazing theorem called the “duality theorem” states that any solution of the original maximization problem by the Simplex Algorithm produces a solution to its dual minimization problem by simply reading the final tableau. We describe this next.

Duality theorem.

The dual problem is described as a minimization problem as follows. We let Y be a row vector of variables, equal in number to the number of rows of A.

Minimize YB subject to YA ≥ C and Y ≥ 0_._

Compare this with the inequalities above by taking Y =

[ u v w

] . The reason to write Y as a row rather than a column is somewhat technical and would be clarified below. The amazing theorem called the “duality theorem” states that any solution of the original maximization problem by the Simplex Algorithm produces a solution to its dual minimization problem by simply reading the final tableau. We describe this next.

The solution from the algorithm.

For our maximization problem above, we record the starting and the final tableaux and then show how to interpret them. Starting tableau:     

x y z u v w P RHS 2 1 2 1 0 0 0 14 2 4 1 0 1 0 0 26 1 2 3 0 0 1 0 28 − 2 − 2 − 1 0 0 0 1 0

    

End tableau:     

x y z u v w P RHS 1 0 7 / 6 2 / 3 − 1 / 6 0 0 5 0 1 − 1 / 3 − 1 / 3 1 / 3 0 0 4 0 0 5 / 2 0 − 1 / 2 1 0 15 0 0 2 / 3 2 / 3 1 / 3 0 1 18

    