Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics

Similar documents
Linear Programming: Basic Concepts. Chapter 2: Hillier and Hillier

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

II. Linear Programming

Lesson 08 Linear Programming

Introduction to Linear Programming. Chapter 3: Hillier and Lieberman Chapter 3: Decision Tools for Agribusiness Dr. Hurley s AGB 328 Course

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

Mathematics for Business and Economics - I. Chapter7 Linear Inequality Systems and Linear Programming (Lecture11)

Linear Programming. Meaning of Linear Programming. Basic Terminology

Chapter 7. Linear Programming Models: Graphical and Computer Methods

UNIT 4 NOTES. 4-1 and 4-2 Coordinate Plane

Introduction to Linear Programming

Review for Mastery Using Graphs and Tables to Solve Linear Systems

Linear Programming: A Geometric Approach

Section 2.1 Graphs. The Coordinate Plane

Graphing Linear Inequalities in Two Variables.

Using Linear Programming for Management Decisions

Solving linear programming

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR

Chapter 4 Linear Programming

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

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

Linear Programming the simple Wyndor Glass example

In this class, we addressed problem 14 from Chapter 2. So first step, we expressed the problem in STANDARD FORM:

Linear Programming. them such that they

Section Graphs and Lines

Quantitative Technique

AM 221: Advanced Optimization Spring 2016

Mathematics. Linear Programming

ISE 203 OR I. Chapter 3 Introduction to Linear Programming. Asst. Prof. Dr. Nergiz Kasımbeyli

Econ 172A - Slides from Lecture 2

2.6: Solving Systems of Linear Inequalities

Chapter 3 Linear Programming: A Geometric Approach

Linear programming II João Carlos Lourenço

Question 2: How do you solve a linear programming problem with a graph?

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc.

I will illustrate the concepts using the example below.

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

Linear Programming Terminology

3.1. 3x 4y = 12 3(0) 4y = 12. 3x 4y = 12 3x 4(0) = y = x 0 = 12. 4y = 12 y = 3. 3x = 12 x = 4. The Rectangular Coordinate System

3.7. Vertex and tangent

Math 2 Coordinate Geometry Part 3 Inequalities & Quadratics

Chapter 15 Introduction to Linear Programming

Graphical Methods in Linear Programming

Algebra II Notes Unit Two: Linear Equations and Functions

3x + y 50. y=10. x=15 3x+y=50. 2x + 3y = 40

LINEAR PROGRAMMING (LP), GRAPHICAL PRESENTATION GASPAR ASAMPANA

Tangent line problems

OPTIMIZATION: Linear Programming

I(g) = income from selling gearboxes C(g) = cost of purchasing gearboxes The BREAK-EVEN PT is where COST = INCOME or C(g) = I(g).

The total cost function is linear. The fixed cost is $3482 and the total cost to produce 20 Trinkets is $4004. Find the total cost function.

Remember to SHOW ALL STEPS. You must be able to solve analytically. Answers are shown after each problem under A, B, C, or D.

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

MA30SA Applied Math Unit D - Linear Programming Revd:

Solutions to Problem 1 of Homework 3 (10 (+6) Points)

Chapter 10 Part 1: Reduction

1.1 THIS IS LINES 1.2 FUNCTIONS

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

Four Types of Slope Positive Slope Negative Slope Zero Slope Undefined Slope Slope Dude will help us understand the 4 types of slope

1.1 - Functions, Domain, and Range

Introduction to Linear Programming. Algorithmic and Geometric Foundations of Optimization

Algebra Reviews & LP Graphic Solutions

Algebra 2 Notes Systems of Equations and Inequalities Unit 03b. Optimization with Linear Programming

AP Calculus. Extreme Values: Graphically. Slide 1 / 163 Slide 2 / 163. Slide 4 / 163. Slide 3 / 163. Slide 5 / 163. Slide 6 / 163

Unit.9 Integer Programming

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

MATH ALGEBRA AND FUNCTIONS 5 Performance Objective Task Analysis Benchmarks/Assessment Students:

Math 20 Practice Exam #2 Problems and Their Solutions!

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

Essential Questions. Key Terms. Algebra. Arithmetic Sequence

Sample tasks from: Algebra Assessments Through the Common Core (Grades 6-12)

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

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

Math 3A Meadows or Malls? Review

Chapter 4. Linear Programming

Chapter 13-1 Notes Page 1

Concept: Solving Inequalities Name:

Unit 0: Extending Algebra 1 Concepts

Linear Programming Problems: Geometric Solutions

Graphing Linear Equations

Mini-Project 1: The Library of Functions and Piecewise-Defined Functions

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

Artificial Intelligence

SUGGESTED SOLUTION CA FINAL MAY 2017 EXAM

Topic 2: Decimals. Topic 1 Integers. Topic 2 Decimals. Topic 3 Fractions. Topic 4 Ratios. Topic 5 Percentages. Topic 6 Algebra

WHOLE NUMBER AND DECIMAL OPERATIONS

Chapter 2 - An Introduction to Linear Programming

Chapter 4: Solving Linear Equations Study Guide

CDG2A/CDZ4A/CDC4A/ MBT4A ELEMENTS OF OPERATIONS RESEARCH. Unit : I - V

Functions. Copyright Cengage Learning. All rights reserved.

UNIT 6 MODELLING DECISION PROBLEMS (LP)

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

Remember to SHOW ALL STEPS. You must be able to solve analytically. Answers are shown after each problem under A, B, C, or D.

1 Thinking Proportionally

1. Evaluating the objective function at each of the corner points we obtain the following table. Vertex Z = 2x + 3y (1,1) 5 (8,5) 31 (4,9) 35 (2,8) 28

SNAP Centre Workshop. Graphing Lines

1. List the Intercepts of the Inequality and then sketch the graph using the Math 125 method of shading

The Simplex Algorithm

Planting the Seeds Exploring Cubic Functions

LINEAR PROGRAMMING. Chapter Overview

Think about the pattern you used to calculate each dependent quantity value. Problem 1 As We Make Our Final Descent

Transcription:

Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics Decisions must be made on the levels of a two or more activities. The levels are represented by decision variables X 1 X 2, etc. The activities all contribute to some measurable benefit (which we wish to maximize) or to some measurable cost (which we wish to minimize) [This is the objective in the problem]. The objective is usually referred to as Z and is given by some function of the decision variables Z = f(x 1, X 2,...). The levels of the activities are limited by a collection of constraints [they require the use of limited resources, or make contributions to meeting required goals, or are subject to rules on their relationships] These are expressed by equations and inequalities involving the decision variables Assumptions in Mathematical programming models 1. Benefits/costs from different activities can be measured and compared. 2. Benefits/costs from different activities are independent (except as explicitly stated by the constraints) 3. Data are known with certainty (no probability calculations are involved) Linear Programming Model 1. The function giving the value of the objective is linear that is, of the form Z = C 1 X 1 + C 2 X 2 +... + C n X n for some constants C 1, C 2,... C n (If the variables representing the levels of the activities are X 1, X 2,..., X n ) 2. The constraints can be expressed by linear equations and inequalities involving only the decision variables. linear means: of the form A 11 X 1 + A 12 X 2 +... + A 1,n X n B 1 or A 11 X 1 + A 12 X 2 +... + A 1,n X n B 1 or A 11 X 1 + A 12 X 2 +... + A 1,n X n = B 1 ) The Conditions for a problem to fit the Linear Programming Model 1. The parameter values are known with certainty. 2. The objective and constraints exhibit constant returns to scale [Twice as much of any variable quantity has exactly twice the effect, etc.] 3. There are no interactions between the decision variables [A change of +2 in a quantity has the same effect regardless of the values of the other quantities] 4. The decision variables are continuous [fractional values make sense]. If the decision values must be whole numbers counts, for example we have Integer Linear Programming ILP which adds some complications Two setup examples (based on Hillier, Hillier, Lieberman Introduction to Management Science) Example 1 Wyndor Glass company plans to make two new products, 1.) a glass door with aluminum framing and 2.) a double-hung, wood-framed window They expect each door made & sold to produce a $300 profit and each window to produce a $500 profit. They would like to maximize the total profit. The new products will be manufactured in the companys three existing factories, which have (or can make) time free of other production demands: 4 hrs per week at plant 1, 12 hours per week at plant 2, 18 hours per week at plant 3. Making a door requires 1 hour of work at plant 1 plus 3 hours at plant 3. Making a window requires 2 hours of work at plant 2 plus 2 hours at plant 3. Costs are already included in the profit figures. It is helpful to summarize the data on what is available in a table. In order to standardize, we will use columns for the quantities on which a decision must be made (the decision variables) and rows for the quantities and considerations that put restrictions on the values (the constraints) We will also put a row for the objective (our measure of success) 1

Time needed and time available for production Plant Doors windows Available/Needed 1 1 0 4 2 0 2 12 3 3 2 18 Profit $300 $500 The decision variables are D = number of doors to make per week W = number of windows to make per week Since production can carry over from week to week, fractional values would make sense The objective is profit, and the data given show that Z = 300D + 500W (which is linear) The constraints come from the limitations on available time at the production plants. The time required at plant 1 will be D hours and this cannot be more than 4 hours. The time required at plant 2 will be 2W hours this cannot be more than 12 hours. The time required at plant 3 will be 3D + 2W and cannot be more than 18 hours. So we want to Maximize Z = 300D + 500W With constraints D 4 2W 12 3D + 2W 18 D 0W 0 (Nonnegativity constraints It would not make sense to try to produce a negative number of doors or windows) Example 2 Profit & Gambit is planning a major advertising campaign for three key products a prewash stain remover, a liquid laundry detergent, and a powder laundry detergent. These will be advertised in print (including cents-off coupons in magazines and newspapers) and through television ads. The campaign is designed to coordinate all of these, but the company must decide how much advertising to buy in each medium (print vs. television). Each unit of television advertising will cost $1 million; each unit of print advertising will cost $2 million. There are certain minimum goals that have been set up for the campaign: the stain remover should increase its share by at least 3% of its market, the liquid detergent by at least 18% and the powder detergent by at least 4% of the detergent market.. The different media have different efficiencies for different products: It is expected that for each unit of television advertising, the company will gain 3% of market share for the liquid detergent and lose 1% of market share for the powder detergent (because of the competition with the liquid detergent). For each unit of print advertising, the company expects to gain 1% market share for the stain remover, 2% market share for the liquid detergent, and 4% for the powder detergent. The company wants to attain the goals at minimum cost. Again we can summarize the information in a table (this is typical of linear programming) Market share requirements and achievement (per unit) for the advertising media: Product Television Print Required Stain Remover 0 1% 3% Liquid Detergent 3% 2% 18% Powder Detergent -1% 4% 4% Cost $1 million $2 million The decision variables are T = number of units of television advertising P = number of units of print advertising The objective is cost Z = T + 2P (in millions of dollars) and the company wants to minimize this. The constraints come from the goals that must be met: Market share gained for the stain remover will be P, and this must be at least 3. Market share gained for the liquid detergent will be 3T + 2P and this must be at lest 18. Market share gained for the powder detergent will be T + 4P, and this must be a t least 4 Thus we want to 2

MinimizeZ = T + 2P Under the constraints P 4 3T + 2P 18 T + 4P 4 T 0P 0 (though these last two constraints turn out to be redundant) Graphical solution (2 decision variables) To see how the constraint and objective interact, we will look at the two-variable situation (as in our examples), where we can draw pictures. The same ideas carry over to the more realistic situation with many variables (where we can t draw pictures) Every possible pair of values for the decision variables is called a solution (Think potential solution but say solution ) The constraints set up a set of pairs of values which are feasible solutions pairs that are possible (feasible) for the restrictions. We can graph all of these in the feasible region of the plane (for two variables we could use 3-dimensional graphing with three variables, but beyond that the ideas work but we cant draw the graphs) Each restriction (including the Nonnegativity restrictions X 1 0, X 2 0, etc.) cuts off a region represented by its graph made up of points that satisfy the inequality/equation. The overlap of all of these is the feasible region. To see the feasible region, we graph the inequalities, in order, and look for the overlap. (To graph an inequality: Graph the corresponding equation and determine by testing a point such as (0,0) which side of the graph is the graph of the inequality. For linear inequalities the equation will give a line, so finding two points will suffice for graphing) A particular profit level will be feasible if it can be obtained from some point in the feasible region for instance, $1500 is possible with D = 0 and W = 4, or with D = 3 and W = 1.2 (remember that fractional values are allowed). In fact, any point on the line 300D+500W = 1500 will give profit $1500 the value is possible if there is a feasible point on the line. A profit of $4,000 is not possible the line 300D + 500W = 4000 doesnt contain any points of the feasible region. For any profit, the set of points to give that profit is parallel to the line 300D + 500W = 1500, because for profit Z the points are on 300D + 500W = Z - which has the same slope. We can find maximum profit by finding the maximum Z that gives a line intersecting the feasible region. Some examples: 3

The best profit we can get is $3600 any attempt at a larger profit (larger value of Z) will give a higher line that wont hit the feasible region. If our profits on doors and windows were different say $600 for a door and $300 for a window wed get a different slope on the profit lines and a different best value butthe line for best profit still would have to hit the feasible region at a corner (otherwise we could slide the line up & get a better profit). For the Profit & Gamble example, the feasible region is Here are some lines for various cost levels: in order: Z = 16, then try smaller Z = 12(still OK), then try Z = 10(still OK hits corner (4,3) ) Z = 8 (not feasible no intersection with the feasible region) 4

The minimum [feasible] cost comes at the corner point (4,3) any attempt at a lower cost gives a line with no feasible solutions on it.. Thus: To solve any Linear Programming problem with two decision variables we can use the Graphic method: [see Lawrence & Pasternack p.60] 1. Graph the constraints to find the feasible region 2. Set the objective function equal to an arbitrary value [this gives linear equation] so that the graph [the line for the equation] passes through the feasible region. (Trial and error to get a value that works or plug in the variable values from an obvious feasible solution) 3. Move the objective function line parallel to itself in the direction of improvement (increase for Maximize, decrease for minimize - may need trial and error to decide what changes) until it touches the last point of the feasible region. 4. Solve for X 1 and X 2 by solving the [system of] two equations that intersect to determine this point. 5. Substitute these values into the objective function to determine its optimal value. A search method variation on the same idea involves more computation [solving more systems of equations] but is not as demanding of visual skills [for seeing parallel lines] 1. Graph the constraints [Graph the corresponding equations and see which side is desired] the feasible region is the region in which all overlap 2. Find the corners of the feasible region (the extreme points) by solving the system of two equations that determines each corner [You need the graph to tell which intersections are corners and which are not] 3. Substitute the pair at each corner into the objective function for a Maximize problem, the corner that gives the largest value is the optimal solution. For a minimize problem its the corner that gives the smallest value is the optimal solution (Checking the corners is the heart of this solution method) 5