Lecture 14: October 11

Similar documents
Linear programs Optimization Geoff Gordon Ryan Tibshirani

Lecture 15: October 15

Lecture 24: August 28

Lecture 16: October 22

Lecture 1: September 25

Math Models of OR: Some Definitions

February 17, Simplex Method Continued

Supplementary lecture notes on linear programming. We will present an algorithm to solve linear programs of the form. maximize.

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Lecture 14: October 17

Simplex method(s) for solving LPs in standard form

1 Review Session. 1.1 Lecture 2

Lecture 2: The Simplex method

Lecture Simplex Issues: Number of Pivots. ORIE 6300 Mathematical Programming I October 9, 2014

Lecture 11: October 2

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

ECE 307 Techniques for Engineering Decisions

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

Linear Programming and the Simplex method

IE 5531: Engineering Optimization I

TIM 206 Lecture 3: The Simplex Method

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

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

Lecture 20: November 1st

Lecture 18: November Review on Primal-dual interior-poit methods

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

Lecture 6: September 12

LINEAR PROGRAMMING I. a refreshing example standard form fundamental questions geometry linear algebra simplex algorithm

Lecture slides by Kevin Wayne

9.1 Linear Programs in canonical form

Lecture 5: September 12

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

3 The Simplex Method. 3.1 Basic Solutions

Lecture 26: April 22nd

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

Review Solutions, Exam 2, Operations Research

Special cases of linear programming

Summary of the simplex method

Sensitivity Analysis

2.098/6.255/ Optimization Methods Practice True/False Questions

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

AM 121: Intro to Optimization

Lecture 5: September 15

Lecture 9: Numerical Linear Algebra Primer (February 11st)

Math 273a: Optimization The Simplex method

Slide 1 Math 1520, Lecture 10

Part 1. The Review of Linear Programming

MATH2070 Optimisation

Introduction to the Simplex Algorithm Active Learning Module 3

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

Simplex Algorithm Using Canonical Tableaus

Lecture 6: September 19

Lecture 4: September 19

OPRE 6201 : 3. Special Cases

Lecture 5 Simplex Method. September 2, 2009

Lecture 11 Linear programming : The Revised Simplex Method

The Simplex Algorithm: Technicalities 1

15-780: LinearProgramming

Optimization (168) Lecture 7-8-9

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

CO 602/CM 740: Fundamentals of Optimization Problem Set 4

10-704: Information Processing and Learning Fall Lecture 9: Sept 28

Lecture 17: Primal-dual interior-point methods part II

MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis

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

IE 400 Principles of Engineering Management. The Simplex Algorithm-I: Set 3

Notes on Simplex Algorithm

1 Overview. 2 Extreme Points. AM 221: Advanced Optimization Spring 2016

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

10-725/36-725: Convex Optimization Spring Lecture 21: April 6

Lecture 6: September 17

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

IE 400: Principles of Engineering Management. Simplex Method Continued

ORF 522. Linear Programming and Convex Analysis

Farkas Lemma, Dual Simplex and Sensitivity Analysis

The augmented form of this LP is the following linear system of equations:

Non-Standard Constraints. Setting up Phase 1 Phase 2

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

IE 5531: Engineering Optimization I

LP. Lecture 3. Chapter 3: degeneracy. degeneracy example cycling the lexicographic method other pivot rules the fundamental theorem of LP

The Simplex Method for Solving a Linear Program Prof. Stephen Graves

Systems Analysis in Construction

Lecture 10: September 26

Lecture 4: January 26

Understanding the Simplex algorithm. Standard Optimization Problems.

Lecture 17: October 27

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

1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Linear Programming, Lecture 4

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

Summary of the simplex method

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

Part III: A Simplex pivot

10-704: Information Processing and Learning Fall Lecture 10: Oct 3

AM 121: Intro to Optimization Models and Methods Fall 2018

Lecture 14: Newton s Method

Water Resources Systems: Modeling Techniques and Analysis

Lesson 27 Linear Programming; The Simplex Method

Lecture 9: September 28

Transcription:

10-725: Optimization Fall 2012 Lecture 14: October 11 Lecturer: Geoff Gordon/Ryan Tibshirani Scribes: Zitao Liu Note: LaTeX template courtesy of UC Berkeley EECS dept. Disclaimer: These notes have not been subjected to the usual scrutiny reserved for formal publications. They may be distributed outside this class only with the permission of the Instructor. This lecture s notes illustrate some uses of various L A TEX macros. Take a look at this and imitate. 14.1 Previous class review Notations: For the Linear Programming(LP) problems, we have m constraints, and n variables. A : R m n, b : R m, c : R n, x : R n 14.1.1 Inequality form of LP where m n [min or max] c T x s.t. Ax b 14.1.2 Standard form of LP where m n [min or max] c T x s.t. Ax = b, x 0 14.2 Nonsingular standard form of LP We follow the same notation used in 14.1. where m n and A has full row rank. [min or max] c T x s.t. Ax = b, x 0 Change LP to its nonsingular form: keep dropping rows until A becomes a full row rank matrix. 14.3 Solving LPs Optimum of LPs is always achieved at a corner/vertex(= a 0-face). 14-1

14-2 Lecture 14: October 11 14.3.1 Naive algorithm Intuition: enumerate all possible bases. Algorithm 1 Naive algorithm solving LPs Transform LP to its nonsingular standard form // Iterate through all subsets of m variables out of n variables repeat // Check the subset for full rank and feasibility isfullrank = checkfullrank() isfeasible = checkfeasibility() if isfullrank && isfeasible then // Compute objective function s value objval = computeobjvalue(); // for max objective function, flip the direction if we have min objective function. if objval > bestobjval then bestobjval = objval; end if end if until explore all the ( n m) subsets. 14.3.2 Simplex algorithm Intuition: reduce the search space of basis in Native algorithm. Maybe the neighbors of good bases are also good. Neighbors: Two bases are called neighbors if they share m-1 variables. Algorithm 2 Simplex algorithm solving LPs Transform LP to its nonsingular standard form Start from a feasible basis and its tableau repeat Pick a non-basis variable whose coefficient in negative in objective function. Pivot it into basis and get neighboring basis until all non-basis variables have positive coefficients in objective function Example: max z = 2x + 3y s.t x + y 4 2x + 5y 12 x + 2y 5 x 4 x, y 0 Solving it using simplex algorithm:

Lecture 14: October 11 14-3 Figure 14.1: Graphical representation of the example LP problem. 1. Transform it into a nonsingular standard form. max z = 2x + 3y s.t x + y + s = 4 2x + 5y + t = 12 x + 2y + u = 5 x + v = 4 x, y, s, t, u, v 0 2. Start from a feasible basis and its tableau. See Table 14.1. Table 14.1: Simplex Tableau for basis < s, t, u, v >. 1 1 1 0 0 0 0 4 2 5 0 1 0 0 0 12 1 2 0 0 1 0 0 5 1 0 0 0 0 1 0 4-2 -3 0 0 0 0 1 0 3. Change to a feasible neighbor basis and its tableau. Move y in and t out. See Table 14.2. 4. Change to a feasible neighbor basis and its tableau. Move x in and u out. See Table 14.3. 5. Change to a feasible neighbor basis and its tableau. Move t in and s out. See Table 14.4. 6. All the non-basis variables have the positive coefficients in the objective function, which means we have achieved the optimum values. So the z max = 9.

14-4 Lecture 14: October 11 Table 14.2: Simplex Tableau for basis < s, y, u, v >. 0.4 1 0 0.2 0 0 0 2.4 0.6 0 1-0.2 0 0 0 1.6 0.2 0 0-0.4 1 0 0 0.2 1 0 0 0 0 1 0 4-0.8 0 0 0.6 0 0 1 7.2 Table 14.3: Simplex Tableau for basis < s, y, x, v >. 1 0 0-2 5 0 0 1 0 1 0 1-2 0 0 2 0 0 1 1-3 0 0 1 0 0 0 2-5 1 0 3 0 0 0-1 4 0 1 8 Table 14.4: Simplex Tableau for basis < t, y, x, v >. 1 0 2 0-1 0 0 3 0 1-1 0 1 0 0 1 0 0 1 1-3 0 0 1 0 0-2 0 1 1 0 1 0 0 1 0 1 0 1 9

Lecture 14: October 11 14-5 14.4 Degeneracy 14.4.1 What is degeneracy? We all know that simplex algorithm starts at one feasible corner point and moves to an adjacent corner point by increasing the value of a non-basic variable with a negative value in the z-row. In the ordinary case, every time we change the basis, the objective value will be improved, but in some cases, the objective function value does not increase at all, which means the objective value and solution does not change, but there is an exiting variable. We call this situation is degeneracy. The degeneracy will happen when on of the RHS coefficients in the tableau is zero. Basically, we can say there are two types of degeneracies: 1. Ordinary degeneracy: stay at the same corner(exiting variable was already 0) 2. Dual degeneracy: move to another corner with the same objective value(coefficient of entering variable in objective was 0) 14.4.2 Degeneracy examples The following is a degeneracy example in 2D. s.t. max x + y x,y x + y + u = 4 2x + 5y + v = 12 x + 2y + w = 16/3 x, y, u, v, w 0 And the graphical illustration is in Figure 14.2. As we can see, there are 3 lines cross the same point and if we write down the tableau and we can see that even we change the basis according to the simplex algorithm, we can not increase the objective value. Here is another example about degeneracy in 3D. Its graphical illustration is in Figure 14.3. If we look at the red circled vertex, we can see that there are 5 faces cross at that red point in our 3D setting. So there are ( 5 3) different basis we can choose for that vertex, which yields a degeneracy case. 14.4.3 Solutions for degeneracy Degeneracy is bad since it may lead our simplex algorithm to an infinite cycle. There are two directions to solve this problem: 1. Use an anti-cycling rules to break the cycle. 2. Perturbation approach(add tiny random numbers to the objective function and RHS).

14-6 Lecture 14: October 11 Figure 14.2: A degeneracy example in 2D. Figure 14.3: A degeneracy example in 3D.