Chapter 4 Simplex Method

Slides:



Advertisements
Similar presentations
Operation Research Chapter 3 Simplex Method.
Advertisements

Chapter 6 Linear Programming: The Simplex Method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Dr. Sana’a Wafa Al-Sayegh
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Sections 4.1 and 4.2 The Simplex Method: Solving Maximization and Minimization Problems.
LINEAR PROGRAMMING SIMPLEX METHOD
1. The Simplex Method for Problems in Standard Form 1.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Chapter 6 Linear Programming: The Simplex Method
Linear Inequalities and Linear Programming Chapter 5
Chapter 7 LINEAR PROGRAMMING.
The Simplex Method: Standard Maximization Problems
5.4 Simplex method: maximization with problem constraints of the form
Operation Research Chapter 3 Simplex Method.
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.
Linear Programming (LP)
The Simplex Method.
5.6 Maximization and Minimization with Mixed Problem Constraints
Chapter 4 The Simplex Method
6  Graphing Systems of Linear Inequalities in Two Variables  Linear Programming Problems  Graphical Solutions of Linear Programming Problems  The Simplex.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
LINEAR PROGRAMMING SIMPLEX METHOD.
Linear Programming - Standard Form
Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,
Learning Objectives for Section 6.2
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
Chapter 6 Linear Programming: The Simplex Method
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Chapter 6 Linear Programming: The Simplex Method Section R Review.
Solving Linear Programming Problems: The Simplex Method
The Simplex Algorithm The Simplex Algorithm LI Xiao-lei.
Systems of Equations and Inequalities Systems of Linear Equations: Substitution and Elimination Matrices Determinants Systems of Non-linear Equations Systems.
4  The Simplex Method: Standard Maximization Problems  The Simplex Method: Standard Minimization Problems  The Simplex Method: Nonstandard Problems.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ 5.5 Dual problem: minimization.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
 LP graphical solution is always associated with a corner point of the solution space.  The transition from the geometric corner point solution to the.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
Business Mathematics MTH-367 Lecture 14. Last Lecture Summary: Finished Sec and Sec.10.3 Alternative Optimal Solutions No Feasible Solution and.
1 LP-3 Symplex Method. 2  When decision variables are more than 2, it is always advisable to use Simplex Method to avoid lengthy graphical procedure.
1 Simplex algorithm. 2 The Aim of Linear Programming A Linear Programming model seeks to maximize or minimize a linear function, subject to a set of linear.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
Chapter 4 The Simplex Algorithm and Goal Programming
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
LINEAR PROGRAMMING.
Perturbation method, lexicographic method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Linear programming Simplex method.
Chapter 4 Linear Programming: The Simplex Method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear programming Simplex method.
Copyright © 2019 Pearson Education, Inc.
Chapter 4 The Simplex Algorithm
Presentation transcript:

Chapter 4 Simplex Method Section 4.1 Setting Up the Simplex Method Section 4.2 The Simplex Method Section 4.3 The Standard Minimum Problem Section 4.4 Mixed Constraints Section 4.5 Multiple Solutions, Unbounded Solutions, and No Solutions Section 4.6 What’s Happening in the Simplex Method? (Optional) Section 4.7 Sensitivity Analysis

4.1 Setting up the Simplex Tableau In chapter 4 we are going to study an _________ technique that applies to all linear programming problems. The technique is called the _________ Method. Basically it involves _____________ the constraints so we have a system of linear ____________ and then using augmented matrices to find specific solutions to the system of equations.

Standard Maximum Problem The objection function is to be _______________. Each constraint is written using the ___ inequality (_____________ the nonnegative conditions). The constants in the constraints to the right of < are ___________ negative. The variables are restricted to _____________ values (nonnegative conditions).

Example Maximize the objection function z = 4x1 + 12x2 subject to the constraints and the nonnegative conditions x1 > 0 and x2 > 0. This problem has the properties of a standard maximum problem. The objection function is to be maximized. Each constraint is written using the < inequality (excluding the nonnegative conditions). The constants in the constraints to the right of < are never negative (180, 100, and 40 in the example). The variables are restricted to nonnegative values (nonnegative conditions).

Geometric Form A graph of the __________________ is useful in seeing the steps of the simplex method. In the geometric approach, we examine the ____________ of the feasible region for _____________ values. A corner point occurs at the ___________________ of a pair of boundary lines. Not all pairs of boundary lines intersect at a corner point. The point must lie within the feasible region.

Example Graph the feasible region for the following problem: Maximize the objection function z = 4x1 + 12x2 subject to the constraints and the nonnegative conditions x1 > 0 and x2 > 0. The boundaries for the feasible region are formed by the lines

Slack Variables The equations for the boundary lines give only point on the boundaries. In order to represent points in the interior of the feasible region some new variables are introduced, called slack variables. Slack variables allow us to view the problem as a system of equations. The first step in the simplex method converts the constraints to a linear equation. This is accomplished by introducing one slack variable for each constraint, usually denoted by si. (40,60) s1 = 0, s2 = –6 (52,24) s1 = 0, s2 = 0 (10,45) s1 = 105 s2 = 0 (10,20) s1 = 130 s2 = 50 Consider

Example Write a system of equations using slack variables which includes the objection function z = 20x1 + 35x2 + 40x3 subject to the constraints SOLUTION Since we want to find the value of z that comes from the solution to the system we ____________ the objective function. Its form needs to have all terms on the ____________________.

Simplex Tableau The simplex method uses matrices and row operations on matrices to determine an optimal solution. The matrix used is called the simplex tableau. Setting up a simplex tableau is illustrated using a previous example. EXAMPLE Maximize the objection function z = 4x1 + 12x2 subject to the constraints First, write the problem as a system of equations using _________ __________ and then form the augmented matrix of the system.

Example continued The system of equations is The augmented matrix of this system is This is the simplex tableau.

Simplex Tableau Find the maximum value of the objective function z = 10x + 15y subject to the constraints This problem has the properties of a standard maximum problem. The objection function is to be ________________. Each constraint is written using the _____ inequality (excluding the nonnegative conditions). The constants in the constraints to the right of < are ________ negative (180, 100, and 40 in the example). The variables are restricted to _______________ values (nonnegative conditions).

Simplex Tableau Find the maximum value of the objective function z = 10x + 15y subject to the constraints

Your Turn Set up the simplex tableau for the following standard maximum problem

Elementary Row Operations Operations that can be performed without altering the solution set of a linear system 1. Interchange any two rows 2. Multiply every element in a row by a nonzero constant 3. Add elements of one row to corresponding elements of another row ERO’s

Elementary Row Operations Rowswap(Matrix, Row A, Row B) Switches Row A and Row B Row+(Matrix, Row A, Row B) Adds Row A to Row B and replaces Row B *Row(Value, Matrix, Row) Multiplies Row by value and replaces the row *Row+(Value, Matrix, Row A, Row B) Multiplies Row a by the value, adds the result to Row B, and replaces Row B

HW 4.1 Pg 257-260 1-25

Section 4.2 Basic Method If a linear programming problem has k x’s in the constraints, then a basic solution is obtained by setting k variables (except z) to zero and solving for the others. Consider the simplex tableau A basic solution can be found by setting any two variables to zero and solving for the others.

Basic Feasible Solution Call the number of x variables in a linear programming problem k. A ______________ of the system of equations is a solution with k variables (except z) set to zero and with none of the slack variables or x’s negative. The variables set to zero are called ___________ variables. The others are called __________ variables. Correctly carried out, the simplex method finds only basic ____________ solutions that are corner points of the feasible region.

Summary Basic and Nonbasic Variables A linear programming problem with n constraints using k variables is converted into a system of equations by including a slack variable for each constraint. A system of n constraints in k variables converts to a system of n equations in _________ variables. The ____________ variables are classified as either basic or nonbasic variables. There is a basic variable for each equation, __ basic variables. The other __ variables are nonbasic. The value of the basic variables are found by setting all nonbasic variables to ______ in each of the equations and then solving for basic variables.

Example Use the simplex method to maximize z = 2x1 + 3x2 + 2x3, subject to

For reference: Example continued Since there are three x’s, all basic solutions have three variables set to zero. Using the initial tableau, the initial basic feasible solution would be ______________________________________ However, since there are negative entries in the last row, this solution is not optimal. Now, find the pivot element

For reference: Example continued Using the pivot element, perform the following row operations to obtain the next tableau.

Example continued

Example continued The new tableau is The basic feasible solution from the tableau is Since there are ______________ entries in the last row, ___________ is a ____________.

Summary – Simplex Method Standard Maximization Problem Convert the problem to a system of equations: Convert each inequality to an equation by adding a slack variable. Write the objective function z = ax1 + bx2 + … + kxn as –ax1 – bx2 – … – kxn + z = 0. Form the initial simplex tableau from the equations. Locate the pivot element of the tableau: Locate the most negative entry in the bottom row. It is in the pivot column. If there is a tie for most negative, choose either. Divide each entry in the last column (above the line) by the corresponding entry in the pivot column. Choose the smallest positive ratio. It is in the pivot row. In case of a tie for pivot row, choose either. The element where the pivot column and pivot row intersect is the pivot element.

Summary continued Modify the simplex tableau by using row operations to obtain a new basic feasible solution. Divide each entry in the pivot row by the pivot element to obtain a 1 in the pivot position. Use the pivot row and row operations to obtain zeros in the other entries of the pivot column. Determine whether z has reached its maximum. If there is a negative entry in the last row of the tableau, z is not maximum. Repeat the process in steps 3 and 4. If the bottom row contains no negative entries, z is maximum and the solution is available from the final tableau.

Summary continued Determine the solution from the final tableau. Set k variables to zero, where k is the number of x’s used in the constraints. These are the nonbasic variables. They correspond to the columns that contain more than one nonzero entry. Determine the values of the basic variables. These basic variables correspond to unit columns.

Example

A large agricultural program has 250 acres and $8000 available for cultivation of three crops: barley, oats, and wheat. Barley requires $10 per acre of cultivation and oats requires $15 per acre of cultivation and wheat requires $12 per acre of cultivation. Barley requires 7 hours of labor per acre, oats require 9 hours of labor per acre, and wheat requires 8 hours of labor per acre. The firm has 2100 hours of labor available. The profits per acre of each crop are: barley $60, oats $75, wheat $70. How many acres of each crop should be planted to maximize profit?

A stereo store sells three brands of stereo systems, brands A, B, and C. It can sell a total of 100 stereo systems per month. Brands A, B, and C take up, respectively, 5, 4, and 4 cubic feet of warehouse space, and a maximum of 480 cubic feet of warehouse space is available. Brands A, B and C generate sales commissions of $40, $20, and $30, respectively, and $3200 is available to pay sales commissions. The profit generated from the sale of each brand is $70, $210, and $140, respectively. How many of each brand of stereo system should be sold to maximize the profit?

The XYZ Corporation plans to open three different types of fast food restaurants. Type A restaurants require an initial cash outlay of $600,000, need 15 employees, and are expected to make an annual profit of $30,000. Type B restaurants require an initial cash outlay of $400,000, need 9 employees, and are expected to make an annual profit of $30,000. Type C restaurants require an initial cash outlay of $300,000, need 5 employees, and are expected to make an annual profit of $25,000. The XYZ Corporation has $48,000,000 available for initial outlays, does not want to hire more than 1000 new employees, and would like to open at most 70 restaurants. How many restaurants of each type should be opened to maximize the expected profit? Ilove you

HW 4.2 Pg 275-278 1-20, 21-35 odd, 37, 43, 45

4.3 The Standard Minimum Duality

Dietary Requirements A certain diet requires at least 60 units of carbohydrates, 45 units of protein, and 30 units of fat each day. Each ounce of Supplement A provides 5 units of carbohydrates, 3 units of protein, and 4 units of fat. Each ounce of Supplement B provides 2 units of carbohydrates, 2 units of protein, and 1 unit of fat. If Supplement A costs $1.50 per ounce and Supplement B costs $1.00 per ounce, how many ounces of each supplement should be taken daily to minimize the cost of the diet?

HW 4.3 Pg 289-291 13-23

4.4 Mixed Constraints

Standard Max?

Minimizing a Function

Minimizing a Function

Your Turn

Standard Max?

Mixed Constraints The simplex method assumes all constraints are of the form a1x1 + a2x2 + … + anxn ______ b Realistically this is _____________ true. The simplex method can still be used if we modify these mixed constraints. We modify a _____ constraint by multiplying through by –1, which reverses the sign, giving a _______ constraint. We modify an = constraint by replacing it with two constraints, a _____ and a ______ constraint. This can be done because the statement c = d is equivalent to c > d and c < d.

Guidelines Modification of > and = Constraints For the simplex method: Replace a1x1 + a2x2 + … + anxn > b with –a1x1 – a2x2 – … – anxn < –b Replace a1x1 + a2x2 + … + anxn = b with a1x1 + a2x2 + … + anxn < b and a1x1 + a2x2 + … + anxn > b which in turn should be written a1x1 + a2x2 + … + anxn < b and –a1x1 – a2x2 – … – anxn < –b

Example Modify the following problem and set up the initial simplex tableau. Maximize z = 8x1 + 2x2 + 6x3, subject to

Summary Simplex Method for Problems with Mixed Constraints For minimization problems, maximize w = –z. (> constraint) For each constraint of the form a1x1 + a2x2 + … + anxn > b multiply the inequality by –1 to obtain –a1x1 – a2x2 – … – anxn < –b (= constraint) Replace each constraint of the form a1x1 + a2x2 + … + anxn = b with a1x1 + a2x2 + … + anxn < b and a1x1 + a2x2 + … + anxn > b The latter is written –a1x1 – a2x2 – … – anxn < –b Form the initial simplex tableau.

Summary continued If no negative entry appears in the last column of the initial tableau, proceed to Phase II, otherwise, proceed to Phase I. (Phase I) If there is a negative entry in the last column, change it to a positive entry by pivoting in the following manner. (Ignore a negative entry in the objective function [last row] for this step.) The pivot row is the row containing the negative entry in the last column. Select a negative entry in the pivot row that is to the left of the last column. The most negative entry is often a good choice. This entry is the pivot element. Reduce the pivot element to 1 and the other entries of the pivot column to 0 using row operations.

Summary continued Repeat the parts of step 6 as long as a negative entry occurs in the last column. When no negative entries remain in the last column (except possibly in the last row), proceed to Phase II. (Phase II) The basic solution to the tableau is now feasible. Use the standard simplex procedure to obtain the optimal solution.

Your Turn

HW 4.4 Pg 305-308 1-49 odd

Multiple Solutions No Solution 4.5 Multiple Solutions No Solution

Your Turn Maximize z = 18x + 24y, subject to

Multiple Solutions Section 4.5 To determine whether a problem has more than one optimal solution: Find an optimal solution by the usual simplex method. Look at zeros in the bottom row of the final tableau. If a zero appears in the bottom row of a column for a nonbasic variable, there might be other optimal solutions. To find another optimal solution, if any, use the column of a nonbasic variable with a zero at the bottom as the pivot column. Find the pivot row in the usual manner, and then pivot on the pivot element. If this new tableau gives the same optimal value of z at another point, then multiple solutions exist. Given the two optimal solutions, all points on the line segment joining them are also optimal solutions.

Your Turn Maximize z = x1 + 4x2, subject to Unbounded = No Max

Unbounded Solutions When you arrive at a simplex tableau that has no positive entries in the pivot column, the feasible region is unbounded and the objective function is unbounded. There is no maximum value and thus no solution.

Example continued Checking the pivot row we find that all ratios are ___________. When this occurs, there is no _________. Since the feasible region is unbounded, a maximum value does not exist.

Your Turn Maximize z = 8x1 + 24x2, subject to

No Feasible Solution When a simplex tableau has a negative entry in the last column and no other entries in that row are negative, then there is no feasible solution to the problem.

Example continued Since x1, s1, and s2 cannot be negative, there are no values that can be used on the left-hand side that will give a negative number. Therefore, __________________________________.

Summary 3 New Situations Multiple Solutions No Solution – Unbounded No Solution – No feasible region

Summary Multiple Solutions

Summary No Solution – Unbounded

Summary No Solution – No feasible region

HW 4.5 Pg 316-318 1-33

What’s happening

Convert to Equations

Setting slack variables to 0 gives the boundary lines of the feasible region

Initial Tableau Basic Solution

Need to pick pivot

Need to pick pivot

HW 4.6 Pg 324-325 1-10

Sensitivity Analysis Changes in the Objective Function How does a change in the data affect the optimal solution? EXAMPLE The problem to maximize z = 16x + 24y, subject to has the solution Maximum is z = 416 at (8,12) How much change can occur in a device profit, and the point (8,12) still yields the maximum profit?

Example continued SOLUTION Use the slopes of the boundary lines 5x + 4y = 88 and x + 2y = 32 and the slope of an arbitrary objective function, z = Ax + By, to find the answer. The objective function with slope –A/B through (8,12) must lie between the lines 5x + 4y = 88 (slope = –5/4) and x + 2y = 32 (slope = –1/2). Thus, the slope of the objective function must lie between the slopes of the boundary lines, Thus, device profits with a ratio between 0.5 and 1.25 will yield a maximum total profit at (8,12). Ex. Device profits of A = 18 and B = 24 gives A/B = 18/24 = 0.75 which has a total maximum profit at (8,12).

A feasible region is defined by 3x + 4y ≤ 39 7x + 2y ≤ 47 x≥0, y≥0 Determine which of the following objective functions have their maximum value at the intersection of 3x + 4y = 39 and 7x + 2y = 47 A) z = 9x + 3y B) z = 2x + 8y C) z = 10x + 9y

The figure shows the feasible region determined by 4x + 5y ≤ 182 7x + 2y ≤ 170 x≥0, y≥0 Find the value of A and B so that the objective function z = Ax + BY has it maximum at (18, 22)

A linear programming problem seeks to maximize z = Ax + By, subject to 9x + 5y ≤ 85 25x + 6y ≤ 150 x≥0, y≥0 Find the range of slopes of the objective function so that the maximum z occurs at (0, 17)

A linear programming problem seeks to maximize z = Ax + By, subject to 5x + 2y ≤ 240 2x + 3y ≤ 140 x≥0, y≥0 Find the range of slopes of the objective function so that the maximum z occurs at (48, 0)

HW 4.7 Pg 334-335 1-13