Math 354 Summer 2004 Solutions to review problems for Midterm #1

Similar documents
Non-Standard Constraints. Setting up Phase 1 Phase 2

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

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

M340(921) Solutions Problem Set 6 (c) 2013, Philip D Loewen. g = 35y y y 3.

Linear Programming, Lecture 4

Lecture 11 Linear programming : The Revised Simplex Method

Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

Professor Alan H. Stein October 31, 2007

The Simplex Method. Formulate Constrained Maximization or Minimization Problem. Convert to Standard Form. Convert to Canonical Form

Lesson 27 Linear Programming; The Simplex Method

Review Solutions, Exam 2, Operations Research

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

Points: The first problem is worth 10 points, the others are worth 15. Maximize z = x y subject to 3x y 19 x + 7y 10 x + y = 100.

3. THE SIMPLEX ALGORITHM

Part 1. The Review of Linear Programming

4.4 The Simplex Method and the Standard Minimization Problem

February 22, Introduction to the Simplex Algorithm

Slide 1 Math 1520, Lecture 10

Systems Analysis in Construction

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

Optimization Methods in Management Science

Simplex Method for LP (II)

Section 4.1 Solving Systems of Linear Inequalities

February 17, Simplex Method Continued

Ω R n is called the constraint set or feasible set. x 1

Understanding the Simplex algorithm. Standard Optimization Problems.

1 Simplex and Matrices

MATH 445/545 Test 1 Spring 2016

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

Note 3: LP Duality. If the primal problem (P) in the canonical form is min Z = n (1) then the dual problem (D) in the canonical form is max W = m (2)

OPRE 6201 : 3. Special Cases

AM 121: Intro to Optimization

c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

The Big M Method. Modify the LP

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

Summary of the simplex method

MATH 445/545 Homework 2: Due March 3rd, 2016

Math 210 Finite Mathematics Chapter 4.2 Linear Programming Problems Minimization - The Dual Problem

Math Models of OR: Some Definitions

Linear Programming Redux

Introduction to the Simplex Algorithm Active Learning Module 3

6.4 Division of Polynomials. (Long Division and Synthetic Division)

OPERATIONS RESEARCH. Linear Programming Problem

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

TIM 206 Lecture 3: The Simplex Method

Linear Programming Duality

Contents. 4.5 The(Primal)SimplexMethod NumericalExamplesoftheSimplexMethod

CS Algorithms and Complexity

A Review of Linear Programming

Chapter 5 Linear Programming (LP)

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

IE 400: Principles of Engineering Management. Simplex Method Continued

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

9.1 Linear Programs in canonical form

Week_4: simplex method II

CPS 616 ITERATIVE IMPROVEMENTS 10-1

Integer Programming. The focus of this chapter is on solution techniques for integer programming models.

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

1 Review Session. 1.1 Lecture 2

The Simplex Algorithm

Solution to Proof Questions from September 1st

Math Homework 3: solutions. 1. Consider the region defined by the following constraints: x 1 + x 2 2 x 1 + 2x 2 6

1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations

Fundamental Theorems of Optimization

Mathematics (JAN12MD0201) General Certificate of Education Advanced Level Examination January Unit Decision TOTAL.

In Chapters 3 and 4 we introduced linear programming

Review Exercise 2. 1 a Chemical A 5x+ Chemical B 2x+ 2y12 [ x+ Chemical C [ 4 12]

Fundamentals of Operations Research. Prof. G. Srinivasan. Indian Institute of Technology Madras. Lecture No. # 15

Chapter 4 The Simplex Algorithm Part I

2. Linear Programming Problem

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

Part III: A Simplex pivot

Today s class. Constrained optimization Linear programming. Prof. Jinbo Bi CSE, UConn. Numerical Methods, Fall 2011 Lecture 12

Solving Equations with Addition and Subtraction. Solving Equations with Addition and Subtraction. Solving Equations with Addition and Subtraction

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

CHAPTER 2. The Simplex Method

MATH 210 EXAM 3 FORM A November 24, 2014

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

March 13, Duality 3

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

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Algebraic Simplex Active Learning Module 4

15-780: LinearProgramming

April 2003 Mathematics 340 Name Page 2 of 12 pages

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

Solving Equations with Addition and Subtraction

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

...(iii), x 2 Example 7: Geetha Perfume Company produces both perfumes and body spray from two flower extracts F 1. The following data is provided:

December 2014 MATH 340 Name Page 2 of 10 pages

Sensitivity Analysis

Linear Programming and its Extensions Prof. Prabha Shrama Department of Mathematics and Statistics Indian Institute of Technology, Kanpur

Linear Programming: Chapter 5 Duality

Optimum Solution of Linear Programming Problem by Simplex Method

The Simplex Algorithm

F 1 F 2 Daily Requirement Cost N N N

Operations Research I: Deterministic Models

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

The Simplex Method of Linear Programming

ORF 307: Lecture 2. Linear Programming: Chapter 2 Simplex Methods

Transcription:

Solutions to review problems for Midterm #1 First: Midterm #1 covers Chapter 1 and 2. In particular, this means that it does not explicitly cover linear algebra. Also, I promise there will not be any proofs. 1 Consider the following scenario. Model it as a linear programming problem. Be sure to state explicitly what each of your decision variables x 1, x 2,... represent. Do not attempt to solve the LPP. A cattle rancher uses three types of cattle feed: type 1, type 2, and type 3. Type 1 costs $1.50 per pound, type 2 costs $3.50 per pound, and type 3 costs $2.00 per pound. The rancher wants to meet the following minimum daily requirements for each animal. Each day, each animal should have at least 120 mg of vitamin A, 180 mg of vitamin B, and 100 mg of vitamin C. The following chart shows the number of mg per pound of each vitamin in the three types of feed: Vitamin Type 1 Type 2 Type 3 A 8 2 20 B 9 11 5 C 1 10 20 Because of protein content, however, an animal cannot eat more than 15 pounds of type 1, 10 pounds of type 2, and 5 pounds of type 3 cattle feed per day. How many pounds of each type of cattle feed should the rancher purchase per day in order to minimize the cost, while still meeting the nutritional minimum daily requirements? Answer: Letting the problem can be written as x 1 x 2 x 3 = amount of Type 1 feed, = amount of Type 2 feed, = amount of Type 3 feed, Minimize z = 1.50x 1 + 3.50x 2 + 2.00x 3 8x 1 +2x 2 +20x 3 120, 9x 1 +11x 2 +5x 3 180, x 1 +10x 2 +20x 3 100, x 1 15, x 2 10, x 3 5, x 1, x 2, x 3 0. Note that this is our answer, the problem specifically told us not to try to solve the problem.

2 Convert the following LPP into (a) standard form, and (b) canonical form: minimize z = x 1 4x 2 + 5x 3 x 1 +x 3 5 x 2 +3x 3 7 2x 1 +9x 2 = 11 x 1, x 2 0 x 3 unconstrained Answer: To convert a problem to standard form, we generally have to do three things: 1. Make the problem a maximization problem, 2. Make every constraint except for constraints of the form x j 0 involve a, 3. Make every variable constrained to be non-negative. To do that in this example we have to do quite a bit of work. The final answer is: The answer for canonical form is: maximize z = x 1 + 4x 2 5x 3 x 1 +x + 3 x 3 5 x 2 3x 3 +3x 3 7 2x 1 +9x 2 11 2x 1 9x 2 11 x 1, x 2, x + 3, x 3 0 maximize z = x 1 + 4x 2 5x 3 x 1 +x + 3 x 3 +u = 5 x 2 3x 3 +3x 3 +v = 7 2x 1 +9x 2 = 11 x 1, x 2, x + 3, x 3, u, v 0

3 Consider the LPP maximize z = 2x 1 + 4x 2 5x 1 +3x 2 +5x 3 15 10x 1 +8x 2 +15x 3 40 x 1, x 2 x 3 0 First, sketch the set of feasible solutions. Then find the extreme points of this set. Then find the optimal solution(s). Answer: Let s just forget that I put this problem on the review sheet. There will be an Extreme Point Theorem problem on the midterm, but it will only have two variables, so it will be like the one on Quiz #2.

4 Find an optimal solution to the following LPP using the simplex method. maximize z = x 1 + 3x 2 + 5x 3 2x 1 5x 2 +x 3 3 x 1 +4x 2 5 x 1, x 2, x 3 0 Answer: First we have to add slack variables to both inequalities. Then our initial tableau will be First iteration: Entering x 3, departing u 1 : x 1 x 2 x 3 u 1 u 2 u 1 2 5 1 1 0 3 u 2 1 4 0 0 1 5 1 3 5 0 0 0 x 1 x 2 x 3 u 1 u 2 x 3 2 5 1 1 0 3 u 2 1 4 0 0 1 5 9 28 0 5 0 15 Second iteration: Entering x 2 and departing u 2 : x 1 x 2 x 3 u 1 u 2 x 3 13/4 0 1 1 5/4 37/4 x 2 1/4 1 0 0 1/4 5/4 16 0 0 5 7 50 Therefore the optimal solution is x 1 = 0, x 2 = 5/4, x 3 = 37/4, x 4 = 0, and z = 50 is the best we can do.

5 Find an optimal solution to the following LPP using the two-phase simplex method. maximize z = x 1 2x 2 x 1 +2x 2 x 3 = 3 3x 1 +4x 2 x 4 = 10 x 1, x 2, x 3, x 4 0 Answer: We have to add artificial variables y 1 and y 2 to the two constraints, so our auxiliary problem is: maximize z = y 1 y 2 x 1 +2x 2 x 3 +y 1 = 3 3x 1 +4x 2 x 4 +y 2 = 10 This corresponds to the tableau x 1, x 2, x 3, x 4, y 1, y 2 0 y 1 1 2 1 0 1 0 3 y 2 3 4 0 1 0 1 10 0 0 0 0 1 1 0 But before we get started, we have to get 0s in the objective row in the y 1 and y 2 columns. (As we discussed in class, our book does this a little differently, but I think this is easier.) So, we subtract the first and second rows from the third row to obtain the following initial tableau: y 1 1 2 1 0 1 0 3 y 2 3 4 0 1 0 1 10 4 6 1 1 0 0 13 Our entering variable will be x 2, and the θ-ratios are 3 and 10/3, respectively, so the departing variable is y 1. After pivoting, this gives the following tableau: x 2 1/2 1 1/2 0 1/2 0 3/2 y 2 1 0 2 1 2 1 4 1 0 2 1 3 0 4 So our next entering variable will be x 3, and since the θ-ratios are 3 and 4, respectively, the departing variable is y 2. After pivoting, we get x 2 3/4 1 0 1/4 0 1/4 5/2 x 3 1/2 0 1 1/2 1 1/2 2 0 0 0 0 1 1 0

Important: Remember that the purpose of the first phase of the two-phase method is just to get a basic feasible solution so that we can use the simplex method on the original problem. This can be checked! For example, here we got x 1 = 0, x 2 = 5/2, x 3 = 2, x 4 = 0. We can plug these into our constraints to check the answer: 0 +2(5/2) 2 +0 = 3 3(0) +4(5/2) 0 = 10 Now we are ready to begin the last phase. For this we do the following three things to the final tableau from the first phase: 1. Forget about the columns corresponding to the artificial variables y 1 and y 2, 2. Replace the objective row by the objective row coming from our original problem, 3. Clean up the objective row to get 0s in the places they are needed. Doing the first two of these in our problem gives the following tableau: x 1 x 2 x 3 x 4 x 2 3/4 1 0 1/4 5/2 x 3 1/2 0 1 1/2 2 1 2 0 0 0 So now we have to get 0s in the x 2 and x 3 columns of the new objective row to complete step three. We do this by subtracting 2 times the first row from the objective row to get our initial tableau x 1 x 2 x 3 x 4 x 2 3/4 1 0 1/4 5/2 x 3 1/2 0 1 1/2 2 1/2 0 0 1/2 5 The entering variable is x 1, the departing variable is x 2, and after one pivot we already have our final tableau: x 1 x 2 x 3 x 4 x 1 1 4/3 0 1/3 10/3 x 3 0 2/3 1 1/3 1/3 0 2/3 0 1/3 10/3 This gives an optimal solution of x 1 = 10/3, x 2 = 0, x 3 = 1/3, and x 4 = 0, with z = 10/3 being the best we could do. I have several people ask if z could be negative. Yes! Look at what we were trying to maximize: x 1 2x 2. Since our variables have to be non-negative, this function will always be negative.