# Practical Guide to the Simplex Method of Linear Programming

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 Practical Guide to the Simplex Method of Linear Programming Marcel Oliver Revised: April, 0 The basic steps of the simplex algorithm Step : Write the linear programming problem in standard form Linear programming (the name is historical, a more descriptive term would be linear optimization) refers to the problem of optimizing a linear objective function of several variables subject to a set of linear equality or inequality constraints. Every linear programming problem can be written in the following standard form. Minimize ζ = c T x (a) subject to Ax = b, x 0. (b) (c) Here x R n is a vector of n unknowns, A M(m n) with n typically much larger than m, c R n the coefficient vector of the objective function, and the expression x 0 signifies x i 0 for i =,..., n. For simplicity, we assume that rank A = m, i.e., that the rows of A are linearly independent. Turning a problem into standard form involves the following steps. (i) Turn Maximization into minimization and write inequalities in standard order. This step is obvious. Multiply expressions, where appropriate, by.

2 (ii) Introduce slack variables to turn inequality constraints into equality constraints with nonnegative unknowns. Any inequality of the form a x + + a n x n c can be replaced by a x + + a n x n + s = c with s 0. (iii) Replace variables which are not sign-constrained by differences. Any real number x can be written as the difference of nonnegative numbers x = u v with u, v 0. Consider the following example. Maximize z = x + x + x (a) subject to x + x x =, x + x + x 5, x x 4, x + x 5, x 0, x 0. (b) (c) (d) (e) (f) (g) Written in standard form, the problem becomes minimize ζ = x x u + v (a) subject to x + x u + v =, (b) x x u + v + s = 5, (c) x x + s = 4, x + u v + s = 5, x, x, u, v, s, s, s 0. (d) (e) (f) Step : Write the coefficients of the problem into a simplex tableau The coefficients of the linear system are collected in an augmented matrix as known from Gaussian elimination for systems of linear equations; the coefficients of the objective function are written in a separate bottom row with a zero in the right hand column. For our example, the initial tableau reads:

3 x x u v s s s In the following steps, the variables will be divided into m basic variables and n m non-basic variables. We will act on the tableau by the rules of Gaussian elimination, where the pivots are always chosen from the columns corresponding to the basic variables. Before proceeding, we need to choose an initial set of basic variables which corresponds to a point in the feasible region of the linear programming problem. Such a choice may be non-obvious, but we shall defer this discussion for now. In our example, x and s,..., s shall be chosen as the initial basic variables, indicated by gray columns in the tableau above. Step : Gaussian elimination For a given set of basic variables, we use Gaussian elimination to reduce the corresponding columns to a permutation of the identity matrix. This amounts to solving Ax = b in such a way that the values of the nonbasic variables are zero and the values for the basic variables are explicitly given by the entries in the right hand column of the fully reduced matrix. In addition, we eliminate the coefficients of the objective function below each pivot. Our initial tableau is thus reduced to x x u v s s s The solution expressed by the tableau is only admissible if all basic variables are non-negative, i.e., if the right hand column of the reduced tableau is free of negative entries. This is the case in this example. At the initial stage, however, negative entries may come up; this indicates that different initial basic variables should have been chosen. At later stages in the process, the

4 selection rules for the basic variables will guarantee that an initially feasible tableau will remain feasible throughout the process. Step 4: Choose new basic variables If, at this stage, the objective function row has at least one negative entry, the cost can be lowered by making the corresponding variable basic. This new basic variable is called the entering variable. Correspondingly, one formerly basic variable has then to become nonbasic, this variable is called the leaving variable. We use the following standard selection rules. (i) The entering variable shall correspond to the column which has the most negative entry in the cost function row. If all cost function coefficients are non-negative, the cost cannot be lowered and we have reached an optimum. The algorithm then terminates. (ii) Once the entering variable is determined, the leaving variable shall be chosen as follows. Compute for each row the ratio of its right hand coefficient to the corresponding coefficient in the entering variable column. Select the row with the smallest finite positive ratio. The leaving variable is then determined by the column which currently owns the pivot in this row. If all coefficients in the entering variable column are non-positive, the cost can be lowered indefinitely, i.e., the linear programming problem does not have a finite solution. The algorithm then also terminates. If entering and leaving variable can be found, go to Step and iterate. Note that choosing the most negative coefficient in rule (i) is only a heuristic for choosing a direction of fast decrease of the objective function. Rule (ii) ensures that the new set of basic variables remains feasible. Let us see how this applies to our problem. The previous tableau holds the most negative cost function coefficient in column, thus u shall be the entering variable (marked in boldface). The smallest positive ratio of right hand column to entering variable column is in row, as < 5. The pivot in this row points to s as the leaving variable. Thus, after going through the Gaussian elimination once more, we arrive at 4

5 x x u v s s s At this point, the new entering variable is x corresponding to the only negative entry in the last row, the leaving variable is s. After Gaussian elimination, we find x x u v s s s Since there is no more negative entry in the last row, the cost cannot be lowered by choosing a different set of basic variables; the termination condition applies. Step 4: Read off the solution The solution represented by the final tableau has all nonbasic variables set to zero, while the values for the basic variables can be can be read off the right hand column. The bottom right corner gives the negative of the objective function. In our example, the solution reads x = 4, x =, x = u =, s = 5, v = s = s = 0, which corresponds to ζ = 9, which can be independently checked by plugging the solution back into the objective function. As a further check, we note that the solution must satisfy (b), (d), and (e) with equality and (c) with a slack of 5. This can also be checked by direct computation. Initialization For some problem it is not obvious which set of variables form a feasible initial set of basic variables. For large problems, a trial-and-error approach 5

6 is prohibitively expensive due the rapid growth of ( n m), the number of possibilities to choose m basic variables out of a total of n variables, as m and n become large. This problem can be overcome by adding a set of m artificial variables which form a trivial set of basic variables and which are penalized by a large coefficients ω in the objective function. This penalty will cause the artificial variables to become nonbasic as the algorithm proceeds. We explain the method by example. For the problem minimize z = x + x + x (4a) subject to x + x + x + x 4 = 5, x + x + x x 4 = 5, x + x + x x 4 = 6, x 0, (4b) (4c) (4d) (4e) we set up a simplex tableau with three artificial variables which are initially basic: a a a x x x x ω ω ω 0 0 We proceed as before by first eliminating the nonzero entries below the pivots: a a a x x x x ω 4ω 5ω ω 6ω Since, for ω large, 5ω is the most negative coefficient in the objective function row, x will be entering and, since 5 < 6 < 5, a will be leaving. The Gaussian elimination step then yields 6

7 a a a x x x x ω 0 0 ω ω ω 5 7 ω Now x is entering, a is leaving, and we obtain a a a x x x x ω 0 + ω ω ω 6 ω The new entering variable is x while the criterion for the leaving variable is tied between a and x. Since we want the artificial variable to become nonbasic, we take a to be leaving. (Choosing x as the leaving variable would lead us to the same solution, albeit after a few extra steps.) We obtain a a a x x x x ω ω + ω The termination condition is now satisfied, and we see that the solution is z = 6 with x = 4, x =, x = 0, x 4 = 0. We close with two remarks. When using a computer to perform the simplex algorithm numerically, ω should be chosen large (one or two orders of magnitude larger than any of the other coefficients in the problem) but not too large (to avoid loss of significant digits in floating point arithmetic). If not all artificial variables become nonbasic, ω must be increased. If this happens for any value of ω, the feasible region is empty. In the final tableau, the penalty parameter ω can only appear in artificial variable columns

8 Duality The concept of duality is best motivated by an example. Consider the following transportation problem. Some good is available at location A at no cost and may be transported to locations B, C, and D according to the following directed graph: B 4 A D C 5 On each of the unidirectional channels, the unit cost of transportation is c j for j =,..., 5. At each of the vertices b α units of the good are sold, where α = B, C, D. How can the transport be done most efficiently? A first, and arguably most obvious way of quantifying efficiency would be to state the question as a minimization problem for the total cost of transportation. If x j denotes the amount of good transported through channel j, we arrive at the following linear programming problem: minimize c x + + c 5 x 5 (5a) subject to x x x 4 = b B, x + x x 5 = b C, x 4 + x 5 = b D. (5b) (5c) (5d) The three equality constraints state that nothing gets lost at nodes B, C, and D except what is sold. There is, however, a second, seemingly equivalent way of characterizing efficiency of transportation. Instead of looking at minimizing the cost of transportation, we seek to maximize the income from selling the good. Letting y α denote the unit price of the good at node α = A,..., D with y A = 0 by assumption, the associated linear programming problem is the following: maximize y B b B + y C b C + y D b D (6a) 8

9 subject to y B y A c, y C y A c, y C y B c, y D y B c 4, y D y C c 5. (6b) (6c) (6d) (6e) (6f) The inequality constraints encode that, in a free market, we can only maintain a price difference that does not exceed the cost of transportation. If we charged a higher price, then some local guy would immediately be able to undercut our price by buying from us at one end of the channel, using the channel at the same fixed channel cost, then selling at a price lower than ours at the high-price end of the channel. Setting x = x. x 5, y = y B y C y D we can write (5) as the abstract primal problem 0 0, and A = 0 0, (7) minimize c T x subject to Ax = b, x 0. (8a) (8b) Likewise, (6) can be written as the dual problem maximize y T b subject to y T A c T. (9a) (9b) We shall prove in the following that the minimal cost and the maximal income coincide, i.e., that the two problems are equivalent. Let us first remark this problem is easily solved without the simplex algorithm: clearly, we should transport all goods sold at a particular location through the cheapest channel to that location. Thus, we might perform a simple search for the cheapest channel, something which can be done efficiently by combinatorial algorithms such as Dijkstra s algorithm []. The advantage of the linear programming perspective is that additional constraints such as channel capacity limits can be easily added. For the purpose of 9

10 understanding the relationship between the primal and the dual problem, and for understanding the significance of the dual formulation, the simple present setting is entirely adequate. The unknowns x in the primal formulation of the problem not only identify the vertex of the feasible region at which the optimum is reached, but they also act as sensitivity parameters with regard to small changes in the cost coefficients c. Indeed, when the linear programming problem is nondegenerate, i.e. has a unique optimal solution, changing the cost coefficients from c to c + c with c sufficiently small will not make the optimal vertex jump to another corner of the feasible region, as the cost depends continuously on c. Thus, the corresponding change in cost is c T x. If x i is nonbasic, the cost will not react at all to small changes in c i, whereas if x i is large, then the cost will be sensitive to changes in c i. This information is often important because it gives an indication where to best spend resources if the parameters of the problem in the example above, the cost of transportation are to be improved. Likewise, the solution vector y to the dual problem provides the sensitivity of the total income to small changes in b. Here, b is representing the number of sales at the various vertices of the network; if the channels were capacity constrained, the channel limits were also represented as components of b. Thus, the dual problem is providing the answer to the question if I were to invest in raising sales, where should I direct this investment to achieve the maximum increase in income? The following theorems provide a mathematically precise statement on the equivalence of primal and dual problem. Theorem (Weak duality). Assume that x is a feasible vector for the primal problem (8) and y is a feasible vector for the dual problem (9). Then (i) y T b c T x; (ii) if (i) holds with equality, then x and y are optimal for their respective linear programming problems; (iii) the primal problem does not have a finite minimum if and only if the feasible region of the dual problem is empty; vice versa, the dual problem does not have a finite maximum if and only if the feasible region of the primal problem is empty. The proof is simple and shall be left as an exercise. To proceed, we say that x is a basic feasible solution of Ax = b, x 0 if it has at most m nonzero components. We say that it is nondegenerate if 0

11 it has exactly m nonzero components. If, the the course of performing the simplex algorithm, we hit a degenerate basic feasible solution, it is possible that the objective function row in the simplex tableau contains negative coefficients, yet the cost cannot be lowered because the corresponding basic variable is already zero. This can lead to cycling and thus non-termination of the algorithm. We shall not consider the degenerate case further. When x is a nondegenerate solution to the primal problem (8), i.e., x is nondegenerate basic feasible and also optimal, then we can be assured that the simplex method terminates with all coefficients in the objective function row nonnegative. (If they were not, we could immediately perform at least one more step of the algorithm with strict decrease in the cost.) In this situation, we have the following stronger form of the duality theorem. Theorem (Strong duality). The primal problem (8) has a nondegenerate solution x if and only if the dual problem (9) has a nondegenerate solution y; in this case y T b = c T x. Proof. The proof is based on a careful examination of the termination condition of the simplex algorithm. Assume that x solves the primal problem. Without loss of generality, we can reorder the variables such that the first m variables are basic, i.e. ( ) x x = B (0) 0 and that the final simplex tableau reads ( ) I R x B 0 T r T z. () The last row represents the objective function coefficients and z denotes the optimal value of the objective function. We note that the termination condition of the simplex algorithm reads r 0. We now partition the initial matrix A and the coefficients of the objective function c into their basic and nonbasic components, writing A = ( B ) N and c = ( c B c N ). () Finally, it can be shown that the elementary row operations used in the Gaussian elimination steps of the simplex algorithm can be written as multiplication by a matrix from the left, which we also partition into components

12 compatible with the block matrix structure of (), so that the transformation from the initial to the final tableau can be written as ( ) ( ) ( ) M v B N b MB + vc u T α c T = T B MN + vc T N Mb B ct N 0 u T B + αc T B ut N + αc T N u T. () b We now compare the right hand side of () with () to determine the coefficients of the left hand matrix. First, we note that in the simplex algorithm, none of the Gaussian elimination steps on the equality constraints depend on the objective function coefficients (other than the path taken from initial to final tableau, which is not at issue here). This immediately implies that v = 0. Second, we observe that nowhere in the simplex algorithm do we ever rescale the objective function row. This immediately implies that α =. This leaves us with the following set of matrix equalities: MB = I, Mb = x B, u T B + c T B = 0, u T N + c T N = r. (4a) (4b) (4c) (4d) so that M = B and u T = c T B B. We now claim that y T = c T BB (5) solves the dual problem. We compute ( ) y T A = c T BB B N ( ) = c T B ct B B N ) = (c TB ( ctn ) rt c T B ct = c T. (6) N This shows that y is feasible for the dual problem. Moreover, y T b = c T BB b = c T Bx B = c T x. (7) Thus, by weak duality, y is also optimal for the dual problem. The reverse implication of the theorem follows from the above by noting that the bi-dual is identical with the primal problem.

13 References [] G.B. Dantzig, M.N. Thapa, Linear Programming, Springer, New York, 997. [] Dijkstra s algorithm. Wikipedia, The Free Encyclopedia. April 4, 0, 06: UTC. [] D. Gale, Linear Programming and the simplex method, Notices of the AMS 54 (007), [4] P. Pedregal, Introduction to optimization, Springer, New York, 004.

### Chapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints

Chapter 6 Linear Programming: The Simplex Method Introduction to the Big M Method In this section, we will present a generalized version of the simplex method that t will solve both maximization i and

### 1 Solving LPs: The Simplex Algorithm of George Dantzig

Solving LPs: The Simplex Algorithm of George Dantzig. Simplex Pivoting: Dictionary Format We illustrate a general solution procedure, called the simplex algorithm, by implementing it on a very simple example.

### Definition of a Linear Program

Definition of a Linear Program Definition: A function f(x 1, x,..., x n ) of x 1, x,..., x n is a linear function if and only if for some set of constants c 1, c,..., c n, f(x 1, x,..., x n ) = c 1 x 1

### Chapter 15 Introduction to Linear Programming

Chapter 15 Introduction to Linear Programming An Introduction to Optimization Spring, 2014 Wei-Ta Chu 1 Brief History of Linear Programming The goal of linear programming is to determine the values of

### Section Notes 3. The Simplex Algorithm. Applied Math 121. Week of February 14, 2011

Section Notes 3 The Simplex Algorithm Applied Math 121 Week of February 14, 2011 Goals for the week understand how to get from an LP to a simplex tableau. be familiar with reduced costs, optimal solutions,

### The Graphical Simplex Method: An Example

The Graphical Simplex Method: An Example Consider the following linear program: Max 4x 1 +3x Subject to: x 1 +3x 6 (1) 3x 1 +x 3 () x 5 (3) x 1 +x 4 (4) x 1, x 0. Goal: produce a pair of x 1 and x that

### Quiz 1 Sample Questions IE406 Introduction to Mathematical Programming Dr. Ralphs

Quiz 1 Sample Questions IE406 Introduction to Mathematical Programming Dr. Ralphs These questions are from previous years and should you give you some idea of what to expect on Quiz 1. 1. Consider the

### CHAPTER 17. Linear Programming: Simplex Method

CHAPTER 17 Linear Programming: Simplex Method CONTENTS 17.1 AN ALGEBRAIC OVERVIEW OF THE SIMPLEX METHOD Algebraic Properties of the Simplex Method Determining a Basic Solution Basic Feasible Solution 17.2

### The Simplex Method. What happens when we need more decision variables and more problem constraints?

The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving two decision variables and relatively few problem

### 7.4 Linear Programming: The Simplex Method

7.4 Linear Programming: The Simplex Method For linear programming problems with more than two variables, the graphical method is usually impossible, so the simplex method is used. Because the simplex method

### 4.6 Linear Programming duality

4.6 Linear Programming duality To any minimization (maximization) LP we can associate a closely related maximization (minimization) LP. Different spaces and objective functions but in general same optimal

### Linear Programming Problems

Linear Programming Problems Linear programming problems come up in many applications. In a linear programming problem, we have a function, called the objective function, which depends linearly on a number

### Linear Inequalities and Linear Programming. Systems of Linear Inequalities in Two Variables

Linear Inequalities and Linear Programming 5.1 Systems of Linear Inequalities 5.2 Linear Programming Geometric Approach 5.3 Geometric Introduction to Simplex Method 5.4 Maximization with constraints 5.5

### By W.E. Diewert. July, Linear programming problems are important for a number of reasons:

APPLIED ECONOMICS By W.E. Diewert. July, 3. Chapter : Linear Programming. Introduction The theory of linear programming provides a good introduction to the study of constrained maximization (and minimization)

### Standard Form of a Linear Programming Problem

494 CHAPTER 9 LINEAR PROGRAMMING 9. THE SIMPLEX METHOD: MAXIMIZATION For linear programming problems involving two variables, the graphical solution method introduced in Section 9. is convenient. However,

### max cx s.t. Ax c where the matrix A, cost vector c and right hand side b are given and x is a vector of variables. For this example we have x

Linear Programming Linear programming refers to problems stated as maximization or minimization of a linear function subject to constraints that are linear equalities and inequalities. Although the study

### Algebraic Simplex Method - Introduction Previous

Algebraic Simplex Method - Introduction To demonstrate the simplex method, consider the following linear programming model: This is the model for Leo Coco's problem presented in the demo, Graphical Method.

### Min-cost flow problems and network simplex algorithm

Min-cost flow problems and network simplex algorithm The particular structure of some LP problems can be sometimes used for the design of solution techniques more efficient than the simplex algorithm.

### The Simplex Method. yyye

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #05 1 The Simplex Method Yinyu Ye Department of Management Science and Engineering Stanford University Stanford, CA 94305, U.S.A. http://www.stanford.edu/

### Chap 4 The Simplex Method

The Essence of the Simplex Method Recall the Wyndor problem Max Z = 3x 1 + 5x 2 S.T. x 1 4 2x 2 12 3x 1 + 2x 2 18 x 1, x 2 0 Chap 4 The Simplex Method 8 corner point solutions. 5 out of them are CPF solutions.

### I. Solving Linear Programs by the Simplex Method

Optimization Methods Draft of August 26, 2005 I. Solving Linear Programs by the Simplex Method Robert Fourer Department of Industrial Engineering and Management Sciences Northwestern University Evanston,

### LINEAR PROGRAMMING P V Ram B. Sc., ACA, ACMA Hyderabad

LINEAR PROGRAMMING P V Ram B. Sc., ACA, ACMA 98481 85073 Hyderabad Page 1 of 19 Question: Explain LPP. Answer: Linear programming is a mathematical technique for determining the optimal allocation of resources

### Special Situations in the Simplex Algorithm

Special Situations in the Simplex Algorithm Degeneracy Consider the linear program: Maximize 2x 1 +x 2 Subject to: 4x 1 +3x 2 12 (1) 4x 1 +x 2 8 (2) 4x 1 +2x 2 8 (3) x 1, x 2 0. We will first apply the

### 1 Introduction. Linear Programming. Questions. A general optimization problem is of the form: choose x to. max f(x) subject to x S. where.

Introduction Linear Programming Neil Laws TT 00 A general optimization problem is of the form: choose x to maximise f(x) subject to x S where x = (x,..., x n ) T, f : R n R is the objective function, S

### Theory of Linear Programming

Theory of Linear Programming Debasis Mishra April 6, 2011 1 Introduction Optimization of a function f over a set S involves finding the maximum (minimum) value of f (objective function) in the set S (feasible

### 3 Does the Simplex Algorithm Work?

Does the Simplex Algorithm Work? In this section we carefully examine the simplex algorithm introduced in the previous chapter. Our goal is to either prove that it works, or to determine those circumstances

### LECTURE 5: DUALITY AND SENSITIVITY ANALYSIS. 1. Dual linear program 2. Duality theory 3. Sensitivity analysis 4. Dual simplex method

LECTURE 5: DUALITY AND SENSITIVITY ANALYSIS 1. Dual linear program 2. Duality theory 3. Sensitivity analysis 4. Dual simplex method Introduction to dual linear program Given a constraint matrix A, right

### Linear Programming I

Linear Programming I November 30, 2003 1 Introduction In the VCR/guns/nuclear bombs/napkins/star wars/professors/butter/mice problem, the benevolent dictator, Bigus Piguinus, of south Antarctica penguins

### Duality in Linear Programming

Duality in Linear Programming 4 In the preceding chapter on sensitivity analysis, we saw that the shadow-price interpretation of the optimal simplex multipliers is a very useful concept. First, these shadow

### Using the Simplex Method in Mixed Integer Linear Programming

Integer Using the Simplex Method in Mixed Integer UTFSM Nancy, 17 december 2015 Using the Simplex Method in Mixed Integer Outline Mathematical Programming Integer 1 Mathematical Programming Optimisation

### Simplex Method. Introduction:

Introduction: In the previous chapter, we discussed about the graphical method for solving linear programming problems. Although the graphical method is an invaluable aid to understand the properties of

### Linear Programming. March 14, 2014

Linear Programming March 1, 01 Parts of this introduction to linear programming were adapted from Chapter 9 of Introduction to Algorithms, Second Edition, by Cormen, Leiserson, Rivest and Stein [1]. 1

### Operation Research. Module 1. Module 2. Unit 1. Unit 2. Unit 3. Unit 1

Operation Research Module 1 Unit 1 1.1 Origin of Operations Research 1.2 Concept and Definition of OR 1.3 Characteristics of OR 1.4 Applications of OR 1.5 Phases of OR Unit 2 2.1 Introduction to Linear

### OPRE 6201 : 2. Simplex Method

OPRE 6201 : 2. Simplex Method 1 The Graphical Method: An Example Consider the following linear program: Max 4x 1 +3x 2 Subject to: 2x 1 +3x 2 6 (1) 3x 1 +2x 2 3 (2) 2x 2 5 (3) 2x 1 +x 2 4 (4) x 1, x 2

### Simplex method summary

Simplex method summary Problem: optimize a linear objective, subject to linear constraints 1. Step 1: Convert to standard form: variables on right-hand side, positive constant on left slack variables for

### Linear Programming Notes V Problem Transformations

Linear Programming Notes V Problem Transformations 1 Introduction Any linear programming problem can be rewritten in either of two standard forms. In the first form, the objective is to maximize, the material

### Solving Linear Programs

Solving Linear Programs 2 In this chapter, we present a systematic procedure for solving linear programs. This procedure, called the simplex method, proceeds by moving from one feasible solution to another,

### Geometry of Linear Programming

Chapter 2 Geometry of Linear Programming The intent of this chapter is to provide a geometric interpretation of linear programming problems. To conceive fundamental concepts and validity of different algorithms

### Linear Programming for Optimization. Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc.

1. Introduction Linear Programming for Optimization Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc. 1.1 Definition Linear programming is the name of a branch of applied mathematics that

### AM 221: Advanced Optimization Spring Prof. Yaron Singer Lecture 7 February 19th, 2014

AM 22: Advanced Optimization Spring 204 Prof Yaron Singer Lecture 7 February 9th, 204 Overview In our previous lecture we saw the application of the strong duality theorem to game theory, and then saw

### 4.4 The Simplex Method: Non-Standard Form

4.4 The Simplex Method: Non-Standard Form Standard form and what can be relaxed What were the conditions for standard form we have been adhering to? Standard form and what can be relaxed What were the

### Stanford University CS261: Optimization Handout 6 Luca Trevisan January 20, In which we introduce the theory of duality in linear programming.

Stanford University CS261: Optimization Handout 6 Luca Trevisan January 20, 2011 Lecture 6 In which we introduce the theory of duality in linear programming 1 The Dual of Linear Program Suppose that we

### 1 Gaussian Elimination

Contents 1 Gaussian Elimination 1.1 Elementary Row Operations 1.2 Some matrices whose associated system of equations are easy to solve 1.3 Gaussian Elimination 1.4 Gauss-Jordan reduction and the Reduced

### MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column

### 9.4 THE SIMPLEX METHOD: MINIMIZATION

SECTION 9 THE SIMPLEX METHOD: MINIMIZATION 59 The accounting firm in Exercise raises its charge for an audit to \$5 What number of audits and tax returns will bring in a maximum revenue? In the simplex

### LINEAR PROGRAMMING THE SIMPLEX METHOD

LINEAR PROGRAMMING THE SIMPLE METHOD () Problems involving both slack and surplus variables A linear programming model has to be extended to comply with the requirements of the simplex procedure, that

### The Simplex Solution Method

Module A The Simplex Solution Method A-1 A-2 Module A The Simplex Solution Method The simplex method is a general mathematical solution technique for solving linear programming problems. In the simplex

### 3. Linear Programming and Polyhedral Combinatorics

Massachusetts Institute of Technology Handout 6 18.433: Combinatorial Optimization February 20th, 2009 Michel X. Goemans 3. Linear Programming and Polyhedral Combinatorics Summary of what was seen in the

### Linear Dependence Tests

Linear Dependence Tests The book omits a few key tests for checking the linear dependence of vectors. These short notes discuss these tests, as well as the reasoning behind them. Our first test checks

### 7.1 Modelling the transportation problem

Chapter Transportation Problems.1 Modelling the transportation problem The transportation problem is concerned with finding the minimum cost of transporting a single commodity from a given number of sources

### 2.5 Gaussian Elimination

page 150 150 CHAPTER 2 Matrices and Systems of Linear Equations 37 10 the linear algebra package of Maple, the three elementary 20 23 1 row operations are 12 1 swaprow(a,i,j): permute rows i and j 3 3

### Graphical method. plane. (for max) and down (for min) until it touches the set of feasible solutions. Graphical method

The graphical method of solving linear programming problems can be applied to models with two decision variables. This method consists of two steps (see also the first lecture): 1 Draw the set of feasible

### Chapter 2 Solving Linear Programs

Chapter 2 Solving Linear Programs Companion slides of Applied Mathematical Programming by Bradley, Hax, and Magnanti (Addison-Wesley, 1977) prepared by José Fernando Oliveira Maria Antónia Carravilla A

### Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS

Sensitivity Analysis 3 We have already been introduced to sensitivity analysis in Chapter via the geometry of a simple example. We saw that the values of the decision variables and those of the slack and

### Methods for Finding Bases

Methods for Finding Bases Bases for the subspaces of a matrix Row-reduction methods can be used to find bases. Let us now look at an example illustrating how to obtain bases for the row space, null space,

### 3. Evaluate the objective function at each vertex. Put the vertices into a table: Vertex P=3x+2y (0, 0) 0 min (0, 5) 10 (15, 0) 45 (12, 2) 40 Max

SOLUTION OF LINEAR PROGRAMMING PROBLEMS THEOREM 1 If a linear programming problem has a solution, then it must occur at a vertex, or corner point, of the feasible set, S, associated with the problem. Furthermore,

### This exposition of linear programming

Linear Programming and the Simplex Method David Gale This exposition of linear programming and the simplex method is intended as a companion piece to the article in this issue on the life and work of George

### 4.3 The Simplex Method and the Standard Maximization Problem

. The Simplex Method and the Standard Maximiation Problem Question : What is a standard maximiation problem? Question : What are slack variables? Question : How do you find a basic feasible solution? Question

### Nonlinear Programming Methods.S2 Quadratic Programming

Nonlinear Programming Methods.S2 Quadratic Programming Operations Research Models and Methods Paul A. Jensen and Jonathan F. Bard A linearly constrained optimization problem with a quadratic objective

### Outline. Linear Programming (LP): Simplex Search. Simplex: An Extreme-Point Search Algorithm. Basic Solutions

Outline Linear Programming (LP): Simplex Search Benoît Chachuat McMaster University Department of Chemical Engineering ChE 4G03: Optimization in Chemical Engineering 1 Basic Solutions

### Chapter 4: The Mechanics of the Simplex Method

Chapter 4: The Mechanics of the Simplex Method The simplex method is a remarkably simple and elegant algorithmic engine for solving linear programs. In this chapter we will examine the internal mechanics

### . P. 4.3 Basic feasible solutions and vertices of polyhedra. x 1. x 2

4. Basic feasible solutions and vertices of polyhedra Due to the fundamental theorem of Linear Programming, to solve any LP it suffices to consider the vertices (finitely many) of the polyhedron P of the

### 1.2 Solving a System of Linear Equations

1.. SOLVING A SYSTEM OF LINEAR EQUATIONS 1. Solving a System of Linear Equations 1..1 Simple Systems - Basic De nitions As noticed above, the general form of a linear system of m equations in n variables

### Mathematical finance and linear programming (optimization)

Mathematical finance and linear programming (optimization) Geir Dahl September 15, 2009 1 Introduction The purpose of this short note is to explain how linear programming (LP) (=linear optimization) may

### Linear Programming: Chapter 5 Duality

Linear Programming: Chapter 5 Duality Robert J. Vanderbei October 17, 2007 Operations Research and Financial Engineering Princeton University Princeton, NJ 08544 http://www.princeton.edu/ rvdb Resource

### Good luck, veel succes!

Final exam Advanced Linear Programming, May 7, 13.00-16.00 Switch off your mobile phone, PDA and any other mobile device and put it far away. No books or other reading materials are allowed. This exam

### Math 240: Linear Systems and Rank of a Matrix

Math 240: Linear Systems and Rank of a Matrix Ryan Blair University of Pennsylvania Thursday January 20, 2011 Ryan Blair (U Penn) Math 240: Linear Systems and Rank of a Matrix Thursday January 20, 2011

### Chapter 5.1 Systems of linear inequalities in two variables.

Chapter 5. Systems of linear inequalities in two variables. In this section, we will learn how to graph linear inequalities in two variables and then apply this procedure to practical application problems.

### Linear Systems. Singular and Nonsingular Matrices. Find x 1, x 2, x 3 such that the following three equations hold:

Linear Systems Example: Find x, x, x such that the following three equations hold: x + x + x = 4x + x + x = x + x + x = 6 We can write this using matrix-vector notation as 4 {{ A x x x {{ x = 6 {{ b General

### Linear Programming Exercises. Week 1. Exercise 1 Consider the case of the Betta Machine Products Company described in the lecture notes.

Linear Programming Exercises Week 1 Exercise 1 Consider the case of the Betta Machine Products Company described in the lecture notes. (a) Use a graphical method to obtain the new optimal solution when

### Linear Programming: Theory and Applications

Linear Programming: Theory and Applications Catherine Lewis May 11, 2008 1 Contents 1 Introduction to Linear Programming 3 1.1 What is a linear program?...................... 3 1.2 Assumptions.............................

### Solving Linear Programming Problem with Fuzzy Right Hand Sides: A Penalty Method

Solving Linear Programming Problem with Fuzzy Right Hand Sides: A Penalty Method S.H. Nasseri and Z. Alizadeh Department of Mathematics, University of Mazandaran, Babolsar, Iran Abstract Linear programming

### MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

### Systems of Linear Equations

Systems of Linear Equations Beifang Chen Systems of linear equations Linear systems A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where a, a,, a n and

### 10.3 POWER METHOD FOR APPROXIMATING EIGENVALUES

55 CHAPTER NUMERICAL METHODS. POWER METHOD FOR APPROXIMATING EIGENVALUES In Chapter 7 we saw that the eigenvalues of an n n matrix A are obtained by solving its characteristic equation n c n n c n n...

### Solving Systems of Linear Equations

LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

### LINEAR PROGRAMMING MODULE Part 2 - Solution Algorithm

LINEAR PROGRAMMING MODULE Part 2 - Solution Algorithm Name: THE SIMPLEX SOLUTION METHOD It should be obvious to the reader by now that the graphical method for solving linear programs is limited to models

### Solving Systems of Linear Equations. Substitution

Solving Systems of Linear Equations There are two basic methods we will use to solve systems of linear equations: Substitution Elimination We will describe each for a system of two equations in two unknowns,

### 1. LINEAR EQUATIONS. A linear equation in n unknowns x 1, x 2,, x n is an equation of the form

1. LINEAR EQUATIONS A linear equation in n unknowns x 1, x 2,, x n is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b, where a 1, a 2,..., a n, b are given real numbers. For example, with x and

### 3.5 Reduction to Standard Form

3.5 Reduction to Standard Form 77 Exercise 3-4-4. Read the following statements carefully to see whether it is true or false. Justify your answer by constructing a simple illustrative example (for false),

### Linear Programming. April 12, 2005

Linear Programming April 1, 005 Parts of this were adapted from Chapter 9 of i Introduction to Algorithms (Second Edition) /i by Cormen, Leiserson, Rivest and Stein. 1 What is linear programming? The first

### 1 Polyhedra and Linear Programming

CS 598CSC: Combinatorial Optimization Lecture date: January 21, 2009 Instructor: Chandra Chekuri Scribe: Sungjin Im 1 Polyhedra and Linear Programming In this lecture, we will cover some basic material

### ME128 Computer-Aided Mechanical Design Course Notes Introduction to Design Optimization

ME128 Computer-ided Mechanical Design Course Notes Introduction to Design Optimization 2. OPTIMIZTION Design optimization is rooted as a basic problem for design engineers. It is, of course, a rare situation

### Lecture 3: Linear Programming Relaxations and Rounding

Lecture 3: Linear Programming Relaxations and Rounding 1 Approximation Algorithms and Linear Relaxations For the time being, suppose we have a minimization problem. Many times, the problem at hand can

### Chapter 3 LINEAR PROGRAMMING GRAPHICAL SOLUTION 3.1 SOLUTION METHODS 3.2 TERMINOLOGY

Chapter 3 LINEAR PROGRAMMING GRAPHICAL SOLUTION 3.1 SOLUTION METHODS Once the problem is formulated by setting appropriate objective function and constraints, the next step is to solve it. Solving LPP

### 2.3 Convex Constrained Optimization Problems

42 CHAPTER 2. FUNDAMENTAL CONCEPTS IN CONVEX OPTIMIZATION Theorem 15 Let f : R n R and h : R R. Consider g(x) = h(f(x)) for all x R n. The function g is convex if either of the following two conditions

### 26 Linear Programming

The greatest flood has the soonest ebb; the sorest tempest the most sudden calm; the hottest love the coldest end; and from the deepest desire oftentimes ensues the deadliest hate. Th extremes of glory

### Linear Programming in Matrix Form

Linear Programming in Matrix Form Appendix B We first introduce matrix concepts in linear programming by developing a variation of the simplex method called the revised simplex method. This algorithm,

### What is Linear Programming?

Chapter 1 What is Linear Programming? An optimization problem usually has three essential ingredients: a variable vector x consisting of a set of unknowns to be determined, an objective function of x to

### Linear Programming is the branch of applied mathematics that deals with solving

Chapter 2 LINEAR PROGRAMMING PROBLEMS 2.1 Introduction Linear Programming is the branch of applied mathematics that deals with solving optimization problems of a particular functional form. A linear programming

### SOLVING LINEAR SYSTEM OF INEQUALITIES WITH APPLICATION TO LINEAR PROGRAMS

SOLVING LINEAR SYSTEM OF INEQUALITIES WITH APPLICATION TO LINEAR PROGRAMS Hossein Arsham, University of Baltimore, (410) 837-5268, harsham@ubalt.edu Veena Adlakha, University of Baltimore, (410) 837-4969,

### Linear Programming Notes VII Sensitivity Analysis

Linear Programming Notes VII Sensitivity Analysis 1 Introduction When you use a mathematical model to describe reality you must make approximations. The world is more complicated than the kinds of optimization

### MATH 2030: SYSTEMS OF LINEAR EQUATIONS. ax + by + cz = d. )z = e. while these equations are not linear: xy z = 2, x x = 0,

MATH 23: SYSTEMS OF LINEAR EQUATIONS Systems of Linear Equations In the plane R 2 the general form of the equation of a line is ax + by = c and that the general equation of a plane in R 3 will be we call

### a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

### Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

Section 1.2: Row Reduction and Echelon Forms Echelon form (or row echelon form): 1. All nonzero rows are above any rows of all zeros. 2. Each leading entry (i.e. left most nonzero entry) of a row is in

### Inverses and powers: Rules of Matrix Arithmetic

Contents 1 Inverses and powers: Rules of Matrix Arithmetic 1.1 What about division of matrices? 1.2 Properties of the Inverse of a Matrix 1.2.1 Theorem (Uniqueness of Inverse) 1.2.2 Inverse Test 1.2.3

### Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

PERFORMANCE EXCELLENCE IN THE WOOD PRODUCTS INDUSTRY EM 8720-E October 1998 \$3.00 Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood A key problem faced

### The multi-integer set cover and the facility terminal cover problem

The multi-integer set cover and the facility teral cover problem Dorit S. Hochbaum Asaf Levin December 5, 2007 Abstract The facility teral cover problem is a generalization of the vertex cover problem.