Finite Mathematics MAT 141: Chapter 4 Notes

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

1. Introduce slack variables for each inequaility to make them equations and rewrite the objective function in the form ax by cz... + P = 0.

Section 4.1 Solving Systems of Linear Inequalities

Understanding the Simplex algorithm. Standard Optimization Problems.

A = Chapter 6. Linear Programming: The Simplex Method. + 21x 3 x x 2. C = 16x 1. + x x x 1. + x 3. 16,x 2.

4.4 The Simplex Method and the Standard Minimization Problem

Gauss-Jordan Elimination for Solving Linear Equations Example: 1. Solve the following equations: (3)

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

MA 162: Finite Mathematics - Section 3.3/4.1

(b) For the change in c 1, use the row corresponding to x 1. The new Row 0 is therefore: 5 + 6

Slide 1 Math 1520, Lecture 10

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

UNIT-4 Chapter6 Linear Programming

MATH 1324 (Finite Mathematics or Business Math I) Lecture Notes Author / Copyright: Kevin Pinegar

Chapter 1: Linear Programming

SAMPLE QUESTIONS. b = (30, 20, 40, 10, 50) T, c = (650, 1000, 1350, 1600, 1900) T.

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

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

Exam 3 Review Math 118 Sections 1 and 2

Professor Alan H. Stein October 31, 2007

Week_4: simplex method II

Chapter 4 The Simplex Algorithm Part I

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

Section 1.3: Gauss Elimination Method for Systems of Linear Equations

4.3 Minimizing & Mixed Constraints

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

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

6.2: The Simplex Method: Maximization (with problem constraints of the form )

Optimization 4. GAME THEORY

Finite Math Section 4_1 Solutions and Hints

Simplex tableau CE 377K. April 2, 2015

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

The augmented form of this LP is the following linear system of equations:

MAT016: Optimization

The Simplex Algorithm

Chapter 5 Linear Programming (LP)

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

x 1 2x 2 +x 3 = 0 2x 2 8x 3 = 8 4x 1 +5x 2 +9x 3 = 9

MATH 118 FINAL EXAM STUDY GUIDE

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

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

Linear Programming: Chapter 5 Duality

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

a. Define your variables. b. Construct and fill in a table. c. State the Linear Programming Problem. Do Not Solve.

Part 1. The Review of Linear Programming

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

Lesson 27 Linear Programming; The Simplex Method

3. Replace any row by the sum of that row and a constant multiple of any other row.

Simplex Method. Dr. rer.pol. Sudaryanto

An introductory example

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

The Simplex Method of Linear Programming

Practice Final Exam Answers

Dr. S. Bourazza Math-473 Jazan University Department of Mathematics

MATH 445/545 Test 1 Spring 2016

Review Solutions, Exam 2, Operations Research

3.1 Linear Programming Problems

Chap6 Duality Theory and Sensitivity Analysis

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

Non-Standard Constraints. Setting up Phase 1 Phase 2

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

MATH 210 EXAM 3 FORM A November 24, 2014

The Simplex Algorithm and Goal Programming

Notes: Deterministic Models in Operations Research

Brief summary of linear programming and duality: Consider the linear program in standard form. (P ) min z = cx. x 0. (D) max yb. z = c B x B + c N x N

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

Econ 172A, Fall 2012: Final Examination Solutions (I) 1. The entries in the table below describe the costs associated with an assignment

Econ 172A, Fall 2012: Final Examination (I) 1. The examination has seven questions. Answer them all.

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1

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

Optimum Solution of Linear Programming Problem by Simplex Method

Network Flows. CS124 Lecture 17

Worked Examples for Chapter 5

Econ 172A, Fall 2012: Final Examination Solutions (II) 1. The entries in the table below describe the costs associated with an assignment

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

Math 1070 Exam 2. March 16, 2006

Formulation Problems: Possible Answers

April 2003 Mathematics 340 Name Page 2 of 12 pages

2. Linear Programming Problem

March 13, Duality 3

Review Questions, Final Exam

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

Math Models of OR: Some Definitions

1 Simplex and Matrices

Problem #1. The following matrices are augmented matrices of linear systems. How many solutions has each system? Motivate your answer.

Math 1070 Exam 2. March 16, 2006

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

Systems Analysis in Construction

Exam 2 Review Math1324. Solve the system of two equations in two variables. 1) 8x + 7y = 36 3x - 4y = -13 A) (1, 5) B) (0, 5) C) No solution D) (1, 4)

The Big M Method. Modify the LP

DEPARTMENT OF MATHEMATICS

15-780: LinearProgramming

Matrices, Row Reduction of Matrices

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

Another max flow application: baseball

Part III: A Simplex pivot

DEPARTMENT OF MATHEMATICS

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

Theory of Linear Programming

Cofactors and Laplace s expansion theorem

Transcription:

Finite Mathematics MAT 141: Chapter 4 Notes The Simplex Method David J. Gisch Slack Variables and the Pivot Simplex Method and Slack Variables We saw in the last chapter that we can use linear programming to solve a practical problems. The only issue is that the scope of linear programming is very limited. To tackle more complicated problems, and therefore more realistic, we need to introduce the simplex method and slack variables. Slack Variables We use a slack variable to turn an inequality into an equality. For example let us look at 10 We change this equation into an equality by adding a nonnegative variable. 10 Here we know that 10, so if 3and 4, then 3. We call a slack variable as it picks up the slack of the inequality to make an equality. 1

Simplex Method The Farmer Example: A farmer has 100 acres of land on which he wishes to plant a mixture of potatoes, corn, and cabbage. The amounts and constraints are given in the following table. Because we are using several variables it is not convenient to use x, y, z etc. Thus, we use, read x sub one, and so forth so we are not limited by the letters of the alphabet. (a) Write the objective function using subscripted variables. 120 40 60 The Farmer a) Write the constraints as inequalities. b) Write the constraints as inequalities. 100 400 160 180 20,000 10 4 7 500 Simplified c) Write each inequality as an equality using a different slack variable for each. + + + 100 10 +4 +7 + 500 The Farmer (a) (b) (c) Write the constraints as inequalities. Basdkashflka asjflhaljf (d) Now add the objective function with all variables moved to the left. 100 10 4 7 500 120 40 60 0 (e) Turn this into an augmented matrix. 1 1 1 1 0 0 100 10 4 7 0 1 0 500 120 40 60 0 0 1 0 The objective function always goes on the bottom. This augmented matrix is called the Simplex Tableau. 2

Bicycles Bicycles Example: A manufacturer of bicycles builds racing, touring, and mountain models. The bicycles are made of both aluminum and steel. The company has available 91,800 units of steel and 42,000 units of aluminum. The racing, touring, and mountain models need 17, 27, and 34 units of steel, and 12, 21, and 15 units of aluminum, respectively. How many of each type of bicycle should be made in order to maximize profit if the company makes $8 per racing bike, $12 per touring bike, and $22 per mountain bike? What is the maximum possible profit? (a) Write the objective function using subscripted variables. (b) Write the constraints as inequalities and turn them into equalities by including slack variables. (c) Take these equalities and the objective function and include them in a simplex tableau. The Pivot Method How do we take the simplex tableau and find a solution? We use Gauss-Jordan to pivot about elements. Pivot about the highlighted variable. 1 1 1 1 0 0 100 10 ` 4 7 0 1 0 500 120 40 60 0 0 1 0 1 1 1 1 0 0 100 1 2 5 7 10 0 0 50 120 40 60 0 0 1 0 120 0 1 1 10 0 50 1 2 5 7 10 0 0 50 0 8 24 0 12 1 6000 You have zeros above and below. The pivot is complete. The Pivot Method Read the solution from the result? 0 1 1 10 0 50 1 2 5 7 10 0 0 50 0 8 24 0 12 1 6000 1 0 0 0 1 0 0 0 1 This tells us that with 50and 50we have a maximum profit of $6000. This means we should plant 50 acres of potatoes, no corn, and no cabbage. Thus, we end up leaving 50 acres unplanted (represented by the slack variable). It seems weird but it is actually optimal. Check it out. Acres Cost Profit 40 $16,000 $4,800 $4,000 Left 50 $20,000 $6,000 60 $24,000 $7,200 Out of Money 3

The Pivot Method Example: Pivot about the indicated number and state the resulting solution. The Pivot Method Example: Pivot about the indicated number and state the resulting solution. 2 2 1` 1 0 0 0 12 1 2 3 0 1 0 0 45 3 1 1 0 0 1 0 20 2 1 3 0 0 0 1 0 2 2` 3 1 0 0 0 500 4 1 1 0 1 0 0 300 7 2 4 0 0 1 0 700 3 4 2 0 0 0 1 0 Steps to the Simplex Method Maximization Problems 4

Find the Pivot Example: Find the Pivot for the tableau. Find the Pivot Example: Find the Pivot for the tableau. 2 2 1 1 0 0 0 12 1 2 3 0 1 0 0 45 3 1 1 0 0 1 0 20 2 1 3 0 0 0 1 0 12 1 12 45 3 15 20 1 20 Smallest nonnegative number. 4 2 3 1 0 0 0 22 2 2 5 0 1 0 0 28 1 3 2 0 0 1 0 45 3 2 4 0 0 0 1 0 22 3 7.33 28 5 5.6 45 2 22.5 Smallest nonnegative number. Most negative indicator. Most negative indicator. Quick Review Find the Pivot Example: Find the Pivot for the tableau and perform the pivot. 2 1 2 1 0 0 0 25 4 3 2 0 1 0 0 40 3 1 6 0 0 1 0 60 4 2 3 0 0 0 1 0 4) 5

Put it all together. Example: Use the simplex method to solve the linear programming problem. Maximize: Subject to: 8 3 6 8 118 5 10 220 6

1 6 8 1 0 0 118 1 5 10 0 1 0 220 8 3 1 0 0 1 0 8 1 6 8 1 0 0 118 0 1 2 1 1 0 2 0 45 63 8 0 1 994 Remember to check that all the indicators are positive! Put it all together. Example: Use the simplex method to solve the linear programming problem. Maximize: Subject to: 2 5 5 2 30 4 3 6 72 Optimal solution is 118, 0, and 0which gives you a maximum of 994. Put it all together. Example: Big Dave s Fancy Widget Emporium makes three products. The distribution of labor and the profits are give in the table below. Create a simplex tableau and solve to maximize profit. Department Production Hours by Product Department Capacity for Hours A B C Assembling 2 3 2 30,000 Painting 1 2 2 38,000 Finishing 2 3 1 28,000 (PROFIT) $2 $5 $4 7

Widgets Continued Toy Manufacturer Example: A small toy manufacturing firm has 200 squares of felt, 600 oz of stuffing, and 90 ft of trim available to make two types of toys, a small bear and a monkey. The bear requires 1 square of felt and 4 oz of stuffing. The monkey requires 2 squares of felt, 3 oz of stuffing, and 1 ft of trim. The firm makes $1 profit on each bear and $1.50 profit on each monkey. (a) Set up the linear programming problem to maximize profit. (b) Solve the linear programming problem. Toy Manufacturer Minimization Problems 8

Transposition Of Matrices Taking a matrix and interchanging its row for its columns is known as the transposition of a matrix, denoted. 2 3 1 2 0 0 1 4, 3 1 1 4 Note that if has size, then has size. Example: Find the transposition of the given matrix. 3 2 0 1 4 6 3 0 5 Minimization Problems To minimize a linear programming problem you transpose its matrix of equations and treat it as a maximization problem. Minimize: Subject to: 7 5 8 3 2 10 4 5 25 3 2 1 10 4 5 0 25 7 5 8 0 Duals Transpose Maximize: Subject to: 3 4 7 2 5 5 1 0 8 10 25 0 10 25 3 4 7 2 5 5 8 This idea of transposing the matrices is also known as stating the dual problem. Minimization Example: Use the simplex method to solve the linear programming problem. Minimize: 4 Subject to: 2 3 115 2 8 200 50 Maximize: Subject to: 115 200 50 2 1 2 2 3 8 4 1 2 3 115 2 1 8 200 1 0 1 50 1 2 4 0 1 2 1 1 2 1 0 2 3 8 1 4 115 200 50 0 9

Minimization Example: A biologist must make a nutrient of her algae. The nutrient must contain the three basic elements D, E, and F, and must contain at least 10 kg of D, 12 kg of E, and 20 kg of F. The nutrient is made from three ingredients I, II, and III. The quantity of D, E, and F in one unit of each of the ingredients is given in the chart below. How many units of each ingredient are required to meet the biologists needs at minimum cost? Example 4.3.3 Continued What s up? Monday (10-21) Review for Test. All the cool kids will be there. Wednesday (10-23) Test 2: Chapters 3 & 4 Long problems so very few questions but with multiple parts on the test. So if you can t get past the first part you are toast!!!! Practice! I ll try to give you well-behaved problems but that does not mean fractions will not occur. 10