Linear Programming, Lecture 4

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

Systems Analysis in Construction

AM 121: Intro to Optimization

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

OPERATIONS RESEARCH. Linear Programming Problem

Review Solutions, Exam 2, Operations Research

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Lesson 27 Linear Programming; The Simplex Method

MATH 445/545 Homework 2: Due March 3rd, 2016

Lecture 11 Linear programming : The Revised Simplex Method

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

AM 121: Intro to Optimization Models and Methods

Summary of the simplex method

MATH2070 Optimisation

Linear Programming Duality

Simplex Algorithm Using Canonical Tableaus

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

Understanding the Simplex algorithm. Standard Optimization Problems.

Part 1. The Review of Linear Programming

Notes on Simplex Algorithm

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

In Chapters 3 and 4 we introduced linear programming

The Simplex Method. Formulate Constrained Maximization or Minimization Problem. Convert to Standard Form. Convert to Canonical Form

Lecture 11: Post-Optimal Analysis. September 23, 2009

The Simplex Algorithm

Simplex Method for LP (II)

MATH 445/545 Test 1 Spring 2016

Civil Engineering Systems Analysis Lecture XII. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

IE 400: Principles of Engineering Management. Simplex Method Continued

Week_4: simplex method II

Lecture 2: The Simplex method

The simplex algorithm

Math 354 Summer 2004 Solutions to review problems for Midterm #1

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

Slide 1 Math 1520, Lecture 10

Lecture 4: Algebra, Geometry, and Complexity of the Simplex Method. Reading: Sections 2.6.4, 3.5,

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Example Problem. Linear Program (standard form) CSCI5654 (Linear Programming, Fall 2013) Lecture-7. Duality

Linear Programming and the Simplex method

IE 5531: Engineering Optimization I

Contents. 4.5 The(Primal)SimplexMethod NumericalExamplesoftheSimplexMethod

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

CSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1

9.1 Linear Programs in canonical form

ORF 522. Linear Programming and Convex Analysis

Introduction to the Simplex Algorithm Active Learning Module 3

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

The Big M Method. Modify the LP

Chapter 4 The Simplex Algorithm Part I

1 Review Session. 1.1 Lecture 2

F 1 F 2 Daily Requirement Cost N N N

Dr. Maddah ENMG 500 Engineering Management I 10/21/07

56:270 Final Exam - May

LINEAR PROGRAMMING. Relation to the Text (cont.) Relation to Material in Text. Relation to the Text. Relation to the Text (cont.

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

4.4 The Simplex Method and the Standard Minimization Problem

The Simplex Algorithm: Technicalities 1

Gauss-Jordan Elimination for Solving Linear Equations Example: 1. Solve the following equations: (3)

Introduce the idea of a nondegenerate tableau and its analogy with nondenegerate vertices.

Distributed Real-Time Control Systems. Lecture Distributed Control Linear Programming

Optimization (168) Lecture 7-8-9

Summary of the simplex method

Chapter 4 The Simplex Algorithm Part II

4. Duality and Sensitivity

SELECT TWO PROBLEMS (OF A POSSIBLE FOUR) FROM PART ONE, AND FOUR PROBLEMS (OF A POSSIBLE FIVE) FROM PART TWO. PART ONE: TOTAL GRAND

56:171 Operations Research Fall 1998

The Avis-Kalunzy Algorithm is designed to find a basic feasible solution (BFS) of a given set of constraints. Its input: A R m n and b R m such that

II. Analysis of Linear Programming Solutions

Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

"SYMMETRIC" PRIMAL-DUAL PAIR

Today s class. Constrained optimization Linear programming. Prof. Jinbo Bi CSE, UConn. Numerical Methods, Fall 2011 Lecture 12

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

CO 250 Final Exam Guide

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

CPS 616 ITERATIVE IMPROVEMENTS 10-1

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

Math Models of OR: Some Definitions

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

Linear Programming. Linear Programming I. Lecture 1. Linear Programming. Linear Programming

Special cases of linear programming

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

Sensitivity Analysis and Duality in LP

Introduction to Operations Research


3 Does the Simplex Algorithm Work?

Chapter 3, Operations Research (OR)

Part III: A Simplex pivot

4. Duality Duality 4.1 Duality of LPs and the duality theorem. min c T x x R n, c R n. s.t. ai Tx = b i i M a i R n

Linear Programming Inverse Projection Theory Chapter 3

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Chapter 1 Linear Programming. Paragraph 5 Duality

Introduction to Mathematical Programming IE406. Lecture 10. Dr. Ted Ralphs

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

OPRE 6201 : 3. Special Cases

4.6 Linear Programming duality

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Variants of Simplex Method

Transcription:

Linear Programming, Lecture 4 Corbett Redden October 3, 2016

Simplex Form Conventions Examples Simplex Method To run the simplex method, we start from a Linear Program (LP) in the following standard simplex form. Max z s.t. ( z) + a 01 x 1 + + a 0n x n = b 0 a 11 x 1 + + a 1n x n = b 1 a m1 x 1 + + a mn x n = b m x i 0.

Simplex Form Conventions Examples Max z s.t. ( z) + a 01 x 1 + + a 0n x n = b 0 a 11 x 1 + + a 1n x n = b 1 a m1 x 1 + + a mn x n = b m x i 0 To be in standard simplex form: 1. All decision variables (except for z) are non-negative. 2. All other constraints are equalities. 3. The RHS (except for the cost row or z-row ) is non-negative. 4. For each row i, there is a column equal to e i (a 1 in row i, and 0 in all other rows)..

Simplex Form Conventions Examples Remarks There are multiple conventions as to what constitutes Standard Form. They are all different, but more or less equivalent in terms of requirements. Given an LP in the form: Max z, subject to inequalities all of the form a i x i b, one only needs to introduce slack variables to obtain starting standard form for Simplex Method. Today, we will learn techniques for more complicated LPs.

Simplex Form Conventions Examples Example 1 Is the following LP in standard simplex form? Maximize z, subject to x 1, x 2, x 3, s 1, s 2 0 and the equalities: z x 1 x 2 x 3 s 1 s 2 = RHS 1 1 9 1 0 0 0 0 1 2 3 1 0 9 0 3 2 2 0 1 15 Non-negative decision variables? Equalities for constrains? Non-negative RHS entries? Columns e i? z, s 1, s 2

Simplex Form Conventions Examples Example 2 Is the following LP in standard simplex form? Maximize z, subject to x 1, x 2, x 3, s 1, s 2 0 and the equalities: z x 1 x 2 x 3 s 1 s 2 = RHS 1 1 9 1 0 0 0 0 1 2 3 1 0 9 0 3 2 2 0 1 15 Non-negative decision variables? Equalities for constrains? Non-negative RHS entries? Columns e i? No column [ 0 1 0 ] T

Potential complications 1. Minimizing instead of maximizing. 2. Decision variables allowed to take negative values. 3. Inequalities of form a i x i b.

Maximize/Minimize Maximizing f (x 1,..., x n ) Minimizing f (x 1,..., x n ) Notes: To change between max/min, just multiply all coefficients by 1. In practice, some implementations of simplex method assume you are maximizing, and some assume you are minimizing. Max vs Min is a minor detail. When doing simplex method by hand, you may simply keep cost row the same as when maximizing, but perform pivots on columns with a negative entry in the cost row.

Decision variables taking negative values Bounded below: Suppose we have a variable x 20. Then: Substitute for new variable x = ˆx 20, or ˆx = x + 20, with ˆx 0. Note: For constraint x 20, we may introduce surplus variable, or we may use substitution x = ˆx + 20, with ˆx 0. Unbounded: Suppose we have unbounded variable w. Then: Use substitution w = w + w, with w +, w 0. Note: When more than one decision variable is unrestricted, a single variable x can be used for all of them, with the interpretation that it is the most negative of all the decision variables.

Put LP in Simplex Form to start Simplex Method Min x + y s.t. x + y 20 x + y 20 x y 20 x y 20 x, y unrestricted 20 10-20 -10 10 20-10 -20 Question: Will the LP have a unique solution?

Inequalities: 20 x + y 20 20 x y 20 Substitutions: x = x + x and y = y + y x +, x, y +, y 0 New inequalities: 20 x + x + y + y 20 20 x + x y + + y 20

Min x + x + y + y s.t. x + x + y + y 20 x + x + y + y 20 x + x y + + y 20 x + x y + + y 20 x +, x, y +, y 0

Max z = x + + x y + y s.t. x + x + y + y 20 x + x + y + y 20 x + x y + + y 20 x + x y + + y 20 x +, x, y +, y 0

Max z = x + + x y + y s.t. x + x + y + y +s 1 = 20 x + x + y + y s 2 = 20 x + x y + + y +s 3 = 20 x + x y + + y s 4 = 20 x +, x, y +, y 0

Maximize z subject to non-negativity constraints and: ( z) x + x y + y s 1 s 2 s 3 s 4 RHS 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 0 0 0 20 0 1 1 1 1 0 1 0 0 20 0 1 1 1 1 0 0 1 0 20 0 1 1 1 1 0 0 0 1 20 ( z) x + x y + y s 1 s 2 s 3 s 4 RHS 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 0 0 0 20 0 1 1 1 1 0 1 0 0 20 0 1 1 1 1 0 0 1 0 20 0 1 1 1 1 0 0 0 1 20

Alternate Options: Since two variables are unbounded, we could substitute x = x + t and y = y + t, where x +, y +, t 0. Here, t = max{ x, y, 0}. Inspecting the inequalities, we observe that x, y 20. Hence, we could use substitutions x = ˆx 20, y = ŷ 20, ˆx, ŷ 0.

Inequalities Given: j a ijx j b i, with b i > 0 Introduce: surplus variable s 0 to form a ij x j s i = b i. j Problem: Neither j a ijx j s i = b i nor j a ijx j + s i = b i give something in simplex form. Solution: Introduce artificial variable(s) α i 0, j a ijx j s i + α i = b i. Then, solve the related LP with objective function α i, and same constraints. This produces an initial Basic Feasible Solution and immediately translates to the LP in simplex form.

Example 3.0 Max 2x 1 + x 2 s.t. x 1 + x 2 3 x 1 + x 2 1 x 1, x 2 0 2.0 1.5 1.0 0.5 2.5 0.0 0.0 0.5 1.0 1.5 2.0

Phase I auxiliary LP: Min x 5 s.t. x 1 + x 2 +x 3 = 3 x 1 + x 2 x 4 + x 5 = 1 x 1,... x 5 0 w x 1 x 2 x 3 x 4 x 5 RHS 1 0 0 0 0 1 0 0 1 1 1 0 0 3 0 1 1 0 1 1 1 w x 1 x 2 x 3 x 4 x 5 RHS 1 1 1 0 1 0 1 0 1 1 1 0 0 3 0 1 1 0 1 1 1

Solution to Phase I auxiliary LP: w x 1 x 2 x 3 x 4 x 5 RHS 1 0 0 0 0 1 0 0 2 0 1 1 1 2 0 1 1 0 1 1 1 Solution of x 1 = 0, x 2 = 1, x 3 = 2, x 4 = 0 gives x 5 = 0. These values (x 1,..., x 4 ) satisfy the original LPs constraints, and they form our initial Basic Feasible Solution! Phase II, Solving initial LP: z x 1 x 2 x 3 x 4 RHS 1 2 1 0 0 0 0 2 0 1 1 2 0 1 1 0 1 1 ERO s to isolate x 2, x 3, then in simplex form.

Unbounded regions Cycling Suppose that when performing the simplex method, you obtain column with positive number in objective row, and non-positive numbers in rest of column. Then, the feasible region is unbounded, and a solution does not exist. Example: z x 1 x 2 x 3 x 4 RHS 1 2 0 0 0 0 0 2 0 1 1 2 0 1 1 0 1 1 For basic solution, we let x 1 = 0. But, we can let x 1 be any positive number, and we obtain a better feasible solution.

Unbounded regions Cycling Cycling When several iterations of the simplex method do not improve the current objective value, this is called stalling. When, after several iterations, the simplex method returns a previous tableau, this is called cycling. In general, stalling and cycling can occur. Some implementations of the simplex method include special provisions to prevent cycling; other implementations do not try to prevent cycling, and instead rely on small rounding errors to eventually move off the cycle.

Unbounded regions Cycling Bland s Rule: 1. Select the first column with positive coefficient in Z -row. 2. If there is a tie in Min-Ratio test, choose the first row within the tie. Theorem: Following Bland s Rule, the simplex method will always terminate in a finite number of steps.