IEOR 4004 Midterm Review (part I)

Slides:



Advertisements
Similar presentations
February 21, 2002 Simplex Method Continued
Advertisements

Tuesday, March 5 Duality – The art of obtaining bounds – weak and strong duality Handouts: Lecture Notes.
February 14, 2002 Putting Linear Programs into standard form
IEOR 4004 Final Review part II.
The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
Thank you and welcome Linear Programming (LP) Modeling Application in manufacturing And marketing By M. Dadfar, PhD.
IEOR 4004: Introduction to Operations Research Deterministic Models January 22, 2014.
Linear Programming – Simplex Method: Computational Problems Breaking Ties in Selection of Non-Basic Variable – if tie for non-basic variable with largest.
Hillier and Lieberman Chapter 4.
Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:
IEOR 4004 Midterm review (Part II) March 12, 2014.
Linear Programming Problem
Lecture 3 Linear Programming: Tutorial Simplex Method
Linear Programming – Simplex Method
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Chapter 3 An Introduction to Linear Programming
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
FORMULATION AND GRAPHIC METHOD
Linear Programming.
LINEAR PROGRAMMING SIMPLEX METHOD.
The application of mathematics and the scientific
Linear Programming Chapter 13 Supplement.
L20 LP part 6 Homework Review Postoptimality Analysis Summary 1.
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
Duality Theory LI Xiaolei.
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Chapter 6 Supplement Linear Programming.
Duality Theory  Every LP problem (called the ‘Primal’) has associated with another problem called the ‘Dual’.  The ‘Dual’ problem is an LP defined directly.
Solving Linear Programming Problems: The Simplex Method
LP: Summary thus far Requirements Graphical solutions Excel Sensitivity Analysis.
Linear Programming Erasmus Mobility Program (24Apr2012) Pollack Mihály Engineering Faculty (PMMK) University of Pécs João Miranda
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Part 3. Linear Programming 3.2 Algorithm. General Formulation Convex function Convex region.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
The minimum cost flow problem. Solving the minimum cost flow problem.
1 Simplex algorithm. 2 The Aim of Linear Programming A Linear Programming model seeks to maximize or minimize a linear function, subject to a set of linear.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
An Introduction to Linear Programming
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Special Cases in simplex method applications
Linear Programming Topics General optimization model
The minimum cost flow problem
MBA 651 Quantitative Methods for Decision Making
Graphical Analysis – the Feasible Region
Linear Programming Topics General optimization model
Gomory Cuts Updated 25 March 2009.
Chapter 4 Linear Programming: The Simplex Method
Linear Programming Topics General optimization model
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
ISS500E-Quantitiative Decision Tehniques
Linear Programming Topics General optimization model
The application of mathematics and the scientific
Chapter 3 The Simplex Method and Sensitivity Analysis
Part 3. Linear Programming
Linear Programming I: Simplex method
Lecture 4 Part I Mohamed A. M. A..
Operations Research Models
Linear Programming Problem
Practical Issues Finding an initial feasible solution Cycling
Presentation transcript:

IEOR 4004 Midterm Review (part I) March 10, 2014

Summary Modeling optimization problems Linear program Simplex method Algorithm Initialization Variants Sensitivity analysis (in part II) Duality (in part II) Upper bounds and Shadow prices Complementary slackness

Mathematical modeling Simplified (idealized) formulation Limitations Only as good as our assumptions/input data Cannot make predictions beyond the assumptions We need more maps

Mathematical modeling Problem simplification Model formulation Model Algorithm selection Numeric calculation Problem Solution Interpretation Sensitivity analysis

Mathematical modeling Deterministic = values known with certainty Stochastic = involves chance, uncertainty Linear, non-linear, convex, semi-definite

Formulating an optimization problem Linear program Linear objective Decision variables Objective Constraints Domains x1, x2, x3, x4 + x1 (1 − 2x2)2 Minimize 2x2 + 3x3 (x1)2 + (x2)2 + (x3)2 + (x4)2 ≤ 2 x1 − 2x2 + x3 − 3x4 ≤ 1 − x1 + 3x2 + 2x3 + x4 ≥ − 2 − 2x1x3 = 1 Linear constraints x1 ≥ 0 x3 in {0,1} x4 in [0,1] x2 ≠ 0.5 Sign restriction

Linear program solution = values of variables that together satisfy all constraints Feasible solution = satisfies also sign constraints Infeasible solution = not feasible Basis = set of m variables (where m = # of equations) Variable in basis = basic variable, all other non-basic Basic solution = set all non-basic variables to zero {x1, x2} x1 − 2x2 + x3 − 3x4 = 1 − x1 + 3x2 + 2x3 + x4 = − 2 x1 = − 1 x2 = −1 x3 = 0 x4 = 0 x1 = 4/3 x2 = 0 x3 = −1/3 x4 = 0 x1 ≥ 0

Linear program Feasible region = set of all feasible solutions LP is Infeasible if feasible region empty LP is Unbounded if the objective function is unbounded over the feasible region objective function grows beyond bounds objective function growth is limited

Simplex algorithm Converting to standard form Add slack variables Substitute negative variables Substitute unrestricted variables Dictionary x5 = 3 − x1 + 2x2 − x3’ + 3x4+ − 3x4− x6 = 2 − x1 + 3x2 + 2x3’ + x4+ − x4− − 3x4+ + 3x4− + x4+ − x4− x1 − 2x2 − x1 + 3x2 − x3’ − 2x3’ + x3 + 2x3 + x5 = − x6 = − 3x4 + x4 ≤ ≥ 3 − 2 z = − 2x2 + 3x3’ x1, x2 ≥ 0 x5, x6 ≥ 0 x3 ≤ 0 x3’ ≥ 0 x4+, x4− ≥ 0

Simplex method (maximization) START x5 = 3 − x1 + 2x2 − x3’ + 3x4+ − 3x4− x6 = 2 − x1 + 3x2 + 2x3’ + x4+ − x4− Initial feasible solution z = − 2x2 + 3x3’ xj Pivot xj to the basis Optimality test Are all coefficients in z non-positive ? Ratio test Find min b/a a = coeff of xi in xj b = value of xj a, b opposite signs Variable selection xi NO YES END Alternative solutions? optimal solution found xj does not exist LP is unbounded

Simplex algorithm Anatomy of a dictionary Ratio test: x5: 3/1 = 3 x6: no constraint (different sign) (same sign) x5 = 3 − x1 + 2x2 − x3’ + 3x4+ − 3x4− x6 = 2 − x1 + 3x2 + 2x3’ + x4+ − x4− basis objective(s) z = − 2x2 + 3x3’ zero coeff negative coeff positive coeff x3’ enters x5 leaves (min ratio)

Simplex/Graphical method x3, x4 are slack variables Illustration profit: 180 150 80 max 3x1 +2x2 x1 + x2 + x3 = 80 2x1 + x2 + x4 = 100 x1, x2, x3, x4 ≥ 0 max 3x1 +2x2 x1 + x2 ≤ 80 2x1 + x2 ≤ 100 x1, x2 ≥ 0 z start: x1=0, x2=0, x3=80, x4=100 x1 increases until x4=0 60 x2 increases until x3=0 optimal 40 x3 x1 x4 isoprofit line 20 x2 3x1 +2x2 = profit 20 40 60 80

Initialization - Phase I Goal: make all original variables non-basic (=0) If all-0 doesn’t satisfy a constraint, add artificial variable ai: add +ai if the right-hand side is > 0 add –ai if the right-hand side < 0 Add slack variables (where needed) New objective: minimize the sum of artificial variables Starting basis: all artificial + slack variables from equations without artificial variables If optimal value negative, then LP Infeasible Else drop artificial variables and introduce z Maximize w = − a2 − a3 z = 2x2 − 3x3 s1 = 1 − x1 + 2x2 − x3 + 3x4 a2 = 2 − x1 + 3x2 + 2x3 + x4 a3 = 1 − x2 − x3 − 2x4 + e3 x1 = 5/2 − (7/2)x3 + (1/4)a2 − (7/4)a3 − (5/4)s1 + (7/4)e3 x2 = 0 − 2x3 + (1/2)a2 − (1/2)a3 − (1/2)s1 + (1/2)e3 x4 = 1/2 + (1/2)x3 − (1/4) a2 − (1/4)a3 + (1/4)s1 + (1/4)e3 x1 = 5/2 − (7/2)x3 − (5/4)s1 + (7/4)e3 x2 = 0 − 2x3 − (1/2)s1 + (1/2)e3 x4 = 1/2 + (1/2)x3 + (1/4)s1 + (1/4)e3 x1 − 2x2 + x3 − 3x4 − x1 + 3x2 + 2x3 + x4 x2 + x3 + 2x4 ≤ 1 = − 2 ≥ 1 + s1 = 1 = − 2 = 1 − a2 − e3 w = − a2 − a3 w = −3 + x1 − 4x2 − 3x3 − 3x4 − e3 + a3 w = − a2 − a3 z = − 7x3 − s1 + e3 z = 2x2 − 3x3

Degeneracy Basic solution is degenerate if some basic variable is zero x1=20 x2=60 x3=x4=x5=0 Basic solution is degenerate if some basic variable is zero multiple dictionaries 80 60 max 3x1 +2x2 x1 + x2 + x3 = 80 2x1 + x2 + + x4 = 100 6x1 + x2 + +x5 = 180 x1, x2, x3, x4, x5 ≥ 0 40 20 20 40 60 80 x1 = 20 + x3 − x4 x2 = 60 − 2x3 + x4 x5 = − 4x3 + 5x4 z = 180 − x3 − x4 x1 = 20 + 0.2x3 − 0.2x5 x2 = 60 − 1.2x3 + 0.2x5 x4 = 0.8x3 + 0.2x5 z = 180 − 1.8x3 − 0.2x5 x1 = 20 + 0.25x4 − 0.25x5 x2 = 60 − 1.5x4 + 0.5x5 x3 = 1.25x4 − 0.25x5 z = 180 − 2.25x4 + 0.25x5 optimal optimal ???

Upper bounded Simplex Anatomy of a dictionary Ratio test: 1. (different sign) x5: 3/1 = 3 2. (entering variable) x3: 2 3. (same sign) x6: (4−1)/2 = 1.5 (different sign) x5 = 3 − x1 + 2x2 − x3 + 3x4 x6 = 1 − x1 + 3x2 + 2x3 + x4 basis objective(s) z = − 2x2 + 3x3 (same sign) 0 ≤ x1, x2 , x4, x5 0 ≤ x3 ≤ 2 0 ≤ x6 ≤ 4 x3 enters bounds 0 ≤ x6’ ≤ 4 substitute x6 = 4 − x6’ x6 leaves (min ratio)

(all coefficients non-positive) Dual Simplex Anatomy of a dictionary Ratio test: x1: no constraint x2: 5/2 = 2.5 x3: no constraint x4: 7/4 = 1.75 (positive) negative value infeasible! x5 = − 3 − x1 + 2x2 − x3 + 4x4 x6 = 1 − x1 + 3x2 + 2x3 + x4 basis objective(s) z = − 5x2 − 3x3 − 7x4 dually feasible (all coefficients non-positive) x5 leaves x4 enters (min ratio)