Discrete Optimization Lecture #3 2008/3/41Shi-Chung Chang, NTUEE, GIIE, GICE Last Time 1.Algorithms and Complexity » Problems, algorithms, and complexity.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
Duality for linear programming. Illustration of the notion Consider an enterprise producing r items: f k = demand for the item k =1,…, r using s components:
The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
Lecture 3 Linear Programming: Tutorial Simplex Method
SIMPLEX METHOD FOR LP LP Model.
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Linear programming Thomas S. Ferguson University of California at Los Angeles Compressive Sensing Tutorial PART 3 Svetlana Avramov-Zamurovic January 29,
The Simplex Method: Standard Maximization Problems
CS38 Introduction to Algorithms Lecture 15 May 20, CS38 Lecture 15.
Design and Analysis of Algorithms
Chapter 10: Iterative Improvement
Linear Programming (LP)
The Simplex Method.
ISM 206 Lecture 3 The Simplex Method. Announcements Homework due 6pm Thursday Thursday 6pm lecture.
Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables.
ISM 206 Lecture 3 The Simplex Method. Announcements.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
The Simplex algorithm.
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
1. The Simplex Method.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
Simplex method (algebraic interpretation)
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Minimum Cost Flows. 2 The Minimum Cost Flow Problem u ij = capacity of arc (i,j). c ij = unit cost of shipping flow from node i to node j on (i,j). x.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
3.3 Implementation (1) naive implementation (2) revised simplex method
Mechanical Engineering Department 1 سورة النحل (78)
Linear Programming Erasmus Mobility Program (24Apr2012) Pollack Mihály Engineering Faculty (PMMK) University of Pécs João Miranda
Simplex Method Continued …
Linear Programming Implementation. Linear Programming
Discrete Optimization Lecture #2 2008/2/271Shi-Chung Chang, NTUEE, GIIE, GICE Last Time 1.Course Overview » A taxonomy of optimization problems » Course.
§1.4 Algorithms and complexity For a given (optimization) problem, Questions: 1)how hard is the problem. 2)does there exist an efficient solution algorithm?
1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
Hon Wai Leong, NUS (CS6234, Spring 2009) Page 1 Copyright © 2009 by Leong Hon Wai CS6234: Lecture 4  Linear Programming  LP and Simplex Algorithm [PS82]-Ch2.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
The Simplex Algorithm 虞台文 大同大學資工所 智慧型多媒體研究室. Content Basic Feasible Solutions The Geometry of Linear Programs Moving From Bfs to Bfs Organization of a.
Hon Wai Leong, NUS (CS6234, Spring 2009) Page 1 Copyright © 2009 by Leong Hon Wai CS6234: Lecture 4  Linear Programming  LP and Simplex Algorithm [PS82]-Ch2.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
The minimum cost flow problem. Solving the minimum cost flow problem.
Simplex Method Review. Canonical Form A is m x n Theorem 7.5: If an LP has an optimal solution, then at least one such solution exists at a basic feasible.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Chap 10. Sensitivity Analysis
The minimum cost flow problem
Perturbation method, lexicographic method
Duality for linear programming.
The Network Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Chap 9. General LP problems: Duality and Infeasibility
Chap 3. The simplex method
Chapter 3 The Simplex Method and Sensitivity Analysis
Part 3. Linear Programming
Starting Solutions and Convergence
Chapter 8. General LP Problems
ISyE 4231: Engineering Optimization
Chapter 8. General LP Problems
Simplex method (algebraic interpretation)
Chapter 10: Iterative Improvement
Chapter 8. General LP Problems
Practical Issues Finding an initial feasible solution Cycling
Chapter 6. Large Scale Optimization
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Presentation transcript:

Discrete Optimization Lecture #3 2008/3/41Shi-Chung Chang, NTUEE, GIIE, GICE Last Time 1.Algorithms and Complexity » Problems, algorithms, and complexity » Polynomial time algorithms » Intractability » NP-complete problems 2.Basic Properties of Linear Programming » Forms of LP » Basic feasible solutions » Geometry of LP 3.The Revised Simplex Method

Today 1.The R evised Simplex Algorithm » Basics » The algorithm » Getting an Initial Feasible Solution 2.Computational Aspects » Updating the basis » Convergence and Degeneracy » The Revised Simplex Method 3.Duality » Dual LP » The Duality Theorem » Complementary Slackness » The Dual Simplex Algorithm 2008/3/42Shi-Chung Chang, NTUEE, GIIE, GICE

Reading Assignments: 1.Sections , of [PaS 8 3] 2.Sections of [Lue 8 4] Next Time: sections 4.3,4.4 and Chapter 5 of [PaS 83] 2008/3/43Shi-Chung Chang, NTUEE, GIIE, GICE

§2.2 The Revised Simplex Method The simplex method for LP : G.B. Dantzig 1951 Key idea: Phase1: find a bfs of Note that an LP may not have a solution Example min s.t. 2008/3/44Shi-Chung Chang, NTUEE, GIIE, GICE

Phase 2 Allow one of the zero components of the bfs to become positive and force one of the original positive components to become zero. => How to pick “entering” and “leaving” component Cost Traditional form of the simplex method: Tableau => read by yourself Here we consider matrix form for conciseness of presentation and later developments. 2008/3/45Shi-Chung Chang, NTUEE, GIIE, GICE

SLP: s.t. Assume P(A)=m. Partition A=[B:D] B: m linearly indep. columns of A (Assume the first m cols.) (SLP) subject to (3.1) 2008/3/46Shi-Chung Chang, NTUEE, GIIE, GICE

If and a basic solution When from (3.1) (note that may not ≥0 ) (3.2) Substituting(3.2) into the cost function (3.3) Define (3.4) as the relative cost vector => To minimize Z, we need only adjust Q: How? 2008/3/47Shi-Chung Chang, NTUEE, GIIE, GICE

Example subject to =2 + =5 + =6 In matrix form. 2008/3/48Shi-Chung Chang, NTUEE, GIIE, GICE

 2008/3/49Shi-Chung Chang, NTUEE, GIIE, GICE

Define the vector of simplex multipliers Compute in two steps: Assume that is non degenerate If is optimal and it does not pay to increase If then the cost Z can possible be decreased by increasing 2008/3/410Shi-Chung Chang, NTUEE, GIIE, GICE

Q : (1) any limitations on increasing ? (2) If there are more than one component of r < 0 => which should we change to increase? Simplex method chooses one entering variable, Normally one with the most negative Q: which component should leave? the first one to reach 0 => satisfied again. 2008/3/411Shi-Chung Chang, NTUEE, GIIE, GICE

If we consider bringing into the basis, i.e., as the entering variable => 2008/3/412Shi-Chung Chang, NTUEE, GIIE, GICE

Mathematically, let be the new value vector of => The ith component of is zero when i.e. when 2008/3/413Shi-Chung Chang, NTUEE, GIIE, GICE

To maintain feasibility, the smallest of these ratios for i where > 0 determines how large can be. Say, it happens at l th components of  The new bfs has and leaves the basis while enters R earranging, w e can get 2008/3/414Shi-Chung Chang, NTUEE, GIIE, GICE

Revised Simplex Algorithm( one iteration) Step 1: Giving is the basis B such that Step 2: Solve to get Step 3 : Calculate If r ≥ 0 => optimal solution achieved, STOP Find K = arg Step 4 : Solve for y Step 5 : Find If, => unbounded solution, STOP Step 6 : Update the basic solution Step 7 : Update the basis Return to step /3/415Shi-Chung Chang, NTUEE, GIIE, GICE

How to Update Basis Note that in the simplex algorithm we need to solve (step 2) (step 4) Where B’s differ by only one column between any two subsequent iterations. => How to calculate B’s efficiently? 2008/3/416Shi-Chung Chang, NTUEE, GIIE, GICE

Recall (rank one update) 2008/3/417Shi-Chung Chang, NTUEE, GIIE, GICE

Note: => Product Form of the inverse(PFI) 2008/3/418Shi-Chung Chang, NTUEE, GIIE, GICE

Some Computational Aspects Let be the elementary matrices after K pivot iterations. => For large-scale problems, store ‘s as vector and update and y as followers: 2008/3/419Shi-Chung Chang, NTUEE, GIIE, GICE

What if is small in pivoting?  Use LU or QR decompositions in computing If B is the current basis Note that => upper Hessenberg 2008/3/420Shi-Chung Chang, NTUEE, GIIE, GICE

Using a sequence of elimination steps on H: Store QR-decomposition Do givens transformation on H The simplex method is theoretically an exponential algorithm In practice, 2(n + m) iterations, i.e., a linear function of (n + m) 2008/3/421Shi-Chung Chang, NTUEE, GIIE, GICE

Convergence and Degeneracy Convergence: If the objective function value strictly decreases after every iteration, the simplex algorithm never repeats a basis and it converges in a finite number of iterations. why? Degeneracy: If for a such that => x is a degenerate 2008/3/422Shi-Chung Chang, NTUEE, GIIE, GICE

Property: in the pivoting step, => i.e. no change in cost. => Problem: cycling among degenerate => no guarantee of convergence => need an anti-cycling algorithm 2008/3/423Shi-Chung Chang, NTUEE, GIIE, GICE

How to get an initial feasible solution? (p)  (PH1) subject to 2008/3/424Shi-Chung Chang, NTUEE, GIIE, GICE

(P) has a feasible solution in (PH1) Q: can solve (PH1) using revised simplex with as the initial feasible solution 2008/3/425Shi-Chung Chang, NTUEE, GIIE, GICE

Solving S-P by the Revised Simplex Subject to * Flow balance eq. corresponding to * is dropped due to redundancy. 2008/3/426Shi-Chung Chang, NTUEE, GIIE, GICE

Chapter 3 Duality § 3.1 Dual LP Consider (SLP) Subject to 2008/3/427Shi-Chung Chang, NTUEE, GIIE, GICE

Dual Viewpoint From the optimality condition, if optimal solution to SLP => corresponding partition of A matrix such that Note that in Simplex Method, we have

Dual Viewpoint (Cont.) Note that The ’ we are looking for must satisfy (3.5) for any The root of (3.5) comes from So, Note that ’ in (3.5) and (3.6) satisfies (3.7) and (3.8).

Dual Objective Function Now consider the objective function From inequality (3.8) that then for any bfs  ’ is the one that leads to the maximum value while satisfying (3.7) and (3.8) we have and from (3.9)

Dual SLP (SLP) Subject to 2008/3/431Shi-Chung Chang, NTUEE, GIIE, GICE (DSLP) Subject to