Overview of course. Introduction to Optimization, DIKU Monday 12 November David Pisinger
|
|
- Marsha Lynne Ball
- 6 years ago
- Views:
Transcription
1 Introduction to Optimization, DIKU Monday November David Pisinger Lecture What is OR, linear models, standard form, slack form, simplex repetition, graphical interpretation, extreme points, basic solution, CPLEX introduction Taha sections,, (briefly), 4 (briefly),,, 4, 6 all examples can be read briefly Overview of course What is OR, linear models, standard form, slack form, simplex repetition, graphical interpretation, extreme points, basic solution, CPLEX introduction Revised simplex algorithm, bounded variables Duality, shadow prices, sensitivity analysis, post-optimal analysis, complementary slackness, KKT optimality constraints, CPLEX sensitivity 4 Network problems, transportation model, total unimodular (perfect matrices, interval matrices, property P), max-flow min-cut duality 5 Interior point methods, Simplex vs interior point 6 External speaker: Erling Andersen, MOSEK Projektopgaver Sensitivity analysis Multicommodity flow problem Assumption Knowledge of matrix notation (appendix D in Taha) Overview of course Linear Programming: VA simplex, equation duality theorem proof of termination INT-OPT simplex, tabular complementary slack condition revised simplex interpretation of tabular sensitivity analysis post-optimal analysis worst-case complexity of simplex interior-point methods What is Operations Research The application of scientific methods By interdisciplinary teams To problems involving the control of organized manmachine systems so as to provide solutions which best serve the purpose of the organization as a whole (RLAckoff) OR is concerned with scientifically deciding how to best design and operate man-machine systems, usually under conditions requiring the allocation of scarce resources (ORSA definition, 976) OR is the activity carried on by members of the OR society; its methods are those reported in our journal (PM Morse, 95) Operations Research: The science of better Time-starved executives are making bolder decisions with less risk and better outcomes Their secret: operations research (INFORMS, definition 004) OR is the discipline of applying advanced analytical methods to help make better decisions (INFORMS, definition 004) OR is an expensive way of being insulted by someone half your age (Stafford Beer) 4
2 Operations Research problem formulation conceptual model model building Tons of raw per ton of Max availability Ext Paint (EP) Int Paint (IP) (tons) Raw, M Raw, M 6 Profit/ton 5 4 real world system symbolic model demand of IP cannot exceed that of EP by more than ton maximum daily demand of IP is tons interpretation solution solution of model Any OR model has three basic components Decision variables that we seek to determine Objective (goal) that we aim to optimize Constraints that we need to satisfy Model building is an art 5 6 Tons of raw per ton of Max availability Ext Paint (EP) Int Paint (IP) (tons) Raw, M Raw, M 6 Profit/ton 5 4 demand of IP cannot exceed that of EP by more than ton maximum daily demand of IP is tons Decision variables x tons produced daily of EP x tons produced daily of IP Objective maximize z = 5x + 4x Constraints 6x + 4x 4 (raw M) x + x 6 (raw M) x + x (x x + ) x Nonnegativity constraints (implicitly given) x 0 x 0 Proportionality and additivity linearity Two decision variables, solution space can be drawn in D Convex solution space 7 8
3 Graphical solution Sensitivity Analysis, objective z = 5x + 4x Solution remains optimal between Isoprofit line Optimal solution in corner point (or side) x = (, ) z = 5 +4 = z = x + x z = 6x + 4x 9 0 Sensitivity Analysis, constraint M Sensitivity Analysis, constraint M range 0 M 6 profit of increasing M one unit z G z C 0 = = dual variable corresponding to M range 4 M 6 profit of increasing M one unit z C z B 6 4 = 0 dual variable corresponding to M =
4 Standard form and Slack form Matrix representation LP problem max c x + c x +c n x n st a x + a x ++a n x n b a x + a x ++a n x n b a m x + a m x ++a mn x n b m x,x,,x n 0 Can be written in standard form Slack form max n j= c jx j st n j= a i jx j b i i =,,m x j 0 j =,,n z = n j= c jx j n j= a i jx j + x n+i = b i i =,,m omit max omit x j 0 introduce slack variables x n+i set z equal to objective, and treat as ordinary constraint LP in standard form max c x + c x +c n x n st a x + a x ++a n x n b a x + a x ++a n x n b a m x + a m x ++a mn x n b m x,x,,x n 0 Written in matrix form max (c,c,,c n ) st x x x n a a a n a a a n a m a m a mn x 0 x 0 x n 0 Short matrix representation max cx st Ax b x 0 x x x n b b b m 4 Standard form and Slack form Any LP can be written as standard form max{cx : Ax b,x 0} slack form max{z = cx : Ax+s = b,x,s 0} min max minz = max z p q p q = p = q p q, p q = p q p+x s = q,x s 0 (slack var) = p q p x s = q,x s 0 (surplus var) free nonneg x j free x j = x j x j,x j,x j 0 Linear Programming (Taha example ) maximize x + x subject to x + x 4 x + x 5 x,x 0 F B A C D Add slack variables maximize x + x subject to x + x + x = 4 x + x + x 4 = 5 x,x,x,x 4 0 The set of constraints form a polyhedral Optimal solution is found at corner point Corner point Name Feasible Objective (0,0,4,5) A yes 0 (0,4,0, ) F no (0, 5, 5, 0) B yes 75 (,0,0,) D yes 4 (5,0, 6,0) E no (,,0,0) C yes 8 E 5 6
5 Linear Programming Basis, basis feasible solution Corner points are found by setting n m variables to 0, and solving remaining m equations with m variables Number of corner points, when m < n (exponential in n) F B A C n m = n! m!(n m)! Corner points are basic solutions C D Non- Basic Basic Corner Feasible Objective basic Solution Point (x,x ) (x,x 4 ) (4,5) A yes 0 (x,x ) (x,x 4 ) (4, ) F no (x,x 4 ) (x,x ) (5,5) B yes 75 (x,x ) (x,x 4 ) (,) D yes 4 (x,x 4 ) (x,x ) (5, 6) E no (x,x 4 ) (x,x ) (,) C yes 8 E Since we have added slack variables, the number of variables n is larger than the number of constraints m maximize cx subject to Ax = b x 0 Choose m linearly independent columns from A The corresponding set B = {i,i,,i m } is called a basis A B columns in A corresponding to basis variables B A N columns in A corresponding to non-basis variables N maximize c B x B + c N x N subject to A B x B + A N x N = b x 0 A Basis feasible solution is obtained by setting x N = 0 A B x B + A N 0 = b x B = A B b x B is well defined: A B is an m m matrix columns must be linearly independent 7 8 Basis, basis feasible solution Example: maximize c B x B + c N x N subject to A B x B + A N x N = b x 0 n = 4 variables, m constraints Assume B = {,4}, N = {,} x x max (c,c,c,c 4 ) x x 4 st is equivalent to max (c,c 4 ) a a 4 a a 4 st a m a a a a 4 a a a a 4 a m a m a m a m4 a m4 ( x ) x 4 ( x ( x +(c,c ) ) + x 4 x x x x 4 ) x a a a a a m a m ( x b b b m ) x b b b m Corner points and basis feasible solutions Theorem A feasible solution x to maximize cx subject to Ax = b x 0 is a corner point if and only if x is a basis feasible solution Trivial algorithm Search through all corner points Basis can be chosen in Cm n = n! m!(n m)! different ways Each time invert A B in time O(m ) 9 0
6 Adjacent basis feasible solutions Simplex algorithm Two basis feasible solutions x and x are adjacent if B and B have m common elements F B A C D maximize x + x subject to x + x + x = 4 x + x + x 4 = 5 x,x,x,x 4 0 E Trivial algorithm: Search through all corner points Basis can be chosen in Cm n = n! m!(n m)! different ways Each time invert A B in time O(m ) Better algorithm: Search through corner points Greedy approach (hopefully not all basic solutions) Consider adjacent solutions (faster to invert A B ) A table can be used to maintain information objective is increased most possible in each step Corner point Name Feasible Objective (0,0,4,5) A yes 0 (0,4,0, ) F no (0, 5, 5, 0) B yes 75 (,0,0,) D yes 4 (5,0, 6,0) E no (,,0,0) C yes 8 Simplex, equation form (Cormen) Iteration 0: z = x + x x = 4 x x x 4 = 5 x x Most promising variable x Keeping x = 0 (nonbasic), x cannot be increased infinitely x 0, x = 4 x 4 x 0 x 4 0, x 4 = 5 x 5 x 0 Gauss elimination x = x + x 4 Iteration : z = 8 x 4 x 4 x = x + x 4 x = + x + x 4 All costs in objective are negative, hence stop implying x 5 When x = 5 we have x 4 = 0 (x 4 leaves basis) Gauss elimination x = 5 x x 4 Iteration : z = 5 + x x 4 x = x + x 4 x = 5 x x 4 Most promising variable x Keeping x 4 = 0 (nonbasic), x cannot be increased infinitely x 0, x = x x 0 x 0, x = 5 x 5 x 0 implying x When x = we have x = 0 (x leaves basis) 4
7 Simplex, in tabular form Taha is using the equations this leads to tabular form Iteration 0: z x x = 0 x + x + x = 4 x 4 + x + x = 5 basic z x x x x 4 solution z x x leaving variable is x Multiply second row by and add to first row Multiply second row by and add to third row Multiply second row by Iteration : basic z x x x x 4 solution 4 z x 0 0 x 0 0 All reduced costs in objective are positive, hence stop Entering variable x maximum value of entering variable min{ 4, 5 } = 5 leaving variable is x 4 Multiply third row by and add to first row Multiply third row by and add to second row Multiply third row by Iteration : basic z x x x x 4 solution z x 0 0 x 0 0 Entering variable x maximum value of entering variable min{, 5 } = Initial solution Simplex moves from basis solution to neighboring basis solution Initial basis solution: If m slack variables, set these to zero or add m variables x having a large negative cost in objective function maximize cx M x subject to Ax+ x = b x, x 0 then x is a basis feasible solution Iterative step Reduced cost used for choosing the next variable to enter basis Termination criteria All reduced costs are positive (TAHA) All reduced costs are negative (Cormen) LP basis solution The solution to A B x B = b is uniquely determined The solution is x B = A B b where A B is the inverse matrix of A B x B = A B is called a basis solution m variables in x B are called basic variables n m remaining variables nonbasic variables If all basic variables are nonnegative, then x B is called basic feasible solution If some of the basic variables are zero, we talk of a degenerate solution If some of the basic variables are negative, the basic solution is infeasible A B x B = b has infinitely many solutions A B x B = b has no solutions Proof of optimality Shown at DATA 7 8
8 LP basis solution, example LP basis solution 4x + x + 5x + 4x 4 + 0x 5 + 6x 6 = 0 x + 5x + 6x + 4x 4 + x 5 + x 6 = 4 Case x B = (x,x ) Basic feasible solution x =,x = 4 (nondegenerate) Case x B = (x,x ) Basic feasible solution x = 0,x = 4 (degenerate) Case x B = (x,x 4 ) Basic infeasible solution x =,x 4 = 7 Case x B = (x,x 5 ) Infinitely many solutions Case x B = (x,x 6 ) No solution An LP-problem may have a) No feasible solutions (in case of conflicting constraints) b) Feasible solutions but no optimal solution (in case of unboundedness such as max x, x ) c) Feasible and one or more optimal solutions In this case the problem also has an optimal basic solution 4x + x = 0 x + 5x = 4 x + 6x = 4 4x + 5x = 0 x + 4x 4 = 4 4x + 4x 4 = 0 5x + 0x 5 = 0 6x + x 5 = 4 x + x 6 = 4 4x + 6x 6 = Bigger example, Add slack variables x,x 4,x 5,x 6 maximize 5x + 4x subject to 6x + 4x 4 x + x 6 x + x x x,x 0 Bigger example, Write up equation form (Cormen style) Iteration 0: z = 5x + 4x x = 4 6x 4x x 4 = 6 x x x 5 = + x x x 6 = x maximize 5x + 4x subject to 6x + 4x + x = 4 x + x + x 4 = 6 x + x + x 5 = x + x 6 = x,x,x,x 4,x 5,x 6 0 Iteration : Iteration : z = 0 + x 5 6 x x = 4 x 6 x x 4 = 4 x + 6 x x 5 = x 6 x x 6 = x z = 4 x x 4 x = 4 x + x 4 x = + 8 x 4 x 4 x 5 = 5 8 x x 4 x 6 = 8 x + 4 x 4
9 Bigger example, CPLEX Iteration 0: basic z x x x x 4 x 5 x 6 solution z x x x x Iteration : basic z x x x x 4 x 5 x 6 solution z x x x x Iteration : basic z x x x x 4 x 5 x 6 solution z x x x x LP-solver simplex dual simplex network simplex interior point methods IP/MIP-solver branch-and-bound cuts Modes of use interactive mode file mode callable library called from AMPL 4 License bach and kand computers rlogin bach- cplex ILOG CPLEX 900, licensed to "university-copenhagen", options: e m b q Interactive use add variables add constraints change bounds File mode several file formats lp is natural form type in data to file read file in CPLEX optimize display solution 5 CPLEX Commands help displays a list of all commands read filenamelp reads a file in natural format write write problem or solution info to a file optimize run optimizer (LP or IP depending on formulation) display problem all show the problem display solution variables - show primal solution display solution dual - show dual solution display sensitivity objective - show objective sensitivity range display sensitivity rhs - show right-hand-side sensitivity range display sensitivity lb - show lower bound sensitivity range display sensitivity ub - show upper bound sensitivity range quit leave CPLEX Commands may be abbreviated eg dis sol var - 6
10 LP file format Using CPLEX everything following a backslash is a comment variables have formx, y, antalskibe minimize or maximize objective function subject to constraints should be in linear form with constant on right side x+ x <= 5 relational operators <, <=, >=, > are interpreted as,,, bounds 0 <= x <=+infty (warning: bounds have no associated dual variables!) integer (warning: means binary, so do not use!) general variables which must be integer variables binary variables which must be 0- variables end 7 Reddy Mikks, assuming decision variables are integers: maximize 5 x + 4 x subject to 6 x + 4 x <= 4 x + x <= 6 - x + x <= x <= bounds x >= 0 x >= 0 general x x end kand- > cplex ILOG CPLEX 900, licensed to "university-copenhagen", options: e m b q Welcome to CPLEX Interactive Optimizer 90 with Simplex, Mixed Integer \& Barrier Optimizers Copyright (c) ILOG CPLEX is a registered trademark of ILOG Type help for a list of available commands Type help followed by a command name for more information on commands CPLEX> read reddymixlp Problem reddymixlp read Read time = 000 sec CPLEX> opt Tried aggregator time MIP Presolve eliminated rows and 0 columns MIP Presolve modified coefficients Reduced MIP has rows, columns, and 6 nonzeros Presolve time = 000 sec MIP emphasis: balance optimality and feasibility Root relaxation solution time = 000 sec 8 Nodes Cuts/ Node Left Objective IInf Best Integer Best Node ItCnt * infeasible Cuts: Mixed integer rounding cuts applied: Integer optimal solution: Objective = e+0 Solution time = 000 sec Iterations = Nodes = 0 CPLEX> dis sol var - Variable Name Solution Value x All other variables in the range - are zero Using CPLEX from AMPL AMPL is a modeling language for mathematical programming AMPL is described in Appendix A of Taha AMPL can use several solvers To use CPLEX, see section A8 in Taha option solver cplex; option cplex options sensitivity ; Solvers available on CD-ROM: CPLEX KNITRO LPSOLVE LOQO MINOS 9 40
Solution Cases: 1. Unique Optimal Solution Reddy Mikks Example Diet Problem
Solution Cases: 1. Unique Optimal Solution 2. Alternative Optimal Solutions 3. Infeasible solution Case 4. Unbounded Solution Case 5. Degenerate Optimal Solution Case 1. Unique Optimal Solution Reddy Mikks
More informationLinear Programming. Linear Programming I. Lecture 1. Linear Programming. Linear Programming
Linear Programming Linear Programming Lecture Linear programming. Optimize a linear function subject to linear inequalities. (P) max " c j x j n j= n s. t. " a ij x j = b i # i # m j= x j 0 # j # n (P)
More informationENM 202 OPERATIONS RESEARCH (I) OR (I) 2 LECTURE NOTES. Solution Cases:
ENM 202 OPERATIONS RESEARCH (I) OR (I) 2 LECTURE NOTES Solution Cases: 1. Unique Optimal Solution Case 2. Alternative Optimal Solution Case 3. Infeasible Solution Case 4. Unbounded Solution Case 5. Degenerate
More informationChap6 Duality Theory and Sensitivity Analysis
Chap6 Duality Theory and Sensitivity Analysis The rationale of duality theory Max 4x 1 + x 2 + 5x 3 + 3x 4 S.T. x 1 x 2 x 3 + 3x 4 1 5x 1 + x 2 + 3x 3 + 8x 4 55 x 1 + 2x 2 + 3x 3 5x 4 3 x 1 ~x 4 0 If we
More informationYinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method
The Simplex Method Yinyu Ye Department of Management Science and Engineering Stanford University Stanford, CA 94305, U.S.A. http://www.stanford.edu/ yyye (LY, Chapters 2.3-2.5, 3.1-3.4) 1 Geometry of Linear
More informationLINEAR PROGRAMMING I. a refreshing example standard form fundamental questions geometry linear algebra simplex algorithm
Linear programming Linear programming. Optimize a linear function subject to linear inequalities. (P) max c j x j n j= n s. t. a ij x j = b i i m j= x j 0 j n (P) max c T x s. t. Ax = b Lecture slides
More informationSummary of the simplex method
MVE165/MMG630, The simplex method; degeneracy; unbounded solutions; infeasibility; starting solutions; duality; interpretation Ann-Brith Strömberg 2012 03 16 Summary of the simplex method Optimality condition:
More informationLecture slides by Kevin Wayne
LINEAR PROGRAMMING I a refreshing example standard form fundamental questions geometry linear algebra simplex algorithm Lecture slides by Kevin Wayne Last updated on 7/25/17 11:09 AM Linear programming
More informationmaxz = 3x 1 +4x 2 2x 1 +x 2 6 2x 1 +3x 2 9 x 1,x 2
ex-5.-5. Foundations of Operations Research Prof. E. Amaldi 5. Branch-and-Bound Given the integer linear program maxz = x +x x +x 6 x +x 9 x,x integer solve it via the Branch-and-Bound method (solving
More informationSimplex Method for LP (II)
Simplex Method for LP (II) Xiaoxi Li Wuhan University Sept. 27, 2017 (week 4) Operations Research (Li, X.) Simplex Method for LP (II) Sept. 27, 2017 (week 4) 1 / 31 Organization of this lecture Contents:
More information3 Development of the Simplex Method Constructing Basic Solution Optimality Conditions The Simplex Method...
Contents Introduction to Linear Programming Problem. 2. General Linear Programming problems.............. 2.2 Formulation of LP problems.................... 8.3 Compact form and Standard form of a general
More informationLecture 5 Simplex Method. September 2, 2009
Simplex Method September 2, 2009 Outline: Lecture 5 Re-cap blind search Simplex method in steps Simplex tableau Operations Research Methods 1 Determining an optimal solution by exhaustive search Lecture
More information1 Review Session. 1.1 Lecture 2
1 Review Session Note: The following lists give an overview of the material that was covered in the lectures and sections. Your TF will go through these lists. If anything is unclear or you have questions
More informationAlgebraic Simplex Active Learning Module 4
Algebraic Simplex Active Learning Module 4 J. René Villalobos and Gary L. Hogg Arizona State University Paul M. Griffin Georgia Institute of Technology Time required for the module: 50 Min. Reading Most
More informationIntroduction. Very efficient solution procedure: simplex method.
LINEAR PROGRAMMING Introduction Development of linear programming was among the most important scientific advances of mid 20th cent. Most common type of applications: allocate limited resources to competing
More informationLINEAR PROGRAMMING. Introduction
LINEAR PROGRAMMING Introduction Development of linear programming was among the most important scientific advances of mid-20th cent. Most common type of applications: allocate limited resources to competing
More informationRelation of Pure Minimum Cost Flow Model to Linear Programming
Appendix A Page 1 Relation of Pure Minimum Cost Flow Model to Linear Programming The Network Model The network pure minimum cost flow model has m nodes. The external flows given by the vector b with m
More informationIntroduction to the Simplex Algorithm Active Learning Module 3
Introduction to the Simplex Algorithm Active Learning Module 3 J. René Villalobos and Gary L. Hogg Arizona State University Paul M. Griffin Georgia Institute of Technology Background Material Almost any
More informationDr. S. Bourazza Math-473 Jazan University Department of Mathematics
Dr. Said Bourazza Department of Mathematics Jazan University 1 P a g e Contents: Chapter 0: Modelization 3 Chapter1: Graphical Methods 7 Chapter2: Simplex method 13 Chapter3: Duality 36 Chapter4: Transportation
More informationSection Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010
Section Notes 9 IP: Cutting Planes Applied Math 121 Week of April 12, 2010 Goals for the week understand what a strong formulations is. be familiar with the cutting planes algorithm and the types of cuts
More informationOptimisation. 3/10/2010 Tibor Illés Optimisation
Optimisation Lectures 3 & 4: Linear Programming Problem Formulation Different forms of problems, elements of the simplex algorithm and sensitivity analysis Lecturer: Tibor Illés tibor.illes@strath.ac.uk
More informationMVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis
MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis Ann-Brith Strömberg 2017 03 29 Lecture 4 Linear and integer optimization with
More information56:270 Final Exam - May
@ @ 56:270 Linear Programming @ @ Final Exam - May 4, 1989 @ @ @ @ @ @ @ @ @ @ @ @ @ @ Select any 7 of the 9 problems below: (1.) ANALYSIS OF MPSX OUTPUT: Please refer to the attached materials on the
More information21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.
Extra Problems for Chapter 3. Linear Programming Methods 20. (Big-M Method) An alternative to the two-phase method of finding an initial basic feasible solution by minimizing the sum of the artificial
More informationLecture 11: Post-Optimal Analysis. September 23, 2009
Lecture : Post-Optimal Analysis September 23, 2009 Today Lecture Dual-Simplex Algorithm Post-Optimal Analysis Chapters 4.4 and 4.5. IE 30/GE 330 Lecture Dual Simplex Method The dual simplex method will
More informationSimplex Algorithm Using Canonical Tableaus
41 Simplex Algorithm Using Canonical Tableaus Consider LP in standard form: Min z = cx + α subject to Ax = b where A m n has rank m and α is a constant In tableau form we record it as below Original Tableau
More informationWeek 3: Simplex Method I
Week 3: Simplex Method I 1 1. Introduction The simplex method computations are particularly tedious and repetitive. It attempts to move from one corner point of the solution space to a better corner point
More informationStandard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta
Chapter 4 Linear Programming: The Simplex Method An Overview of the Simplex Method Standard Form Tableau Form Setting Up the Initial Simplex Tableau Improving the Solution Calculating the Next Tableau
More informationLecture 23 Branch-and-Bound Algorithm. November 3, 2009
Branch-and-Bound Algorithm November 3, 2009 Outline Lecture 23 Modeling aspect: Either-Or requirement Special ILPs: Totally unimodular matrices Branch-and-Bound Algorithm Underlying idea Terminology Formal
More informationWorked Examples for Chapter 5
Worked Examples for Chapter 5 Example for Section 5.2 Construct the primal-dual table and the dual problem for the following linear programming model fitting our standard form. Maximize Z = 5 x 1 + 4 x
More informationSlack 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
Simplex Method Slack Variable Max Z= 3x 1 + 4x 2 + 5X 3 Subject to: X 1 + X 2 + X 3 20 3x 1 + 4x 2 + X 3 15 2X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0 Standard Form Max Z= 3x 1 +4x 2 +5X 3 + 0S 1 + 0S 2
More informationLinear Programming: Simplex
Linear Programming: Simplex Stephen J. Wright 1 2 Computer Sciences Department, University of Wisconsin-Madison. IMA, August 2016 Stephen Wright (UW-Madison) Linear Programming: Simplex IMA, August 2016
More information+ 5x 2. = x x. + x 2. Transform the original system into a system x 2 = x x 1. = x 1
University of California, Davis Department of Agricultural and Resource Economics ARE 5 Optimization with Economic Applications Lecture Notes Quirino Paris The Pivot Method for Solving Systems of Equations...................................
More information"SYMMETRIC" PRIMAL-DUAL PAIR
"SYMMETRIC" PRIMAL-DUAL PAIR PRIMAL Minimize cx DUAL Maximize y T b st Ax b st A T y c T x y Here c 1 n, x n 1, b m 1, A m n, y m 1, WITH THE PRIMAL IN STANDARD FORM... Minimize cx Maximize y T b st Ax
More information56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker
56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker Answer all of Part One and two (of the four) problems of Part Two Problem: 1 2 3 4 5 6 7 8 TOTAL Possible: 16 12 20 10
More informationDuality Theory, Optimality Conditions
5.1 Duality Theory, Optimality Conditions Katta G. Murty, IOE 510, LP, U. Of Michigan, Ann Arbor We only consider single objective LPs here. Concept of duality not defined for multiobjective LPs. Every
More informationThe use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:
Sensitivity analysis The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis: Changing the coefficient of a nonbasic variable
More informationCSCI 1951-G Optimization Methods in Finance Part 01: Linear Programming
CSCI 1951-G Optimization Methods in Finance Part 01: Linear Programming January 26, 2018 1 / 38 Liability/asset cash-flow matching problem Recall the formulation of the problem: max w c 1 + p 1 e 1 = 150
More informationDistributed Real-Time Control Systems. Lecture Distributed Control Linear Programming
Distributed Real-Time Control Systems Lecture 13-14 Distributed Control Linear Programming 1 Linear Programs Optimize a linear function subject to a set of linear (affine) constraints. Many problems can
More informationAn introductory example
CS1 Lecture 9 An introductory example Suppose that a company that produces three products wishes to decide the level of production of each so as to maximize profits. Let x 1 be the amount of Product 1
More informationEND3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur
END3033 Operations Research I Sensitivity Analysis & Duality to accompany Operations Research: Applications and Algorithms Fatih Cavdur Introduction Consider the following problem where x 1 and x 2 corresponds
More informationIntroduction to Mathematical Programming IE406. Lecture 10. Dr. Ted Ralphs
Introduction to Mathematical Programming IE406 Lecture 10 Dr. Ted Ralphs IE406 Lecture 10 1 Reading for This Lecture Bertsimas 4.1-4.3 IE406 Lecture 10 2 Duality Theory: Motivation Consider the following
More informationDr. Maddah ENMG 500 Engineering Management I 10/21/07
Dr. Maddah ENMG 500 Engineering Management I 10/21/07 Computational Procedure of the Simplex Method The optimal solution of a general LP problem is obtained in the following steps: Step 1. Express the
More informationPart 1. The Review of Linear Programming
In the name of God Part 1. The Review of Linear Programming 1.5. Spring 2010 Instructor: Dr. Masoud Yaghini Outline Introduction Formulation of the Dual Problem Primal-Dual Relationship Economic Interpretation
More information56:171 Operations Research Fall 1998
56:171 Operations Research Fall 1998 Quiz Solutions D.L.Bricker Dept of Mechanical & Industrial Engineering University of Iowa 56:171 Operations Research Quiz
More informationSection Notes 8. Integer Programming II. Applied Math 121. Week of April 5, expand your knowledge of big M s and logical constraints.
Section Notes 8 Integer Programming II Applied Math 121 Week of April 5, 2010 Goals for the week understand IP relaxations be able to determine the relative strength of formulations understand the branch
More informationIP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.
IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, 31 14. You wish to solve the IP below with a cutting plane technique. Maximize 4x 1 + 2x 2 + x 3 subject to 14x 1 + 10x 2 + 11x 3 32 10x 1 +
More informationExample. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive
3.4 Anticycling Lexicographic order In this section we discuss two pivoting rules that are guaranteed to avoid cycling. These are the lexicographic rule and Bland s rule. Definition A vector u R n is lexicographically
More informationThe Dual Simplex Algorithm
p. 1 The Dual Simplex Algorithm Primal optimal (dual feasible) and primal feasible (dual optimal) bases The dual simplex tableau, dual optimality and the dual pivot rules Classical applications of linear
More informationBrief summary of linear programming and duality: Consider the linear program in standard form. (P ) min z = cx. x 0. (D) max yb. z = c B x B + c N x N
Brief summary of linear programming and duality: Consider the linear program in standard form (P ) min z = cx s.t. Ax = b x 0 where A R m n, c R 1 n, x R n 1, b R m 1,and its dual (D) max yb s.t. ya c.
More informationIntroduction to optimization
Introduction to optimization Geir Dahl CMA, Dept. of Mathematics and Dept. of Informatics University of Oslo 1 / 24 The plan 1. The basic concepts 2. Some useful tools (linear programming = linear optimization)
More informationSpecial cases of linear programming
Special cases of linear programming Infeasible solution Multiple solution (infinitely many solution) Unbounded solution Degenerated solution Notes on the Simplex tableau 1. The intersection of any basic
More informationTIM 206 Lecture 3: The Simplex Method
TIM 206 Lecture 3: The Simplex Method Kevin Ross. Scribe: Shane Brennan (2006) September 29, 2011 1 Basic Feasible Solutions Have equation Ax = b contain more columns (variables) than rows (constraints),
More informationWritten Exam Linear and Integer Programming (DM545)
Written Exam Linear and Integer Programming (DM545) Department of Mathematics and Computer Science University of Southern Denmark Monday, June 22, 2015, 10:00 14:00, Festsalen, Niels Bohr Allé 1 The exam
More informationmin3x 1 + 4x 2 + 5x 3 2x 1 + 2x 2 + x 3 6 x 1 + 2x 2 + 3x 3 5 x 1, x 2, x 3 0.
ex-.-. Foundations of Operations Research Prof. E. Amaldi. Dual simplex algorithm Given the linear program minx + x + x x + x + x 6 x + x + x x, x, x. solve it via the dual simplex algorithm. Describe
More information1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations
The Simplex Method Most textbooks in mathematical optimization, especially linear programming, deal with the simplex method. In this note we study the simplex method. It requires basically elementary linear
More informationIntroduction to Integer Linear Programming
Lecture 7/12/2006 p. 1/30 Introduction to Integer Linear Programming Leo Liberti, Ruslan Sadykov LIX, École Polytechnique liberti@lix.polytechnique.fr sadykov@lix.polytechnique.fr Lecture 7/12/2006 p.
More informationLinear Programming. H. R. Alvarez A., Ph. D. 1
Linear Programming H. R. Alvarez A., Ph. D. 1 Introduction It is a mathematical technique that allows the selection of the best course of action defining a program of feasible actions. The objective of
More informationLinear Programming Duality
Summer 2011 Optimization I Lecture 8 1 Duality recap Linear Programming Duality We motivated the dual of a linear program by thinking about the best possible lower bound on the optimal value we can achieve
More informationStructured Problems and Algorithms
Integer and quadratic optimization problems Dept. of Engg. and Comp. Sci., Univ. of Cal., Davis Aug. 13, 2010 Table of contents Outline 1 2 3 Benefits of Structured Problems Optimization problems may become
More information9.1 Linear Programs in canonical form
9.1 Linear Programs in canonical form LP in standard form: max (LP) s.t. where b i R, i = 1,..., m z = j c jx j j a ijx j b i i = 1,..., m x j 0 j = 1,..., n But the Simplex method works only on systems
More informationMAT016: Optimization
MAT016: Optimization M.El Ghami e-mail: melghami@ii.uib.no URL: http://www.ii.uib.no/ melghami/ March 29, 2011 Outline for today The Simplex method in matrix notation Managing a production facility The
More informationLinear and Integer Programming - ideas
Linear and Integer Programming - ideas Paweł Zieliński Institute of Mathematics and Computer Science, Wrocław University of Technology, Poland http://www.im.pwr.wroc.pl/ pziel/ Toulouse, France 2012 Literature
More informationDEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions
DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION Part I: Short Questions August 12, 2008 9:00 am - 12 pm General Instructions This examination is
More informationSolving LP and MIP Models with Piecewise Linear Objective Functions
Solving LP and MIP Models with Piecewise Linear Obective Functions Zonghao Gu Gurobi Optimization Inc. Columbus, July 23, 2014 Overview } Introduction } Piecewise linear (PWL) function Convex and convex
More informationMATH2070 Optimisation
MATH2070 Optimisation Linear Programming Semester 2, 2012 Lecturer: I.W. Guo Lecture slides courtesy of J.R. Wishart Review The standard Linear Programming (LP) Problem Graphical method of solving LP problem
More informationMarch 13, Duality 3
15.53 March 13, 27 Duality 3 There are concepts much more difficult to grasp than duality in linear programming. -- Jim Orlin The concept [of nonduality], often described in English as "nondualism," is
More informationΩ R n is called the constraint set or feasible set. x 1
1 Chapter 5 Linear Programming (LP) General constrained optimization problem: minimize subject to f(x) x Ω Ω R n is called the constraint set or feasible set. any point x Ω is called a feasible point We
More informationWeek_4: simplex method II
Week_4: simplex method II 1 1.introduction LPs in which all the constraints are ( ) with nonnegative right-hand sides offer a convenient all-slack starting basic feasible solution. Models involving (=)
More informationCOT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748
COT 6936: Topics in Algorithms! Giri Narasimhan ECS 254A / EC 2443; Phone: x3748 giri@cs.fiu.edu https://moodle.cis.fiu.edu/v2.1/course/view.php?id=612 Gaussian Elimination! Solving a system of simultaneous
More informationOutline. Relaxation. Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING. 1. Lagrangian Relaxation. Lecture 12 Single Machine Models, Column Generation
Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING 1. Lagrangian Relaxation Lecture 12 Single Machine Models, Column Generation 2. Dantzig-Wolfe Decomposition Dantzig-Wolfe Decomposition Delayed Column
More information15-780: LinearProgramming
15-780: LinearProgramming J. Zico Kolter February 1-3, 2016 1 Outline Introduction Some linear algebra review Linear programming Simplex algorithm Duality and dual simplex 2 Outline Introduction Some linear
More informationLinear Programming: The Simplex Method
7206 CH09 GGS /0/05 :5 PM Page 09 9 C H A P T E R Linear Programming: The Simplex Method TEACHING SUGGESTIONS Teaching Suggestion 9.: Meaning of Slack Variables. Slack variables have an important physical
More informationIntroduction to optimization and operations research
Introduction to optimization and operations research David Pisinger, Fall 2002 1 Smoked ham (Chvatal 1.6, adapted from Greene et al. (1957)) A meat packing plant produces 480 hams, 400 pork bellies, and
More informationOPRE 6201 : 3. Special Cases
OPRE 6201 : 3. Special Cases 1 Initialization: The Big-M Formulation Consider the linear program: Minimize 4x 1 +x 2 3x 1 +x 2 = 3 (1) 4x 1 +3x 2 6 (2) x 1 +2x 2 3 (3) x 1, x 2 0. Notice that there are
More informationSummary of the simplex method
MVE165/MMG631,Linear and integer optimization with applications The simplex method: degeneracy; unbounded solutions; starting solutions; infeasibility; alternative optimal solutions Ann-Brith Strömberg
More informationCSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017
CSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017 Linear Function f: R n R is linear if it can be written as f x = a T x for some a R n Example: f x 1, x 2 =
More informationFeasibility Pump Heuristics for Column Generation Approaches
1 / 29 Feasibility Pump Heuristics for Column Generation Approaches Ruslan Sadykov 2 Pierre Pesneau 1,2 Francois Vanderbeck 1,2 1 University Bordeaux I 2 INRIA Bordeaux Sud-Ouest SEA 2012 Bordeaux, France,
More informationLP Duality: outline. Duality theory for Linear Programming. alternatives. optimization I Idea: polyhedra
LP Duality: outline I Motivation and definition of a dual LP I Weak duality I Separating hyperplane theorem and theorems of the alternatives I Strong duality and complementary slackness I Using duality
More informationLecture 2: The Simplex method
Lecture 2 1 Linear and Combinatorial Optimization Lecture 2: The Simplex method Basic solution. The Simplex method (standardform, b>0). 1. Repetition of basic solution. 2. One step in the Simplex algorithm.
More informationPart 1. The Review of Linear Programming
In the name of God Part 1. The Review of Linear Programming 1.2. Spring 2010 Instructor: Dr. Masoud Yaghini Outline Introduction Basic Feasible Solutions Key to the Algebra of the The Simplex Algorithm
More informationUNIT-4 Chapter6 Linear Programming
UNIT-4 Chapter6 Linear Programming Linear Programming 6.1 Introduction Operations Research is a scientific approach to problem solving for executive management. It came into existence in England during
More informationThe Simplex Algorithm and Goal Programming
The Simplex Algorithm and Goal Programming In Chapter 3, we saw how to solve two-variable linear programming problems graphically. Unfortunately, most real-life LPs have many variables, so a method is
More informationLecture 10: Linear programming duality and sensitivity 0-0
Lecture 10: Linear programming duality and sensitivity 0-0 The canonical primal dual pair 1 A R m n, b R m, and c R n maximize z = c T x (1) subject to Ax b, x 0 n and minimize w = b T y (2) subject to
More informationSensitivity Analysis
Dr. Maddah ENMG 500 /9/07 Sensitivity Analysis Changes in the RHS (b) Consider an optimal LP solution. Suppose that the original RHS (b) is changed from b 0 to b new. In the following, we study the affect
More informationLinear Programming and the Simplex method
Linear Programming and the Simplex method Harald Enzinger, Michael Rath Signal Processing and Speech Communication Laboratory Jan 9, 2012 Harald Enzinger, Michael Rath Jan 9, 2012 page 1/37 Outline Introduction
More informationLectures 6, 7 and part of 8
Lectures 6, 7 and part of 8 Uriel Feige April 26, May 3, May 10, 2015 1 Linear programming duality 1.1 The diet problem revisited Recall the diet problem from Lecture 1. There are n foods, m nutrients,
More informationLecture 5. x 1,x 2,x 3 0 (1)
Computational Intractability Revised 2011/6/6 Lecture 5 Professor: David Avis Scribe:Ma Jiangbo, Atsuki Nagao 1 Duality The purpose of this lecture is to introduce duality, which is an important concept
More informationAM 121: Intro to Optimization Models and Methods Fall 2018
AM 121: Intro to Optimization Models and Methods Fall 2018 Lecture 5: The Simplex Method Yiling Chen Harvard SEAS Lesson Plan This lecture: Moving towards an algorithm for solving LPs Tableau. Adjacent
More informationCSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1
CSCI5654 (Linear Programming, Fall 2013) Lecture-8 Lecture 8 Slide# 1 Today s Lecture 1. Recap of dual variables and strong duality. 2. Complementary Slackness Theorem. 3. Interpretation of dual variables.
More informationOptimization (168) Lecture 7-8-9
Optimization (168) Lecture 7-8-9 Jesús De Loera UC Davis, Mathematics Wednesday, April 2, 2012 1 DEGENERACY IN THE SIMPLEX METHOD 2 DEGENERACY z =2x 1 x 2 + 8x 3 x 4 =1 2x 3 x 5 =3 2x 1 + 4x 2 6x 3 x 6
More informationSystems Analysis in Construction
Systems Analysis in Construction CB312 Construction & Building Engineering Department- AASTMT by A h m e d E l h a k e e m & M o h a m e d S a i e d 3. Linear Programming Optimization Simplex Method 135
More informationSpring 2017 CO 250 Course Notes TABLE OF CONTENTS. richardwu.ca. CO 250 Course Notes. Introduction to Optimization
Spring 2017 CO 250 Course Notes TABLE OF CONTENTS richardwu.ca CO 250 Course Notes Introduction to Optimization Kanstantsin Pashkovich Spring 2017 University of Waterloo Last Revision: March 4, 2018 Table
More informationNote 3: LP Duality. If the primal problem (P) in the canonical form is min Z = n (1) then the dual problem (D) in the canonical form is max W = m (2)
Note 3: LP Duality If the primal problem (P) in the canonical form is min Z = n j=1 c j x j s.t. nj=1 a ij x j b i i = 1, 2,..., m (1) x j 0 j = 1, 2,..., n, then the dual problem (D) in the canonical
More informationMVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms
MVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms Ann-Brith Strömberg 2017 04 07 Lecture 8 Linear and integer optimization with applications
More informationCO 250 Final Exam Guide
Spring 2017 CO 250 Final Exam Guide TABLE OF CONTENTS richardwu.ca CO 250 Final Exam Guide Introduction to Optimization Kanstantsin Pashkovich Spring 2017 University of Waterloo Last Revision: March 4,
More informationInteger Programming Chapter 15
Integer Programming Chapter 15 University of Chicago Booth School of Business Kipp Martin November 9, 2016 1 / 101 Outline Key Concepts Problem Formulation Quality Solver Options Epsilon Optimality Preprocessing
More information18 hours nodes, first feasible 3.7% gap Time: 92 days!! LP relaxation at root node: Branch and bound
The MIP Landscape 1 Example 1: LP still can be HARD SGM: Schedule Generation Model Example 157323 1: LP rows, still can 182812 be HARD columns, 6348437 nzs LP relaxation at root node: 18 hours Branch and
More information1 Column Generation and the Cutting Stock Problem
1 Column Generation and the Cutting Stock Problem In the linear programming approach to the traveling salesman problem we used the cutting plane approach. The cutting plane approach is appropriate when
More informationAdvanced Linear Programming: The Exercises
Advanced Linear Programming: The Exercises The answers are sometimes not written out completely. 1.5 a) min c T x + d T y Ax + By b y = x (1) First reformulation, using z smallest number satisfying x z
More information