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

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

Systems Analysis in Construction

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

Lecture 11: Post-Optimal Analysis. September 23, 2009

(includes both Phases I & II)

Special cases of linear programming

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

Farkas Lemma, Dual Simplex and Sensitivity Analysis

(includes both Phases I & II)

Math Models of OR: Sensitivity Analysis

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

Worked Examples for Chapter 5

Review Solutions, Exam 2, Operations Research

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

Week_4: simplex method II

LINEAR PROGRAMMING 2. In many business and policy making situations the following type of problem is encountered:

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

Sensitivity Analysis

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

Part 1. The Review of Linear Programming

Chap6 Duality Theory and Sensitivity Analysis

Linear Programming, Lecture 4

OPERATIONS RESEARCH. Linear Programming Problem

1 Review Session. 1.1 Lecture 2

AM 121: Intro to Optimization

Lecture 11 Linear programming : The Revised Simplex Method

Simplex Algorithm Using Canonical Tableaus

In Chapters 3 and 4 we introduced linear programming

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

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

Linear programs Optimization Geoff Gordon Ryan Tibshirani

The Dual Simplex Algorithm

Lesson 27 Linear Programming; The Simplex Method

Introduction to Mathematical Programming IE406. Lecture 10. Dr. Ted Ralphs

F 1 F 2 Daily Requirement Cost N N N

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

Lecture 5 Simplex Method. September 2, 2009

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

Simplex Method for LP (II)

9.1 Linear Programs in canonical form

Linear Programming and the Simplex method

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

"SYMMETRIC" PRIMAL-DUAL PAIR

Chapter 1 Linear Programming. Paragraph 5 Duality

OPRE 6201 : 3. Special Cases

SELECT TWO PROBLEMS (OF A POSSIBLE FOUR) FROM PART ONE, AND FOUR PROBLEMS (OF A POSSIBLE FIVE) FROM PART TWO. PART ONE: TOTAL GRAND

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

March 13, Duality 3

Understanding the Simplex algorithm. Standard Optimization Problems.

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

Summary of the simplex method

Summary of the simplex method

The Simplex Method of Linear Programming

56:270 Final Exam - May

MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis

Math Models of OR: Handling Upper Bounds in Simplex

THE STEPS OF THE SIMPLEX ALGORITHM

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

1 Simplex and Matrices

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

Lecture 14 Transportation Algorithm. October 9, 2009

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)

CPS 616 ITERATIVE IMPROVEMENTS 10-1

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

UNIT-4 Chapter6 Linear Programming

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

Introduction to Mathematical Programming IE406. Lecture 13. Dr. Ted Ralphs

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

min3x 1 + 4x 2 + 5x 3 2x 1 + 2x 2 + x 3 6 x 1 + 2x 2 + 3x 3 5 x 1, x 2, x 3 0.

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

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

Relation of Pure Minimum Cost Flow Model to Linear Programming

Dr. Maddah ENMG 500 Engineering Management I 10/21/07


Foundations of Operations Research

Distributed Real-Time Control Systems. Lecture Distributed Control Linear Programming

MATH 445/545 Test 1 Spring 2016

MATH2070 Optimisation

3. THE SIMPLEX ALGORITHM

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

April 2003 Mathematics 340 Name Page 2 of 12 pages

Sensitivity Analysis and Duality in LP

AM 121: Intro to Optimization Models and Methods

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

4. Duality and Sensitivity

Answer the following questions: Q1: Choose the correct answer ( 20 Points ):

Non-Standard Constraints. Setting up Phase 1 Phase 2

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

A Review of Linear Programming

IE 400: Principles of Engineering Management. Simplex Method Continued

The dual simplex method with bounds

Math Models of OR: Some Definitions

4.6 Linear Programming duality

The Big M Method. Modify the LP

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

CSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1

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

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

...(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:

February 17, Simplex Method Continued

Transcription:

Simplex Method

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

Standard Form Max Z= 3x 1 +4x 2 +5X 3 + 0S 1 + 0S 2 +0S 3 Subject to: X 1 + X 2 + X 3 +S 1 = 20 Slack Variables 3x 1 + 4x 2 + X 3 +S 2 = 15 2X 1 + X 2 +4X 3 +S 3 = 10 X 1 0, X 2 0, X 3 0 S 1 0, S 2 0, S 3 0

Surplus Variables Minimize Z = 2X +3Y +4V Subject to 5X + 2Y +4V 12000 4X + 5Y + 6Z 24000 3X + 5Y + 4V 18000 X 0, Y 0, V 0 Standard Form Minimize Z = 2X + 3Y + 4V + 0S 1 +0S 2 + 0S 3 Subject to: 5X + 2Y +4V - S 1 = 12000 4X + 5Y + 6Z -S 2 = 24000 3X + 5Y + 4V -S 3 = 18000 X 0, Y 0, V 0, S 1 0, S 2 0, S 3 0, (S j = Surplus variables)

Slack Variables and Surplus Variables Max Z = 2X +3Y +4V Subject to 5X + 2Y +4V 12000 4X + 5Y + 6Z 24000 3X + 5Y + 4V 18000 X 0, Y 0, V 0 Standard Form Max Z = 2X + 3Y + 4V + 0S 1 +0S 2 + 0S 3 Subject to: 5X + 2Y +4V - S 1 = 12000 4X + 5Y + 6Z +S 2 = 24000 3X + 5Y + 4V -S 3 = 18000 X 0, Y 0, V 0, S 1 0, S 2 0, S 3 0, (S 1, S 3 = Surplus variables and S 2 = Slack Variable)

Problem I Maximize Z = 2X +3Y +4V Subject to 5X + 2Y +4V 12000 4X + 5Y + 6V 24000 3X + 5Y + 4V 18000 X 0, Y 0, V 0 Standard Form Maximize Z = 2X +3Y +4V +0S 1 +0S 2 +0S 3 5X + 2Y + 4V + S 1 = 12000 4X + 5Y + 6V +S 2 = 24000 3X + 5Y + 4V +S 3 =18000 X 0, Y 0, V 0, S 1 0, S 2 0, S 3 0 (S j =Slack variables)

Initial Solution Basic variable Cj x y V s1 s2 s3 2 3 4 0 0 0 R.H.S S1 0 S2 0 S3 0 5 2 4 1 0 0 4 5 6 0 1 0 3 5 4 0 0 1 12000 24000 18000 Zj Cj-Zj 0 0 0 0 0 0 0 2 3 4 0 0 0

Basic variable Cj S1 0 Initial Solution x y V s1 s2 s3 2 3 4 0 0 0 5 2 4 1 0 0 Pivot element R.H.S. 12000 S2 0 4 5 6 0 1 0 24000 S3 0 Zj 3 5 4 0 0 1 0 0 0 0 0 0 18000 0 Cj-Zj 2 3 4 0 0 0 Pivot column Pivot row

First Iteration X Y V S1 S2 S3 RHS 2 3 4 0 0 0 V 4 S2 0 5/4 1/2 1 1/4 0 0-7/2 2 0-3/2 1 0 3000 6000 S3 0 Zj Cj-zj -2 3 0-1 0 1 6000 5 2 4 1 0 0 12000-3 1 0-1 0 0

Second iteration V 4 19/12 0 1 5/12 0-1/6 2000 S2 0 Y 3-13/6 0 0-5/6 1-2/3 2000-2/3 1 0-1/3 0 1/3 2000 Zj Cj-zj 13/3 3 4 2/3 0 1/3 14000-7/3 0 0-2/3 0-1/3

Results Optimal Solution X = 0 S 1 = 0 Y = 2000 S 2 = 2000 V= 2000 S 3 = 0 Optimum value for Objective Function = 14000

Minimization Problem

Minimize Z= 22X 1 +15X 2 +9X 3 Subject to: 4X 1 + X 2 +2X 3 1 6X 1 +5X 2 + X 3 1 X 1,X 2,X 3 0 Step 1: Convert the LP model into standard form by subtracting surplus variables from the left hand side.

Minimize Z= 22X 1 +15X 2 +9X 3 +0S 1 +0S 2 Subject to: 4X 1 + X 2 +2X 3 - S 1 =1 6X 1 +5X 2 + X 3 - S 2 =1 X 1,X 2,X 3, S 1,S 2 0 Suppose we let the surplus variable s be the basic variable for the above equations. With X 1,X 2,and X 3 initially nonbasic, X 1 =X 2 =X 3 =0 4(0) + (0) +2(0) - S 1 =1 S 1 = -1 Which would give us a negative basic variable violating the non negativity requirement S 1 0

To resolve this, introduce an artificial variable into the equation as follows. 4X 1 + X 2 +2X 3 - S 1 + a 1 =1 6X 1 +5X 2 + X 3 - S 2 + a 2 =1 Initially let artificial variables a 1 and a 2 be basic variables and X 1 =X 2 =X 3 =S 1 =S 2 =0 be non basic. So a 1 =1 and a 2 =1 in the initial Simplex table.

In order to ensure that the artificial variable is eventually driven to 0, we Penalize it b setting its coefficient in the objective function equal to a very negative number in the case of maximization; or to a very large positive number in the case of minimization. Let M denote a very large positive number, and use either M or +M as the objective function coefficient of an artificial variable.

Step 2: Establish an initial feasible solution and calculate Z j and C j - Z j values. Step 3: Is the current solution optimal? Rule: Examine the C j - Z j row. Maximization problem: If all the entries of C j - Z j row are less than or equal to 0, the current solution is optimal. Minimization problem: If all the entries of C j - Z j row are greater than or equal to 0, the current solution is optimal. If not, continue on to step 4.

Step 4: Determine the Pivot Column and Pivot Row. Determining Pivot column Maximization problem: The non basic variable that has the largest C j - Z j value is the entering variable. The column of the simplex table corresponding to the entering variable is called Pivot column. Minimization problem: Choose the non basic variable having the most negative C j - Z j value as the entering variable. Determining Pivot row To determine the leaving variable, first devide ech positive entry of the pivot column into the corresponding entry of the right-hand-side column. The row variable corresponding to the minimum atio is the leaving variable.

Step 5: The intersection o the pivot row and pivot column is the Pivot element. Do the process until you get the optimal feasible solution.

Minimize Z= 22X 1 +15X 2 +9X 3 Subject to: 4X 1 + X 2 +2X 3 1 6X 1 +5X 2 + X 3 1 X 1,X 2,X 3 0 Minimize Z= 22X 1 +15X 2 +9X 3 +0 S 1 +0 S 2 +Ma 1 +Ma 2 Subject to: 4X 1 + X 2 +2X 3 - S 1 + a 1 =1 6X 1 +5X 2 + X 3 - S 2 + a 2 =1 X 1,X 2,X 3, S 1,S 2, a 1, a 2 0

X 1 X 2 X 3 S 1 S 2 a 1 a 2 Basis C j 22 15 9 0 0 M M R.H.S. a 1 a 2 M M 4 1 2-1 0 1 0 6 5 1 0-1 0 1 1 1 Z j 10M 6M 3M -M -M M M C j - Z j 22-10M 15-6M 9-3M M M 0 0 2M a 1 M X 1 22 0-7/3 4/3-1 2/3 1 1 5/6 1/6 0-1/6 0 Z j 22 55/3-7/3M 11/3+4/3M -M -11/3+2/3M M C j - Z j 0-10/3+7/3M 16/3-4/3M M 11/3-2/3M 0 1/3 1/6 M/3+11 /3

Basis C j X 1 X 2 X 3 S 1 S 2 a 1 a 2 22 15 9 0 0 M M R.H.S. a 1 M X 1 22 0-7/3 4/3-1 2/3 1 1 5/6 1/6 0-1/6 0 Z j 22 55/3-7/3M 11/3+4/3M -M -11/3+2/3M M C j - Z j 0-10/3+7/3M 16/3-4/3M M 11/3-2/3M 0 1/3 1/6 M/3+11 /3 X 3 9 X 1 22 0-7/3 1-3/4 ½ 1 9/8 0 1/8-1/4 ¼ 1/8 Z j 22 9 9-4 -1 C j - Z j 0 6 0 4 1 5

Surplus Variable and Artificial Variable Max Z = 2X +3Y +4V Subject to 5X + 2Y +4V 12000 4X + 5Y + 6Z 24000 3X + 5Y + 4V 18000 X 0, Y 0, V 0 Standard Form Max Z = 2X + 3Y + 4V + 0S 1 +0S 2 + 0S 3 - Ma 1 - Ma 2 - Ma 3 Subject to: 5X + 2Y +4V - S 1 + a 1 = 12000 4X + 5Y + 6Z -S 2 + a 2 = 24000 3X + 5Y + 4V -S 3 + a 3 = 18000 X 0, Y 0, V 0, S 1 0, S 2 0, S 3 0, a 1 0, a 2 0, a 3 0 (S j = Surplus variables, a j = Artificial variables)

The Dual Linear Programming The number of variables of the dual equals the number of constraints of the Primal. The right-hand-side values of the primal become the coefficients of the objective function of the dual. The columns of the primal become the rows of the dual; the objective function coefficients of the primal become the right-hand-side values of the dual. The objective of maximizing is changed to minimizing.

The values of the dual variables equal the shadow prices of the primal. The shadow prices of the dual equal the values of the basic variables of the primal. Z for the dual equals to the Z for the primal.