Econ 172A - Slides from Lecture 9

Similar documents
Econ 172A - Slides from Lecture 8

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

Econ 172A - Slides from Lecture 2

AM 121: Intro to Optimization Models and Methods Fall 2017

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

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

Chapter 7. Linear Programming Models: Graphical and Computer Methods

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

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

Lesson 08 Linear Programming

Chapter 13-1 Notes Page 1

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

Homework 2: Multi-unit combinatorial auctions (due Nov. 7 before class)

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

INEN 420 Final Review

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

Solving linear programming

The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014

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

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

Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood

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

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

Resource Allocation (p. 254)

Read: H&L chapters 1-6

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

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

Approximation Algorithms

Math Introduction to Operations Research

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

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

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

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

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

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

Recap, and outline of Lecture 18

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

These definitions are only useful within the graphical solution of LP models. Thus, a more general definition is required.

Problem Set 2 Geometry, Algebra, Reality

1. Lecture notes on bipartite matching February 4th,

II. Linear Programming

Department of Mathematics Oleg Burdakov of 30 October Consider the following linear programming problem (LP):

M i c r o s o f t E x c e l A d v a n c e d. Microsoft Excel 2010 Advanced

Chapter 2 - An Introduction to Linear Programming

Design and Analysis of Algorithms (V)

Note that ALL of these points are Intercepts(along an axis), something you should see often in later work.

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

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

Some Advanced Topics in Linear Programming

Linear Programming with Bounds

Solutions for Operations Research Final Exam

ME 391Q Network Flow Programming

ECE 307- Techniques for Engineering Decisions

Chapter 2 An Introduction to Linear Programming

Lecture notes on Transportation and Assignment Problem (BBE (H) QTM paper of Delhi University)

Integer Programming. Xi Chen. Department of Management Science and Engineering International Business School Beijing Foreign Studies University

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta.

An introduction to pplex and the Simplex Method

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

LINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.)

3. Decision variables are represented in both the objective function and the constraints while formulating a linear program.

TMA946/MAN280 APPLIED OPTIMIZATION. Exam instructions

Artificial Intelligence

Modeling the Duality Extraction for Linear Programming Models

Linear Programming Terminology

Chapter 15 Introduction to Linear Programming

1. Lecture notes on bipartite matching

CSE 120. Computer Science Principles

Chapter II. Linear Programming

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

LECTURES 3 and 4: Flows and Matchings

4.1 The original problem and the optimal tableau

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

Linear Programming. Meaning of Linear Programming. Basic Terminology

Chapter 2--An Introduction to Linear Programming

Tuesday, April 10. The Network Simplex Method for Solving the Minimum Cost Flow Problem

Mid-term Exam of Operations Research

SEN301 OPERATIONS RESEARCH I PREVIUOS EXAM QUESTIONS

1 GIAPETTO S WOODCARVING PROBLEM

Linear Programming Problems

Farming Example. Lecture 22. Solving a Linear Program. withthe Simplex Algorithm and with Excel s Solver

Optimization in One Variable Using Solver

Linear Programming: Model Formulation and Graphical Solution

1 Linear programming relaxation

DM515 Spring 2011 Weekly Note 7

1. Fill in the entries in the truth table below to specify the logic function described by the expression, AB AC A B C Z

Linear Programming Motivation: The Diet Problem

Math 1526: Excel Lab 5 Summer 2004

Linear Programming: Model Formulation and Graphical Solution

Notes for Lecture 20

4 Integer Linear Programming (ILP)

CS61B Lecture #14: Integers

Linear Programming. Larry Blume. Cornell University & The Santa Fe Institute & IHS

February 10, 2005

LP Graphic Solution & Solver for LP

Approximation Algorithms

CS 372: Computational Geometry Lecture 10 Linear Programming in Fixed Dimension

CSCI 1100L: Topics in Computing Lab Lab 07: Microsoft Access (Databases) Part I: Movie review database.


Transcription:

1 Econ 172A - Slides from Lecture 9 Joel Sobel October 25, 2012

2 Announcements Important: Midterm seating assignments. Posted. Corrected Answers to Quiz 1 posted. Midterm on November 1, 2012. Problems for Midterm: 1. 2004: Midterm #1: 2, 3; Midterm #2. Problem Set 1, Problem Set 2-1,2. Final: 2, 3, 5. 2. 2007: Midterm. Problem Sets 1 and 2. 3. 2008: Midterm. Problem Sets 1 and 2. Final: 5, 7 a, b. 4. 2010: Midterm. Quizzes 1, 2. Final 1 a,b; 4

3 Material for Midterm Problem Formulation Graphing Duality (all topics) Interpreting Excel Spreadsheets I can ask you to fill in the blanks in a sensitivity table. This means: material through today s lecture (but Tuesday s lecture practice useful skills for the exam).

4 Reduced Cost Reduced cost of a variable: smallest change in the objective function coefficient needed to arrive at a solution in which the variable takes on a positive value when you solve the problem. Meaning?? Algebraic Definition (Non-basic): The reduced cost of a non-basic variable is the negative of the allowable increase (that is, if you change the coefficient of x 1 by 7, then you arrive at a problem in which x 1 takes on a positive value in the solution). Economic Interpretation: The allowable increase in the coefficient is 7. The reduced cost of a basic variable is always zero. Economic Interpretation: You need not change the objective function at all to make the variable positive.

5 More Reduced Cost You can figure out reduced costs from the other information in the table: If the final value is positive, then the reduced cost is zero. Warning (for experts, not exam material): The previous statement fails in degenerate cases. For details, see me. If the final value of a variable is zero, then the reduced cost is negative one times the allowable increase. The reduced cost of a variable is also the amount of slack in the dual constraint associated with the variable. With this interpretation, complementary slackness implies that if a variable that takes on a positive value in the solution, then its reduced cost is zero.

6 Sensitivity Information on Constraints Second sensitivity table. The cell column identifies the location of the left-hand side of a constraint. The name column gives its name (if any). The final value is the value of the left-hand side when you plug in the final values for the variables. The shadow price is the dual variable associated with the constraint. The constraint R.H. side is the right hand side of the constraint. The allowable increase tells you by how much you can increase the right-hand side of the constraint without changing the basis. The allowable decrease tells you by how much you can decrease the right-hand side of the constraint without changing the basis.

7 Complementary Slackness Again Complementary Slackness guarantees a relationship between the columns in the constraint table. The difference between the Constraint Right-Hand Side column and the Final Value column is the slack. For example, the slack for the three constraints is 0 (= 12 12), 37 (= 7 ( 30)), and 0 (= 10 10), respectively. Complementary Slackness says that if there is slack in the constraint then the associated dual variable is zero. Hence CS tells us that the second dual variable must be zero.

8 You can figure out information on allowable changes from other information in the table. The allowable increase and decrease of non-binding variables can be computed knowing final value and right-hand side constant. If a constraint is not binding, then adding more of the resource is not going to change your solution. Hence the allowable increase of a resource is infinite for a non-binding constraint. Similarly: the allowable increase of a resource is infinite for a constraint with slack. So in example allowable increase of the second constraint is infinite.

9 Also: The allowable decrease of a non-binding constraint is equal to the slack in the constraint. Hence the allowable decrease in the second constraint is 37. If you decrease the right-hand side of the second constraint from its original value (7) to anything greater than 30 you do not change the optimal basis. The only part of the solution that changes is that the value of the slack variable for this constraint. If you solve an LP and find that a constraint is not binding, then you can remove all of the unused (slack) portion of the resource associated with this constraint and not change the solution to the problem.

10 Allowable Increase and Decrease First constraint. If the right-hand side of the first constraint is between 10 (original value 12 minus allowable decrease 2) and infinity, then the basis of the problem does not change. Solution usually does change. Saying that the basis does not change means that the variables that were zero in the original solution continue to be zero in the new problem (with the right-hand side of the constraint changed). When the amount of available resource changes, necessarily the values of the other variables change. In diet problem, getting requiring more nutrient of something that you had supplied exactly before leads you to buy more food. In production problem, getting more of a scarce ingredient allows you to produce more. Changes within the allowable range for a binding constraint s RHS doesn t change the positive variables in the solution, but

11 Third Constraint The values for the allowable increase and allowable decrease say that the basis that is optimal for the original problem (when the right-hand side of the third constraint is equal to 10) remains obtain provided that the right-hand side constant in this constraint is between -2.3333 and 12. Suppose that your LP involves four production processes and uses three basic ingredients. Call the ingredients land, labor, and capital. The outputs vary use different combinations of the ingredients. Maybe they are growing fruit (using lots of land and labor), cleaning bathrooms (using lots of labor), making cars (using lots of labor and and a bit of capital), and making computers (using lots of capital). For the initial specification of available resources, you find that your want to grow fruit and make cars.

12 If you get an increase in the amount of capital, you may wish to shift into building computers instead of cars. If you experience a decrease in the amount of capital, you may wish to shift away from building cars and into cleaning bathrooms instead.

13 Duality The Adjustable Cells table and the Constraints table provide the same information. Dual variables correspond to primal constraints. Primal variables correspond to dual constraints. The Adjustable Cells table tells you how sensitive primal variables and dual constraints are to changes in the primal objective function. The Constraints table tells you how sensitive dual variables and primal constraints are to changes in the dual objective function (right-hand side constants in the primal).

14 Example Simple formulation exercise. A furniture company that makes tables and chairs. A table requires 40 board feet of wood. A chair requires 30 board feet of wood. Wood costs $1 per board foot and 40,000 board feet of wood are available. It takes 2 hours of labor to make an unfinished table or an unfinished chair. 3 more hours of labor will turn an unfinished table into a finished table. 2 more hours of labor will turn an unfinished chair into a finished chair. There are 6000 hours of labor available. No need to pay for this labor.

Econ 172A Sobel 15 Prices The prices of output are given in the table below: Product Price Unfinished Table $70 Finished Table $140 Unfinished Chair $60 Finished Chair $110

16 Formulation Objective: Describe the production plans that the firm can use to maximize its profits. Variables: Number of finished and unfinished tables and chairs. Let T F and T U be the number of finished and unfinished tables. Let C F and C U be the number of finished and unfinished chairs. Revenue:. 70T U + 140T F + 60C U + 110C F, Cost is 40T U + 40T F + 30C U + 30C F (because lumber costs $1 per board foot). Profit (Revenue - Cost): 30T U + 100T F + 30C U + 80C F.

17 The constraints are: 1. 40T U + 40T F + 30C U + 30C F 40000. 2. 2T U + 5T F + 2C U + 4C F 6000. The first constraint says that the amount of lumber used is no more than what is available. The second constraint states that the amount of labor used is no more than what is available.

18 Solution Excel finds the answer to the problem to be to construct only finished chairs (1333.333). It is crazy to produce 1 3 chair. This means that the LP formulation is not literally correct. Now: We pretend that fractional chairs are ok. Later: We will introduce methods to deal with the constraint that variables should be integers. The profit is $106,666.67.