Lesson 11: Duality in linear programming

Similar documents
Section Notes 4. Duality, Sensitivity, and the Dual Simplex Algorithm. Applied Math / Engineering Sciences 121. Week of October 8, 2018

Linear Programming with Bounds

5. DUAL LP, SOLUTION INTERPRETATION, AND POST-OPTIMALITY

AM 121: Intro to Optimization Models and Methods Fall 2017

Linear Programming Problems

Some Advanced Topics in Linear Programming

EXTENSION. a 1 b 1 c 1 d 1. Rows l a 2 b 2 c 2 d 2. a 3 x b 3 y c 3 z d 3. This system can be written in an abbreviated form as

Linear Programming. Linear programming provides methods for allocating limited resources among competing activities in an optimal way.

Linear Programming. Linear Programming. Linear Programming. Example: Profit Maximization (1/4) Iris Hui-Ru Jiang Fall Linear programming

lpsymphony - Integer Linear Programming in R

x = 12 x = 12 1x = 16

Section Notes 5. Review of Linear Programming. Applied Math / Engineering Sciences 121. Week of October 15, 2017

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

Interpretation of Dual Model for Piecewise Linear. Programming Problem Robert Hlavatý

Math 5490 Network Flows

Notes for Lecture 20

Lesson 17. Geometry and Algebra of Corner Points

Solutions for Operations Research Final Exam

Approximation Algorithms

SENSITIVITY. CS4491 Introduction to Computational Models with Python

LECTURE 13: SOLUTION METHODS FOR CONSTRAINED OPTIMIZATION. 1. Primal approach 2. Penalty and barrier methods 3. Dual approach 4. Primal-dual approach

CS 473: Algorithms. Ruta Mehta. Spring University of Illinois, Urbana-Champaign. Ruta (UIUC) CS473 1 Spring / 36

1 Linear programming relaxation

Integer Programming Theory

Linear Equation Systems Iterative Methods

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

Linear Programming. Course review MS-E2140. v. 1.1

MATLAB Solution of Linear Programming Problems

3-8 Solving Systems of Equations Using Inverse Matrices. Determine whether each pair of matrices are inverses of each other. 13.

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

Modeling the Duality Extraction for Linear Programming Models

Duality. Primal program P: Maximize n. Dual program D: Minimize m. j=1 c jx j subject to n. j=1. i=1 b iy i subject to m. i=1

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014

Linear Programming. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015

Read: H&L chapters 1-6

Solving Systems of Equations Using Matrices With the TI-83 or TI-84

New Directions in Linear Programming

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations,

Solving Algebraic Equations

Optimization of Design. Lecturer:Dung-An Wang Lecture 8

Mathematical and Algorithmic Foundations Linear Programming and Matchings

Math Introduction to Operations Research

3 INTEGER LINEAR PROGRAMMING

Notes for Lecture 18

Graphical Analysis. Figure 1. Copyright c 1997 by Awi Federgruen. All rights reserved.

Generalized Network Flow Programming

Chapter II. Linear Programming

Exercise Set Decide whether each matrix below is an elementary matrix. (a) (b) (c) (d) Answer:

4.1 The original problem and the optimal tableau

College of Computer & Information Science Fall 2007 Northeastern University 14 September 2007

Programming, numerics and optimization

Linear Programming. Revised Simplex Method, Duality of LP problems and Sensitivity analysis

OPTIMIZATION METHODS

Artificial Intelligence

Demo 1: KKT conditions with inequality constraints

Introduction to Mathematical Programming IE496. Final Review. Dr. Ted Ralphs

OPTIMUM DESIGN. Dr. / Ahmed Nagib Elmekawy. Lecture 3

Lecture Notes: Constraint Optimization

Performing Matrix Operations on the TI-83/84

A Computer Technique for Duality Theory in Linear Programs

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer

10/26/ Solving Systems of Linear Equations Using Matrices. Objectives. Matrices

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs

ISM206 Lecture, April 26, 2005 Optimization of Nonlinear Objectives, with Non-Linear Constraints

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

Finite Math Linear Programming 1 May / 7

Linear Programming and its Applications

LECTURE 5: DUAL PROBLEMS AND KERNELS. * Most of the slides in this lecture are from


6.854 Advanced Algorithms. Scribes: Jay Kumar Sundararajan. Duality

INTRODUCTION TO LINEAR AND NONLINEAR PROGRAMMING

Tribhuvan University Institute Of Science and Technology Tribhuvan University Institute of Science and Technology

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

Integer Programming as Projection

David G. Luenberger Yinyu Ye. Linear and Nonlinear. Programming. Fourth Edition. ö Springer

Discuss mainly the standard inequality case: max. Maximize Profit given limited resources. each constraint associated to a resource

I. This material refers to mathematical methods designed for facilitating calculations in matrix

Kernel Methods & Support Vector Machines

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

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

Obtaining a Feasible Geometric Programming Primal Solution, Given a Near-Optimal Dual Solution

Graphing Linear Inequalities in Two Variables.

Linear programming II João Carlos Lourenço

How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya

VARIANTS OF THE SIMPLEX METHOD

Chapter 15 Introduction to Linear Programming

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras.

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm

Design and Analysis of Algorithms (V)

1.5 Part - 2 Inverse Relations and Inverse Functions

11 Linear Programming

NCSS Statistical Software

MATH 19520/51 Class 10

Submodularity Reading Group. Matroid Polytopes, Polymatroid. M. Pawan Kumar

4 Integer Linear Programming (ILP)

Linear programming and duality theory

Computational Methods CMSC/AMSC/MAPL 460. Vectors, Matrices, Linear Systems, LU Decomposition, Ramani Duraiswami, Dept. of Computer Science

Transcription:

Unit 1 Lesson 11: Duality in linear programming Learning objectives: Introduction to dual programming. Formulation of Dual Problem. Introduction For every LP formulation there exists another unique linear programming formulation called the 'Dual' (the original formulation is called the 'Primal'). The - Dual formulation can be derived from the same data from which the primal was formulated. The Dual formulated can be solved in the same manner in which the Primal is solved since the Dual is also a LP formulation. The Dual can be considered as the 'inverse' of the Primal in every respect. The column coefficients in the Primal constrains become the row co-efficients in the Dual constraints. The coefficients in the Primal objective function become the right hand side constraints in the Dual constraints. The column of constants on the right hand side of the Primal constraints becomes the row of coefficients of the dual objective function. The 'direction of the inequalities are reversed. If the primal objective function is a 'Maximization' function then the dual objective function is a 'Minimization' function and vice-versa. The concept of duality is very much in useful to obtain additional information about the variation in the optimal solution when certain changes are effected in the constraint co-efficient, resourse availabilities and objective function coefficients. This is termed as post optimality or sensitivity analysis. Dual Problem Construction: - If the primal is a maximization problem, then its dual is a minimization problem (and vise versa). - Use the variable type of one problem to find the constraint type of the other problem. - Use the constraint type of one problem to find the variable type of the other problem. - The RHS elements of one problem become the objective function coefficients of the other problem (and vice versa).

- The matrix coefficients of the constraints of one problem is the transpose of the matrix coefficients of the constraints for the other problem. That is, rows of the matrix becomes columns and vise versa. Dual Formation Following are the steps adopted to convert primal problem into its dual. Step 1. For each constraint in primal problem there is an associated variable in dual problem. Step 2. The elements of right hand side of the constraints will be taken as the co-efficient of the objective function in the dual problem. Step 3. If the primal problem is maximization, then its dual problem will be minimization and vice versa. Step 4. The inequalities of constraints should be interchanged from >= to <= and vice versa and the variables in both the problems and nonnegative. Step 5. The row of primal problem are changed to columns in the dual problem. In other words the matrix A of the primal problem will be changed ti its transpose (A) for the dual problem. Step 6. The co-efficient of the objective function will be taken the right hand side of the constraints of the dual problem. Problems and Solutions An example will clarify the concept basis. Consider the following 'Primal' LP formulation Example 3.1, MaXimize 12x1 + 10x 2 subject to 2X1 + 3X2 <= 18 2X1 + X2 <= 14 X1, X21 >= 0 Solution 3.1, The 'Dual' formulation for this problem would be Minimize 18Y1 + 14Y2 subject to 2Y1 + 2Y2 >= 12 3Y1 + Y2 >= 10 Y1 >= 0, Y2 >= 0 Note the following: 1. The column coefficient in the Primal constraint namely (2,2) and (3,1) have become the row co-efficient in the Dual constraints.

2. The co-efficient of the Primal objective function namely, 12 and 10 have become the constants in the right hand side of the Dual constraints. 3. The constants of the Primal constraints, namely 18 and 14, have become the co-efficeint in the Dual obejctive function. 4. The direction of the inequalities have been reserved. The Primal constraints have the in equalities of::; while the Dual constraints have the inequalities of ~. 5. While the Primal is a 'Maximization' problem the Dual is a 'Minimization' problem Why construct the Dual formulation? This is for a number of reasons. The solution to the dual problem provides all essential information about the solution to the Primal problem. For an LP problem, the solution can be determined either by solving the original problem or the dual problem. Sometimes it may be easier to solve the Dual problem rather than the Primal problem. (For instance, when the primal involves few variables but many constraints.) Example 3.2, Obtain the dual problem of the following primal formulation. Maximize Z = 2X1 + 5X2 + 6X3 Subject to 5X1 + 6X2 -X3 <= 3-2x1 + X2 + 4X3 <= 4 X1-5X2 + 3X3 <= 1-3X1-3X2 + 7X3 <= 6 X1, X2, X3 >= 0 Solution 3.2, Step 1 : Write the objective function of the Dual. As there are four constraints in the primal, the objective function of the dual will have 4 variables. Minimize r* = 3W1 + 4W2 + W3 + 6W4 Step 2 : Write the constraints of the dual. As all the constraints in the primal are '<', the constraints in the dual will be '>'. The column COM+ efficients of the primal become the row co-efficients of the dual. Constriants. 5W1-2W2 + W3-3W4 >= 2 6W1 + W2-5W3 -W4 >= 5 -W1 + 4W2 + 3W3 + 7W4 >= 6 Step 3 : Therefore the dual of the Primal is : Minimize Z = 3W1 + 4W2 + W3 + 6W4

Subject to : 5W1-2W2 + W3-3W4 >= 2 6W1+ W2-5W3-3W4 >= 5 - W1 + 4W2 + 3W3 + 7W4 >= 6 W1, W2, W3, W4 >= 0 Example 3.3, Obtain the dual of the- following linear programming problem. Minimize Z = 5X1-6X2 + 4X3 Subject to the constriants : 3X1 + 4X2 + 6X3 >= 9 X1 + 3X2 + 2X3 >= 5 7X1-2X2 - X3 >= 10 X1-2X2 + 4X3 >= 4 2X1 + 5X2-3X3 >= 3 X1, X2, X3 >= 0 Solution 3.3, In this problem one of the primal constraints (namely 7X1-2X2 - X3 <=10) is a "<= ", constraints while all the other are ">= I constraints. The dual cannot be worked out unless all the constraints are in the same direction. To convert this into ">= constraint, multiply both the sides of the equation by "-" sign. After multiplying the constraint by "-". sign, it will become 7x1 + 2x2 + x3 >= -10. Now all the constraints are in the same direction and the dual can be worked out. The dual formulation is : Maximize Subject to : Z = 9W1 + 5W2-10W3 + 4W4 + 3W5 3W1 + W2-7W3 + W4 + 2W5 <= 5 4W1 + 3W2 + 2W3-2W4 + 5W5 <= -6 6W1 + 2W2 + W3 + 4W4 + -3W5 <= 4 W1, W2, W3, W4, W5 >= 0