The Fundamental Insight

Similar documents
1 Simplex and Matrices

x y = 1, 2x y + z = 2, and 3w + x + y + 2z = 0

Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

13. Systems of Linear Equations 1

1. Introduce slack variables for each inequaility to make them equations and rewrite the objective function in the form ax by cz... + P = 0.

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

22A-2 SUMMER 2014 LECTURE Agenda

What is A + B? What is A B? What is AB? What is BA? What is A 2? and B = QUESTION 2. What is the reduced row echelon matrix of A =

Matrix operations Linear Algebra with Computer Science Application

Elementary maths for GMT

10. Linear Systems of ODEs, Matrix multiplication, superposition principle (parts of sections )

Section 1.1: Systems of Linear Equations

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

Mathematics 13: Lecture 10

Designing Information Devices and Systems I Spring 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

POLI270 - Linear Algebra

OPRE 6201 : 3. Special Cases

3. Replace any row by the sum of that row and a constant multiple of any other row.

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

4.3 Minimizing & Mixed Constraints

Systems Analysis in Construction

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

MATH 4211/6211 Optimization Linear Programming

Solving Linear Systems Using Gaussian Elimination

Matrix Arithmetic. a 11 a. A + B = + a m1 a mn. + b. a 11 + b 11 a 1n + b 1n = a m1. b m1 b mn. and scalar multiplication for matrices via.

. =. a i1 x 1 + a i2 x 2 + a in x n = b i. a 11 a 12 a 1n a 21 a 22 a 1n. i1 a i2 a in

Review of Matrices and Block Structures

EBG # 3 Using Gaussian Elimination (Echelon Form) Gaussian Elimination: 0s below the main diagonal

1 Last time: linear systems and row operations

Linear Programming in Matrix Form

The Simplex Method: An Example

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

Lecture 3: Gaussian Elimination, continued. Lecture 3: Gaussian Elimination, continued

Relationships Between Planes

Lecture 7: Introduction to linear systems

Linear Equations in Linear Algebra

Chapter 1. Vectors, Matrices, and Linear Spaces

ORF 522. Linear Programming and Convex Analysis

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

Evaluating Determinants by Row Reduction

CHAPTER 8: MATRICES and DETERMINANTS

Linear Equations in Linear Algebra

a. Define your variables. b. Construct and fill in a table. c. State the Linear Programming Problem. Do Not Solve.

Section Gauss Elimination for Systems of Linear Equations

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

Section Gauss Elimination for Systems of Linear Equations

Exercise Sketch these lines and find their intersection.

MAT 1332: CALCULUS FOR LIFE SCIENCES. Contents. 1. Review: Linear Algebra II Vectors and matrices Definition. 1.2.

Understanding the Simplex algorithm. Standard Optimization Problems.

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

Matrix decompositions

Review of Linear Algebra

Matrix & Linear Algebra

Relation of Pure Minimum Cost Flow Model to Linear Programming

5x 2 = 10. x 1 + 7(2) = 4. x 1 3x 2 = 4. 3x 1 + 9x 2 = 8

Linear Algebra Linear Algebra : Matrix decompositions Monday, February 11th Math 365 Week #4

Matrices. In this chapter: matrices, determinants. inverse matrix

Working with Block Structured Matrices

MA 1B PRACTICAL - HOMEWORK SET 3 SOLUTIONS. Solution. (d) We have matrix form Ax = b and vector equation 4

CHAPTER 8: MATRICES and DETERMINANTS

Linear Algebra and Matrix Inversion

(17) (18)

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

Linear equations The first case of a linear equation you learn is in one variable, for instance:

Linear Algebra, Summer 2011, pt. 2

(Refer Slide Time: 1:02)

Linear Algebra (part 1) : Matrices and Systems of Linear Equations (by Evan Dummit, 2016, v. 2.02)

Linear Programming, Lecture 4

Math 210 Finite Mathematics Chapter 4.2 Linear Programming Problems Minimization - The Dual Problem

Matrix Basic Concepts

Gaussian Elimination and Back Substitution

Ω R n is called the constraint set or feasible set. x 1

Solving Systems of Linear Equations

1111: Linear Algebra I

Determinants of 2 2 Matrices

Matrix decompositions

Linear Algebra I Lecture 8

Matrices: 2.1 Operations with Matrices

c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

+ 5x 2. = x x. + x 2. Transform the original system into a system x 2 = x x 1. = x 1

1 - Systems of Linear Equations

Vector, Matrix, and Tensor Derivatives

Math "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

Optimization 4. GAME THEORY

6.2: The Simplex Method: Maximization (with problem constraints of the form )

Linear Equations in Linear Algebra

4 Elementary matrices, continued

Math Models of OR: Some Definitions

MATH 320, WEEK 7: Matrices, Matrix Operations

CLASS 12 ALGEBRA OF MATRICES

Sections 6.1 and 6.2: Systems of Linear Equations

1300 Linear Algebra and Vector Geometry Week 2: Jan , Gauss-Jordan, homogeneous matrices, intro matrix arithmetic

Section 9.2: Matrices.. a m1 a m2 a mn

CLASSICAL FORMS OF LINEAR PROGRAMS, CONVERSION TECHNIQUES, AND SOME NOTATION

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

= main diagonal, in the order in which their corresponding eigenvectors appear as columns of E.

Chapter 4. Determinants

Illustration of Gaussian elimination to find LU factorization. A = a 11 a 12 a 13 a 14 a 21 a 22 a 23 a 24 a 31 a 32 a 33 a 34 a 41 a 42 a 43 a 44

CS227-Scientific Computing. Lecture 4: A Crash Course in Linear Algebra

Transcription:

The Fundamental Insight We will begin with a review of matrix multiplication which is needed for the development of the fundamental insight A matrix is simply an array of numbers If a given array has m rows and n columns then it is called an m n (or m-by-n) matrix As examples the array A 1 1 1 0 is a matrix; and the array A 0 4 1 5 1 is a matrix A number can be viewed as a 11 matrix We are of course familiar with the multiplication of numbers The multiplication between two matrices is an operation that is an extension of the multiplication operation between two numbers (ie two 11 matrices) This extension however will not be applicable to all pairs of matrices More specifically let A and B be two matrices; then the product of these two matrices denoted by A B is defined only when the number of columns in A is the same as the number of rows in B Since the matrices A 1 and A above satisfy this condition we will first construct the product of these two matrices as a specific numerically example Denote by A the product of A 1 and A The number of rows in A will be identical to that of A 1 ; and the number of columns in A will be identical to that of A That is A will have rows and columns We will construct the rows in A one by one The first row in A will be determined by entries in the first row in A 1 and all of the rows in A as follows Denote the entries in the first row of A 1 by a 11 a 1 and a 1 ; and denote the rows in A by R 1 R and R Then the first row in A is defined to be the outcome of the row operations a 11 R 1 + a 1 R + a 1 R Explicitly these operations yield 1 0 4 + ( 1) 1 + 0 5 1 In a similar way the second row of A will be determined by entries in the second row in A 1 and all of the rows in A as follows ( ) 0 4 + 1 + 1 5 1 11 6

Hence the product of A 1 and A is given by A 11 6 Although the above numerical illustration of the definition of matrix multiplication is actually sufficient for our modest purposes here we will quickly summarize these calculations in a formal definition for the sake of completeness Let C denote the product of two matrices A and B Suppose A is m k and B is k n; and let a ij and b ij denote the respective entries at the intersection of the ith row and the jth column in A and B Then C is defined as the m n matrix whose entry at the intersection of its ith row and its jth column is specified by k c ij a il b lj l1 What is the connection between matrix multiplication and the Simplex algorithm? Observe that in the calculation of the product of A 1 and A entries in the first row of A 1 namely 1 1 and 0 serve as individual multipliers to R 1 R and R ; and entries in the second row of A 1 namely and serve as a second set of multipliers to R 1 R and R With this perspective we see that the language of matrix multiplication offers a very compact description of sets of row operations Indeed our next step is to show that each pivot in the Simplex algorithm is equivalent to pre-multiplying a given tableau by an appropriately-chosen matrix To understand what this statement means we will revisit the linear program below and use it as a concrete example Maximize Subject to: z z 4x 1 x 0 (0) x 1 +x +s 1 6 (1) x 1 +x +s () x +s 5 () x 1 +x +s 4 4 (4) x 1 x s 1 s s s 4 0 Ignoring the variable names the initial tableau for this problem is:

We will view this tableau as a matrix with 5 rows and 8 columns; and we will refer to it as T I Recall that the pivot element in the ensuing pivot is the entry located at the intersection of the last row and the second column; and that the specific row operations performed in this pivot are: R 4 + R 0 ( 1) R 4 + R 1 (/) R 4 + R 0 R 4 + R and (1/) R 4 Consider the first set of operations namely R 4 + R 0 Observe that this recipe can be rewritten as 1 R 0 + 0 R 1 + 0 R + 0 R + R 4 In other words we can explicitly indicate the nonparticipation of R 1 R and R in these operations by introducing three new multipliers that are equal to 0 This augmented recipe provides a more-complete description of the operations in that the level of participation of every row in T I is explicitly indicated via an associated multiplier Similarly the operations ( 1) R 4 + R 1 can be rewritten as 0 R 0 + 1 R 1 + 0 R + 0 R + ( 1) R 4 ; the operations (/) R 4 + R as 0 R 0 + 0 R 1 + 1 R + 0 R + (/) R 4 ; the operations 0 R 4 + R as 0 R 0 + 0 R 1 + 0 R + 1 R + 0 R 4 ; and the operation (1/) R 4 as 0 R 0 + 0 R 1 + 0 R + 0 R + (1/) R 4 Thus to produce the new R 0 we perform the matrix multiplication 1 0 0 0 1 0 1 0 0 0 8 ; and similarly to produce the remaining new rows we perform the matrix multiplications: 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 / 0 0 0 1 0 0 0 7/ 0 1 0 / 9

and 0 0 0 0 1/ 0 1 1/ 0 0 0 1/ In fact if we combine all five sets of multipliers into a single matrix ie if we let P 1 1 0 0 0 0 1 0 0 1 0 0 1 0 / 0 0 0 1 0 0 0 0 0 1/ then all of the above operations can be consolidated into a single matrix multiplication namely 1 0 0 0 0 1 0 0 1 0 0 1 0 / 0 0 0 1 0 0 0 0 0 1/ 1 0 1 0 0 0 8 0 0 1 0 0 1 0 0 7/ 0 1 0 / 9 0 1 1/ 0 0 0 1/ ; and the outcome of this multiplication is precisely the tableau produced by the first pivot in the Simplex algorithm Now if we denote the matrix at the right-hand side of the above display as T 1 then what we have is that P 1 T I T 1 In words this means that the Simplex tableau T 1 obtained after the first pivot is simply the product of the matrix P 1 and the initial tableau T I Continuing in this manner and using similar notation we see that the combined effects of k consecutive pivots starting with the initial tableau T I can be conceptualized as P k P 1 T I T k 4

In particular if we are interested in the final tableau which we denote by T F then we have P T I T F where P is defined as the product of the string of matrices (of the form P k P 1 ) that correspond to individual pivots that together lead to the final tableau In other words we have arrived at the conclusion that there exists a matrix P such that P T I T F ; and that the matrix P fully captures the combined effects of all successive pivots This remarkably simple fact will be referred to as the fundamental insight Observe however that the fundamental insight is essentially useless unless the matrix P is somehow available to us So the next question is: How does one determine the entries in P? A little bit of reflection now leads us to the (unfortunate) realization that the Simplex algorithm itself can in fact be viewed as a procedure for generating the matrix P In other words there is no free lunch However we will show that the story becomes quite different if we had gone through the solution of a linear program once Let us again return to the linear program above Since we did solve that problem to optimality in an earlier section the final tableau for this problem is available to us This tableau is reproduced below z x 1 x s 1 s s s 4 1 0 0 1/ 0 0 / 9 0 0 1 1/ 0 0 1/ 1 0 0 0 7/4 1 0 1/4 11/ 0 0 0 1 0 1 1 0 1 0 1/4 0 0 /4 / In our current notation this means that we have T F 1 0 0 1/ 0 0 / 9 0 0 1 1/ 0 0 1/ 1 0 0 0 7/4 1 0 1/4 11/ 0 0 0 1 0 1 1 0 1 0 1/4 0 0 /4 / Therefore in the relation P T I T F both T I and T F are explicitly known to us This naturally suggests that we might be able to identify P more easily It turns out that this indeed is possible We will next describe two additional properties of matrix multiplications that will help us identify P 5

An n n square matrix is called an identity matrix if all of its diagonal entries are equal to 1 and all of its off-diagonal entries are equal to 0 Such a matrix will be denoted by I n For example a identity matrix assumes the form: I 1 0 0 0 1 0 0 0 1 It is easily seen that if we are given a matrix A with n columns then A I n A That is (post) multiplying a given matrix by I n will not change the identity of that matrix (This is why we call I n the identity matrix) Next we will revisit the matrices A 1 and A and use them to illustrate a slightly different way to describe a matrix multiplication First we will view the matrix A as a collection of three 1 matrices or columns These columns are explicitly given by c 1 1 5 c 0 1 and c 4 Next recall that the first column in A (the product of A 1 and A ) is It is easily seen that this column can be computed via A 1 c 1 ie 1 1 0 and similarly that the remaining two columns in A can be computed via A 1 c and A 1 c More formally we have 1 5 A A 1 A A 1 c 1 c c ; A 1 c 1 A 1 c A 1 c ; that is the matrix A can be generated one column at a time by executing a sequence of matrix products of the form A 1 c j with j 1 We now return to our example Observe that in the initial tableau the columns associated with the variables z s 1 s s and s 4 constitute a 5 5 identity matrix I 5 Therefore if 6

we focus our attention on these five columns only then as a consequence of P T I T F (the fundamental insight) and the alternative description of matrix multiplication above the corresponding five columns in the final tableau must equal to P I 5 Since P I 5 P we can now identify P as the matrix defined by these five columns in the final tableau More explicitly this simply means that since P 1?? 0 0 0 0? 0?? 1 0 0 0? 0?? 0 1 0 0? 0?? 0 0 1 0? 0?? 0 0 0 1? 1?? 1/ 0 0 /? 0?? 1/ 0 0 1/? 0?? 7/4 1 0 1/4? 0?? 1 0 1 1? 0?? 1/4 0 0 /4? where the? s represent ignored entries we must have P 1 1/ 0 0 / 0 1/ 0 0 1/ 0 7/4 1 0 1/4 0 1 0 1 1 0 1/4 0 0 /4 In conclusion we have shown that an important consequence of the fundamental insight is that if a linear program has been solved to optimality once then the matrix P can be read out directly from the final tableau Applications of this result to sensitivity analysis will be discussed in the latter part of this section 7