IE 400 Principles of Engineering Management. Graphical Solution of 2-variable LP Problems

Similar documents
Spring 2018 IE 102. Operations Research and Mathematical Programming Part 2

Chapter 3 Introduction to Linear Programming PART 1. Assoc. Prof. Dr. Arslan M. Örnek

Operations Research Graphical Solution. Dr. Özgür Kabak

MS-E2140. Lecture 1. (course book chapters )

MS-E2140. Lecture 1. (course book chapters )

Optimization. Broadly two types: Unconstrained and Constrained optimizations We deal with constrained optimization. General form:

F O R SOCI AL WORK RESE ARCH

probability of k samples out of J fall in R.

Solution Cases: 1. Unique Optimal Solution Reddy Mikks Example Diet Problem

LINEAR PROGRAMMING: A GEOMETRIC APPROACH. Copyright Cengage Learning. All rights reserved.

Chapter 2: Linear Programming Basics. (Bertsimas & Tsitsiklis, Chapter 1)

Name: Section Registered In:

Solutions to Review Questions, Exam 1

Graphical and Computer Methods

ENGI 5708 Design of Civil Engineering Systems

Introduction. Formulating LP Problems LEARNING OBJECTIVES. Requirements of a Linear Programming Problem. LP Properties and Assumptions

An Introduction to Linear Programming

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

5.3 Linear Programming in Two Dimensions: A Geometric Approach

2. Linear Programming Problem

Study Unit 3 : Linear algebra

Distributed Real-Time Control Systems. Lecture Distributed Control Linear Programming

MATH 445/545 Test 1 Spring 2016

Review Questions, Final Exam

The Graphical Method & Algebraic Technique for Solving LP s. Métodos Cuantitativos M. En C. Eduardo Bustos Farías 1

Linear Programming: Model Formulation and Graphical Solution

Part 1. The Review of Linear Programming Introduction

Math Week in Review #3 - Exam 1 Review

Chapter 2. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall 2-1

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

IE 5531: Engineering Optimization I

LP Definition and Introduction to Graphical Solution Active Learning Module 2

II. Analysis of Linear Programming Solutions

56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker

The Simplex Algorithm and Goal Programming

ENM 202 OPERATIONS RESEARCH (I) OR (I) 2 LECTURE NOTES. Solution Cases:

3. Find the slope of the tangent line to the curve given by 3x y e x+y = 1 + ln x at (1, 1).

Sensitivity Analysis and Duality in LP

MATH140 Exam 2 - Sample Test 1 Detailed Solutions

1 Review Session. 1.1 Lecture 2

IE 5531: Engineering Optimization I

Lecture 6 Simplex method for linear programming

CONVEX OPTIMIZATION OVER POSITIVE POLYNOMIALS AND FILTER DESIGN. Y. Genin, Y. Hachez, Yu. Nesterov, P. Van Dooren


Review Questions, Final Exam

C&O 355 Mathematical Programming Fall 2010 Lecture 2. N. Harvey

CO 250 Final Exam Guide

"SYMMETRIC" PRIMAL-DUAL PAIR

Discussion 03 Solutions

Thursday, May 24, Linear Programming

Linear programming I João Carlos Lourenço

Linear programming Dr. Arturo S. Leon, BSU (Spring 2010)

SECTION 3.2: Graphing Linear Inequalities

Section 3.3: Linear programming: A geometric approach

LINEAR PROGRAMMING. Relation to the Text (cont.) Relation to Material in Text. Relation to the Text. Relation to the Text (cont.

Graph the linear inequality. 1) x + 2y 6

Part 1. The Review of Linear Programming

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1

Optimization Methods in Management Science

Understanding the Simplex algorithm. Standard Optimization Problems.

Theory of Linear Programming

Introduction to sensitivity analysis

The Simplex Method for Solving a Linear Program Prof. Stephen Graves

The Simplex Algorithm

Linear Programming II NOT EXAMINED

Chapter 4 The Simplex Algorithm Part I

Going from graphic solutions to algebraic

Summary of the simplex method

MATH2070 Optimisation

Linear programs, convex polyhedra, extreme points

Spring 2017 CO 250 Course Notes TABLE OF CONTENTS. richardwu.ca. CO 250 Course Notes. Introduction to Optimization

Summary of the simplex method

MSA 640 Homework #2 Due September 17, points total / 20 points per question Show all work leading to your answers

Generality of Languages

Linear Algebra Review: Linear Independence. IE418 Integer Programming. Linear Algebra Review: Subspaces. Linear Algebra Review: Affine Independence

Chapter 1 - Preference and choice

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

42 Average risk. Profit = (8 5)x 1 é ù. + (14 10)x 3

Dr. Maddah ENMG 500 Engineering Management I 10/21/07

Numerical Optimization

B œ c " " ã B œ c 8 8. such that substituting these values for the B 3 's will make all the equations true

Framework for functional tree simulation applied to 'golden delicious' apple trees

CHAPTER 3 Describing Relationships

Advanced Microeconomic Theory. Chapter 6: Partial and General Equilibrium

Computational Integer Programming. Lecture 2: Modeling and Formulation. Dr. Ted Ralphs

III. Linear Programming

CHAPTER 3: INTEGER PROGRAMMING

Computational Geometry Lecture Linear Programming

Quadratic function and equations Quadratic function/equations, supply, demand, market equilibrium

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

MAC 2233, Survey of Calculus, Exam 3 Review This exam covers lectures 21 29,

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

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

Linear Programming. Dr. Xiaosong DING

Vectors. Teaching Learning Point. Ç, where OP. l m n

ETIKA V PROFESII PSYCHOLÓGA

Linear Programming and Halfplane Intersection

Answer the following questions: Q1: Choose the correct answer ( 20 Points ):

Nonlinear Programming (Hillier, Lieberman Chapter 13) CHEM-E7155 Production Planning and Control

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Introduction to Optimization (Spring 2004) Midterm Solutions

Transcription:

IE 400 Principles of Engineering Management Graphical Solution of 2-variable LP Problems

Graphical Solution of 2-variable LP Problems Ex 1.a) max x 1 + 3 x 2 s.t. x 1 + x 2 6 - x 1 + 2x 2 8 x 1, x 2 0,

Graphical Solution of 2-variable LP Problems max x 1 + 3 x 2 s.t. x 1 + x 2 6 - x 1 + 2x 2 8 x 1, x 2 0, General Form: max cx s.t. Ax b x 0 where, c = [ 1 3] æ x x = ç è x ö ø é 1 1ù é6ù A = ê ú b = ê ú ë-1 2û ë8û 1 2

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) Feasible Region (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

x 2 (0,6) (0,4) (4/3,14/3) -x 1 + 2x 2 = 8 Recall the objective function: max x 1 + 3x 2 (-8,0) (0,0) (6,0) x 1 x 1 + 3x 2 = 6 x 1 + 3x 2 = 3 x 1 + x 2 = 6 x 1 + 3x 2 = 0

Graphical Solution of 2-variable LP Problems A line on which all points have the same z-value (z = x 1 + 3x 2 ) is called : Isoprofit line for maximization problems, Isocost line for minimization problems.

Graphical Solution of 2-variable LP Problems Consider the coefficients of x 1 and x 2 in the objective function and let c=[1 3].

x 2 (0,6) (0,4) (4/3,14/3) -x 1 + 2x 2 = 8 objective function: max x 1 + 3x 2 c=[1 3] (-8,0) (0,0) (6,0) x 1 x 1 + 3x 2 = 6 x 1 + 3x 2 = 3 x 1 + x 2 = 6 x 1 + 3x 2 = 0

Graphical Solution of 2-variable LP Problems Note that as we move the isoprofit lines in the direction of c, the total profit increases!

Graphical Solution of 2-variable LP Problems For a maximization problem, the vector c, given by the coefficients of x 1 and x 2 in the objective function, is called the improving direction. On the other hand, -c is the improving direction for minimization problems!

Graphical Solution of 2-variable LP Problems To solve an LP problem in two variables, we should try to push isoprofit (isocost) lines in the improving direction as much as possible while still staying in the feasible region.

x 2 (0,6) (0,4) (0,3) (0,2) (1,0) (4/3,14/3) c=[1 3] -x 1 + 2x 2 = 8 Objective : max x 1 + 3x 2 (-8,0) (0,0) (3,0) (6,0) (9,0) x 1 x 1 + 3x 2 = 9 x 1 + 3x 2 = 6 x 1 + 3x 2 = 3 x 1 + x 2 = 6 x 1 + 3x 2 = 0

x 2 (0,6) (0,4) (0,3) (4/3,14/3) c=[1 3] c=[1 3] -x 1 + 2x 2 = 8 Objective : max x 1 + 3x 2 (-8,0) (0,0) (6,0) (9,0) x 1 x 1 + 3x 2 = 9 x 1 + x 2 = 6

x 2 (0,6) (0,4) (0,3) (4/3,14/3) c=[1 3] c=[1 3] -x 1 + 2x 2 = 8 Objective : max x 1 + 3x 2 (-8,0) (0,0) (6,0) (9,0) (12,0) x 1 x 1 + x 3x 1 + 2 3x = 12 2 = 9 x 1 + x 2 = 6

x 2 (0,6) (0,4) c=[1,3] (4/3,14/3) -x 1 + 2x 2 = 8 Objective : max x 1 + 3x 2 x 1 +3x 2 = 46/3 (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) Objective : max x 1 + 3x 2 c=[1,3] (-8,0) (0,0) (6,0) Can we improve (6,0)? x 1 x 1 + x 2 = 6

x 2 (0,6) Can we improve (0,4)? (0,4) (4/3,14/3) c=[1 3] -x 1 + 2x 2 = 8 Objective : max x 1 + 3x 2 (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) Objective : max x 1 + 3x 2 (4/3,14/3) c=[1 3]Can we improve (4/3,16/3)? No! We stop here (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

x 2 (0,6) (0,4) c=[1 3] (4/3,14/3) -x 1 + 2x 2 = 8 Objective : max x 1 + 3x 2 (4/3,14/3) is the OPTIMAL solution (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

Graphical Solution of 2-variable LP Problems Point (4/3, 14/3) is the last point in the feasible region when we move in the improving direction. So, if we move in the same direction any further, there is no feasible point. Therefore, point z*= (4/3, 14/3) is the maximizing point. The optimal value of the LP problem is 46/3.

Graphical Solution of 2-variable LP Problems Let us modify the objective function while keeping the constraints unchanged: Ex 1.a) max x 1 + 3 x 2 s.t. x 1 + x 2 6 - x 1 + 2x 2 8 x 1, x 2 0, Ex 1.b) max x 1-2 x 2 s.t. x 1 + x 2 6 - x 1 + 2x 2 8 x 1, x 2 0,

Graphical Solution of 2-variable LP Problems Does feasible region change?

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) Feasible Region (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

Graphical Solution of 2-variable LP Problems What about the improving direction?

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) x 1-2x 2 = 0 Feasible Region (-8,0) (0,0) c=[1-2] (6,0) x 1 x 1 + x 2 = 6

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) Feasible Region (6,0) is the optimal solution! (-8,0) (0,0) c=[1-2] (6,0) x 1 x 1 + x 2 = 6

Graphical Solution of 2-variable LP Problems Now let us consider: Ex 1.c) max -x 1 + x 2 s.t. x 1 + x 2 6 - x 1 + 2x 2 8 x 1, x 2 0,

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) c=[-1 1] (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

Graphical Solution of 2-variable LP Problems Now, let us consider: Ex 1.c) max -x 1 + x 2 s.t. x 1 + x 2 6 Question: Is it possible for (5,1) be the optimal? - x 1 + 2x 2 8 x 1, x 2 0,

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) -x 1 + x 2 = -4 (-8,0) c=[-1 1] (0,0) improving direction! (5,1) (6,0) x 1 x 1 + x 2 = 6

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) -x 1 + x 2 = 0 -x 1 + x 2 = -4 (3,3) (-8,0) c=[-1 1] (0,0) improving direction! (5,1) (6,0) x 1 x 1 + x 2 = 6

x 2 -x 1 + x 2 = 4 -x 1 + x 2 = 10/3 -x 1 + 2x 2 = 8 Point (0,4) is the optimal solution! (0,6) (0,4) (4/3,14/3) -x 1 + x 2 = 0 -x 1 + x 2 = -4 (3,3) c=[-1 1] (5,1) (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

Graphical Solution of 2-variable LP Problems Now, let us consider: Ex 1.d) max -x 1 - x 2 s.t. x 1 + x 2 6 Question: Is it possible for (0,4) be the optimal? - x 1 + 2x 2 8 x 1, x 2 0,

x 2 -x 1 - x 2 = 0 -x 1 - x 2 = -4 (0,6) (0,4) (4/3,14/3) -x 1 + 2x 2 = 8 (-8,0) Point (0,0) is the optimal solution! (0,0) c=[-1-1] (6,0) x 1 x 1 + x 2 = 6

Graphical Solution of 2-variable LP Problems Have you noticed anything about the optimal points?

Convex Set: A set of points S is a convex set if for any two points xєs and yєs, their convex combination λx+(1-λ)y is also in S for all λє[0,1]. In other words, a set is a convex set if the line segment joining any pair of points in S is wholly contained in S.

Are those Convex Sets?

Are those Convex Sets? Feasible set of an LP x={xє R n : Ax b, x 0} is a convex set.

Extreme Points (Corner Points): A point P of a convex set S is an extreme point (corner point) if it cannot be represented as a strict convex combination of two distinct points of S. strict convex combination: x is a strict convex combination of x 1 and x 2 if x=λx 1 +(1-λ)x 2 for some λє(0,1).

Extreme Points (Corner Points): In other words, for any convex set S, a point P in S is an extreme point (corner point) if each line segment that lies completely in S and contains the point P, has P as an endpoint of the line segment.

Graphical Solution of 2-variable LP Problems Ex 2) A company wishes to increase the demand for its product through advertising. Each minute of radio ad costs $1 and each minute of TV ad costs $2. Each minute of radio ad increases the daily demand by 2 units and each minute of TV ad by 7 units. The company would wish to place at least 9 minutes of daily ad in total. It wishes to increase daily demand by at least 28 units. How can the company meet its advertising requirements at minimum total cost?

Graphical Solution of 2-variable LP Problems x 1 : # of minutes of radio ads purchased x 2 : # of minutes of TV ads purchased min x 1 + 2 x 2 s.t. 2x 1 + 7x 2 28 x 1 + x 2 9 x 1, x 2 0,

x 2 (0,9) (0,4) (0,0) (9,0) (14,0) x 1 2x 1 +7x 2 =28 x 1 + x 2 = 9

x 2 Objective : min x 1 + 2x 2 (0,9) c=[1 2] total cost x 1 + 2x 2 INCREASES in this direction! -c=[-1-2] -c=[-1-2] is the improving direction (0,4) (7,2) x 1 +2x 2 =24 (0,0) (9,0) (14,0) x 1 2x 1 +7x 2 =28 x 1 + x 2 = 9

x 2 Objective : min x 1 + 2x 2 (0,9) (0,4) (0,0) -c=[-1-2] (7,2) x x 1 +2x 2 =24 1 +2x 2 =18 x (9,0) (14,0) 1 2x 1 +7x 2 =28 x 1 + x 2 = 9

x 2 Objective : min x 1 + 2x 2 (0,9) (0,4) (0,0) (7,2) (9,0) (14,0) (7,2) is the optimal solution and optimal value is 11 x 1 +2x 2 =18 x 1 2x 1 +7x 2 =28 x x 1 + x 2 = 9x 1 +2x 2 =14 1 +2x 2 =11

Ex 3) Graphical Solution of 2-variable LP Problems Suppose that in the previous example, it costed $4 to place a minute of radio ad and $14 to place a minute of TV ad. min 4x 1 + 14 x 2 s.t. 2x 1 + 7x 2 28 x 1 + x 2 9 x 1, x 2 0,

x 2 Objective : min 4x 1 + 14x 2 (0,9) (0,4) (0,0) -c=[-4-14] (7,2) (9,0) (14,0) 4x 1 +14x 2 =140 4x 1 +14x 2 =126 x 1 -c=[-4-14] 2x 1 +7x 2 =28 4x 1 +14x 2 =56 x 1 + x 2 = 9

x 2 (0,9) Objective : min 4x 1 + 14x 2 In this case, every feasible solution on the line segment [(7,2), (14,0)] is an optimal solution with the same optimal value 56. (0,4) (0,0) (7,2) (9,0) (14,0) x 1 -c=[-4-14] 2x 1 +7x 2 =28 4x 1 +14x 2 =56 x 1 + x 2 = 9

Graphical Solution of 2-variable LP Problems é7ù é7ù At point A= ê, the objective function value is: [4 14] = 56, 2 ú ê 2 ú ë û ë û é14ù é14ù At point B= ê, the objective function value is: [4 14] = 56. 0 ú ê 0 ú ë û ë û This is also true for any feasible point on the line segment [A,B]. We say that LP has multiple or alternate optimal solutions. ì é Line Segment A,B 7 ù é l 1 l 14 ù = í ê + - : lî 0,1 2 ú ê 0 ú î ë û ë û [ ] ( ) [ ] ü ý þ

Ex 4) Graphical Solution of 2-variable LP Problems Consider the following LP problem: max x 1 + 3 x 2 s.t. -x 1 + 2x 2 8 x 1, x 2 0,

x 2 -x 1 + 2x 2 = 8 (0,4) c=[1 3] x 1 +3x 2 =12 (-8,0) (0,0) x 1 x 1 +3x 2 =0

Unbounded LP Problems: The objective function for this maximization problem can be increased by moving in the improving direction c as much as we want while still staying in the feasible region. In this case, we say that the LP is unbounded. For unbounded LP problems, there is no optimal solution and the optimal value is defined to be +.

Unbounded LP Problems: For the minimization problem, we say that the LP is unbounded if we can DECREASE the objective function value as much as we want while still staying in the feasible region. In this case, the optimal value is defined to be -.

Ex 5) Graphical Solution of 2-variable LP Problems max x 1 + 3 x 2 s.t. x 1 + x 2 6 - x 1 + 2x 2 8 x 2 6 x 1, x 2 0, (5)

x 2 -x 1 + 2x 2 = 8 (0,6) (0,4) (4/3,14/3) No feasible solution exists! We say that LP problem is infeasible. (5) (5) (-8,0) (0,0) (6,0) x 1 x 1 + x 2 = 6

Every LP Problem falls into one of the 4 cases: Case 1: The LP problem has a unique optimal solution (see Ex.1 and Ex.2) Case 2: The LP problem has alternative or multiple optimal solution (see Ex.3). In this case, there are infinitely many optimal solutions. Case 3: The LP problem is unbounded (see Ex.4). In this case, there is no optimal solution. Case 4: The LP problem is infeasible (see Ex.5). In this case, there is no feasible solution.

Extreme Points (Corner Points): Theorem: If the feasible set {xє R n : Ax b, x 0} is not empty, that is if there is a feasible solution, then there is an extreme point. Theorem: If an LP has an optimal solution, then there is an extreme (or corner) point of the feasible region which is an optimal solution to the LP P.S: Not every optimal solution needs to be an extreme point! (Remember the alternate optimal solution case)

Graphical Solution of LP Problems: We may graphically solve an LP with two decision variables as follows: Step 1: Graph the feasible region. Step 2: Draw an isoprofit line (for max problem) or an isocost line (for min problem). Step 3: Move parallel to the isoprofit/isocost line in the improving direction. The last point in the feasible region that contacts an isoprofit/isocost line is an optimal solution to the LP.