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

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

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

Linear Programming. Formulating and solving large problems. H. R. Alvarez A., Ph. D. 1

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

Math 381 Midterm Practice Problem Solutions

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

Study Unit 3 : Linear algebra

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

MODELING (Integer Programming Examples)

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

DM559/DM545 Linear and integer programming

Optimization Methods in Management Science

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

PROJECT MANAGEMENT CHAPTER 1

Integer Linear Programming Modeling

Introduction to Bin Packing Problems

Graphical and Computer Methods

2. Linear Programming Problem

Lecture 8: Column Generation

Math Introduction to Operations Research

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

Introduction to sensitivity analysis

Chapter 5: Normal Probability Distributions

Lecture 8: Column Generation

Linear Programming. H. R. Alvarez A., Ph. D. 1

LP Definition and Introduction to Graphical Solution Active Learning Module 2

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

Review Questions, Final Exam

Exercises - Linear Programming

Deterministic Operations Research, ME 366Q and ORI 391 Chapter 2: Homework #2 Solutions

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

Decision Mathematics Module D1

3.10 Column generation method

Bachelor s Degree Programme Operations Research (Valid from 1st January, 2012 to 30th November, 2012.)

Review Questions, Final Exam

What is an integer program? Modelling with Integer Variables. Mixed Integer Program. Let us start with a linear program: max cx s.t.

Name: Section Registered In:

ST. JOSEPH S COLLEGE OF ARTS & SCIENCE (AUTONOMOUS) CUDDALORE-1

An Introduction to Linear Programming

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

Introduction to optimization and operations research

5.3 Linear Programming in Two Dimensions: A Geometric Approach

Linear Programming II NOT EXAMINED

Markov Chains. Chapter 16. Markov Chains - 1

Chapter 2 Introduction to Optimization and Linear Programming

3.10 Column generation method

MVE165/MMG630, Applied Optimization Lecture 6 Integer linear programming: models and applications; complexity. Ann-Brith Strömberg

σ. We further know that if the sample is from a normal distribution then the sampling STAT 2507 Assignment # 3 (Chapters 7 & 8)

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

Large-scale optimization and decomposition methods: outline. Column Generation and Cutting Plane methods: a unified view

Optimization Methods in Management Science

Aim: Mean value theorem. HW: p 253 # 37, 39, 43 p 272 # 7, 8 p 308 # 5, 6

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

MATH 236 ELAC FALL 2017 CA 9 NAME: SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

OR: Exercices Linear Programming

2. Find the intervals where function is increasing and decreasing. Then find all relative extrema.

Do not turn this page until you have received the signal to start. Please fill out the identification section above. Good Luck!

0-1 Knapsack Problem in parallel Progetto del corso di Calcolo Parallelo AA

UNIVERSITY of LIMERICK

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

Functions. 1. Any set of ordered pairs is a relation. Graph each set of ordered pairs. A. B. C.

System Planning Lecture 7, F7: Optimization

PREPARED BY: INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Sample Problems for the Final Exam

Math 1120 Calculus Test 3

Applications of Derivatives

Demo 1: Solving LP problem graphically and with Excel Solver

In the original knapsack problem, the value of the contents of the knapsack is maximized subject to a single capacity constraint, for example weight.

Introduction to LP. Types of Linear Programming. There are five common types of decisions in which LP may play a role

Chapter 3: Discrete Optimization Integer Programming

Exam. Name. Use the indicated region of feasible solutions to find the maximum and minimum values of the given objective function.

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

IV. Violations of Linear Programming Assumptions

Lecture 8 Network Optimization Algorithms

Column Generation. i = 1,, 255;

Systems of Equations and Inequalities

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

Integer programming: an introduction. Alessandro Astolfi

Column Generation I. Teo Chung-Piaw (NUS)

Math 1314 Test 3 Review Material covered is from Lessons 9 15

CHAPTER 11 Integer Programming, Goal Programming, and Nonlinear Programming

Column Generation. ORLAB - Operations Research Laboratory. Stefano Gualandi. June 14, Politecnico di Milano, Italy

LINEAR PROGRAMMING BASIC CONCEPTS AND FORMULA

Systems of Equations. Red Company. Blue Company. cost. 30 minutes. Copyright 2003 Hanlonmath 1

ALGEBRA UNIT 5 LINEAR SYSTEMS SOLVING SYSTEMS: GRAPHICALLY (Day 1)

Math 1314 Test 3 Review Material covered is from Lessons The total weekly cost of manufacturing x cameras is given by the cost function: 3 2

1 Column Generation and the Cutting Stock Problem

MTHSC 4420 Advanced Mathematical Programming Homework 2

Math Applications 544

Lines and Systems Review

Chapter 8: Proportional Reasoning

Review Problems Solutions MATH 3300A (01) Optimization Fall Graphically, the optimal solution is found to be x 1 = 36/7, x 2 = 66/7, z = 69/7.

Math 3 Variable Manipulation Part 7 Absolute Value & Inequalities

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

CEE Computer Applications. Mathematical Programming (LP) and Excel Solver

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

Introduction to Operations Research. Linear Programming

Linear Programming: Model Formulation and Graphical Solution

INTERNET MAT 117 Review Problems. (1) Let us consider the circle with equation. (b) Find the center and the radius of the circle given above.

56:270 Final Exam - May

Transcription:

Spring 2018 IE 102 Operations Research and Mathematical Programming Part 2

Graphical Solution of 2-variable LP Problems Consider an example max x 1 + 3 x 2 s.t. x 1 + x 2 6 (1) - x 1 + 2x 2 8 (2) x 1, x 2 0 (3), (4)

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

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

x 2 (3) -x 1 + 2x 2 = 8 (1) (2) (0,6) (0,4) (4/3,14/3) (4) (4) (-8,0) (0,0) (6,0) x 1 (2) (3) (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 move the isoprofit lines in the direction of c, the total profit increases for this max problem!

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 the 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) x 1 (12,0) 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: 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.

More examples 23

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 (1) - x 1 + 2x 2 8 (2) x 1, x 2 0 (3), (4) Ex 1.b) max x 1-2 x 2 s.t. x 1 + x 2 6 (1) - x 1 + 2x 2 8 (2) x 1, x 2 0 (3), (4)

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

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

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

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

x 2 (3) -x 1 + 2x 2 = 8 (1) (2) (0,6) (0,4) (4/3,14/3) Feasible Region (6,0) is the optimal solution! (4) (4) (-8,0) (2) (0,0) c=[1-2] (6,0) x 1 (3) (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 (1) - x 1 + 2x 2 8 (2) x 1, x 2 0 (3), (4)

x 2 (3) -x 1 + 2x 2 = 8 (1) (2) (0,6) (0,4) (4/3,14/3) c=[-1 1] (4) (4) (-8,0) (0,0) (6,0) x 1 (2) (3) (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 (1) Question: Is it possible for (5,1) be the optimal? - x 1 + 2x 2 8 (2) x 1, x 2 0 (3), (4)

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

x 2 (1) (3) (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) (2) (4) c=[-1 1] (0,0) improving direction! (5,1) (6,0) (4) x 1 (3) (1) x 1 + x 2 = 6

x 2 (3) -x 1 + x 2 = 4 -x 1 + x 2 = 10/3 -x 1 + 2x 2 = 8 (1) (2) 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] (4) (5,1) (4) (-8,0) (0,0) (6,0) x 1 (2) (3) (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 (1) Question: Is it possible for (0,4) be the optimal? - x 1 + 2x 2 8 (2) x 1, x 2 0 (3), (4)

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

Another Example

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 requirementsat 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

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 (1) x 1 + x 2 9 (2) x 1, x 2 0 (3), (4)

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

x 2 (2) (3) Objective : min x 1 + 2x 2 (1) (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 (4) (4) (0,0) (9,0) (14,0) (1) x 1 (2) 2x 1 +7x 2 =28 (3) x 1 + x 2 = 9

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

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

Graphical Solution of 2-variable 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.

More challenging modelling examples 47

Trim Loss Problem Certain products are manufactured in wide rolls. Wide rolls are later cut into rolls of smaller strips to meet specific demand. Examples: Paper, photographic film, sheet metal, textile fabric. 48

Another Example 100 of this shape 7 of this shape Available stock 22 of this shape and size How to cut depends on the demand 49

Example: Wrapping Paper Paper rolls are manufactured as 60 inch (wideness). Demand is for 10-inch, 20-inch, 25-inch and 30-inch rolls. customer 10-inch 20-inch 25-inch 30-inch X 107 109 110 Y 80 25 Z 89 29 50

Examples: 6 10-inch 3 20-inch 2 30-inch Possible patterns? 4 10-inch + 1 20-inch... What do you think our concern will be? Waste remains of the original roll Total number of original rolls used 51

A simpler example to work-out Wider rolls with 48-inch Demand is for 21-inch and 25-inch Patterns 25-inch 21-inch Waste Pattern A 0 2 6 Pattern B 1 1 2 Demand: 20 25-inch rolls, 50 21-inch rolls 52

Example continued Decision variables: x : the number rolls cut into Pattern A y : the number rolls cut into Pattern B Constraints: We want to satisfy demand y 20; 2x + y 50 x 0, y 0 Objective function: Minimize waste where waste = w = 6x + 2y 25-inch 21-inch Waste Pattern A 0 2 6 Pattern B 1 1 2 53

Example continued 54

Example continued Solution? Corner solution: (0,50), w = 100 What is the problem with the solution? Total produced: 50 21-inch + 50 25-inch Demand? 50 21-inch + 20 25-inch You need to be able to store the additional 25-inch rolls and use later. Any additional cost even if you can? 55

56

You are going on a trip. Your Suitcase has a capacity of b kg s. You have n different items that you can pack into your suitcase 1,..., n. Item i has a weight of a i and gives you a utility of c i. How should you pack your suitcase to maximize total utility? Knapsack problem

Knapsack problem

Knapsack problem

Knapsack problem This is also an example of an IP problem since x i can only take one of the two integer values 0 and 1.

KAHOOT