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

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

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

Systems Analysis in Construction

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

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

IE 400: Principles of Engineering Management. Simplex Method Continued

AM 121: Intro to Optimization

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

MATH2070 Optimisation

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

MATH 445/545 Test 1 Spring 2016

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

Summary of the simplex method

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

Special cases of linear programming

Simplex Method for LP (II)

AM 121: Intro to Optimization Models and Methods

Linear Programming and the Simplex method

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

Simplex Algorithm Using Canonical Tableaus

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

Summary of the simplex method

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

Review Solutions, Exam 2, Operations Research

MAT016: Optimization

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

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

OPRE 6201 : 3. Special Cases

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

Linear Programming, Lecture 4

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

1 Review Session. 1.1 Lecture 2

Sensitivity Analysis

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

The Big M Method. Modify the LP

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

Farkas Lemma, Dual Simplex and 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:

February 17, Simplex Method Continued

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

The Simplex Method of Linear Programming

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

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

Chapter 3, Operations Research (OR)

Math Models of OR: Sensitivity Analysis

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

OPERATIONS RESEARCH. Linear Programming Problem

Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

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

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

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Linear programs Optimization Geoff Gordon Ryan Tibshirani

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

In Chapters 3 and 4 we introduced linear programming

Lecture 5 Simplex Method. September 2, 2009

AM 121: Intro to Optimization Models and Methods Fall 2018

TIM 206 Lecture 3: The Simplex Method

Introduction to the Simplex Algorithm Active Learning Module 3

Lesson 27 Linear Programming; The Simplex Method

Non-Standard Constraints. Setting up Phase 1 Phase 2

Week_4: simplex method II

Lecture 11 Linear programming : The Revised Simplex Method

The Simplex Algorithm and Goal Programming

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

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

Linear Programming: Model Formulation and Graphical Solution

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

Simplex method(s) for solving LPs in standard form

Chap6 Duality Theory and Sensitivity Analysis

Optimisation. 3/10/2010 Tibor Illés Optimisation

Part 1. The Review of Linear Programming

Chapter 2. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall 2-1

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

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

Chapter 4 The Simplex Algorithm Part II

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

3 The Simplex Method. 3.1 Basic Solutions

Chapter 2: Linear Programming Basics. (Bertsimas & Tsitsiklis, Chapter 1)

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)

9.1 Linear Programs in canonical form

IE 5531: Engineering Optimization I

IE 5531: Engineering Optimization I

Linear Programming: Chapter 5 Duality

The simplex algorithm

"SYMMETRIC" PRIMAL-DUAL PAIR

Civil Engineering Systems Analysis Lecture XII. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

4. Duality and Sensitivity

MATH 4211/6211 Optimization Linear Programming

The Simplex Algorithm

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

Worked Examples for Chapter 5

UNIT-4 Chapter6 Linear Programming

Lecture 2: The Simplex method

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

The Simplex Algorithm

Part 1. The Review of Linear Programming

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

Week 3: Simplex Method I

ECE 307 Techniques for Engineering Decisions

The Dual Simplex Algorithm

Transcription:

Metode Kuantitatif Bisnis Week 4 Linear Programming Simplex Method - Minimize

Outlines Solve Linear Programming Model Using Graphic Solution Solve Linear Programming Model Using Simplex Method (Maximize) Solve Linear Programming Model Using Simplex Method (Minimize)

Linear Programming Problems Standard Maximization Standard Minimization Non- Standard Objective: Maximize Objective: Minimize Objective: Max or Min Constraints: ALL with Constraints: All with Constraints: Mixed, can be, or = Standard simplex Dual Two Phase

STANDARD MINIMIZATION PROBLEM

Holiday Meal Turkey Ranch Minimize cost = 2X 1 + 3X 2 subject to 5X 1 + 10X 2 90 4X 1 + 3X 2 48 0.5 X 1 1.5 X 1, X 2 0

The Dual Minimize cost = 2X 1 + 3X 2 subject to 5X 1 + 10X 2 90 4X 1 + 3X 2 48 0.5 X 1 1.5 X 1, X 2 0 A = A T = 5 10 90 4 3 48 0.5 0 1.5 2 3 0 5 4 0.5 2 10 3 0 3 90 48 1.5 0

The Dual A T = 5 4 0.5 2 10 3 0 3 90 48 1.5 0 Maximize Z = 90Y 1 + 48Y 2 + 1.5Y 3 subject to 5Y 1 + 4Y 2 + 0.5Y 3 2 10Y 1 + 3Y 2 3 Y 1, Y 2, Y 3 0 Continue with the simplex method to solve standard maximization problems!!

Slack Variables When using the dual, slack variables are variables in the former problem formulation. Therefore, slack variables in this problem are X 1 and X 2. Constraints: 5Y 1 + 4Y 2 + 0.5Y 3 2 10Y 1 + 3Y 2 3 5Y 1 + 4Y 2 + 0.5Y 3 + X 1 2 10Y 1 + 3Y 2 + X 2 3 Z = 90Y 1 + 48Y 2 + 1.5Y 3-90Y 1-48Y 2-1.5Y 3 + Z = 0

First Simplex Tableu 5Y 1 + 4Y 2 + 0.5Y 3 + X 1 2 row 1 Basic Variable Y 1 Y 2 Y 3 X 1 X 2 Z RHS X 1 5 4 0.5 1 0 0 2 X 2 10 3 0 0 1 0 3 Z -90-48 -1.5 0 0 1 0 10Y 1 + 3Y 2 + X 2 3 row 2-90Y 1-48Y 2-1.5Y 3 + Z = 0 row 3

Simplex Tableu Pivot Number Change the pivot number to 1 and other number in the same column to 0 Basic Variable Y 1 Y 2 Y 3 X 1 X 2 Z RHS X 1 5 4 0.5 1 0 0 2 X 2 10 3 0 0 1 0 3 Z -90-48 -1.5 0 0 1 0 = 2/5 = 0.4 = 3/20 = 0.3 Most negative, therefore variable Y 1 enter the solution mix Smallest result of the ratio, therefore variable X 2 leave the solution mix

Second Simplex Tableu Basic Var. Y 1 Y 2 Y 3 X 1 X 2 Z RHS X 1 5 4 0.5 1 0 0 2 X 2 10 3 0 0 1 0 3 Z -90-48 -1.5 0 0 1 0 = Row 2 * (-5) + Row 1 = Row 2 / 10 = Row 2 * 90 + Row 3 Basic Var. Y 1 Y 2 Y 3 X 1 X 2 Z RHS X 1 0 2.5 0.5 1-1 0 0.5 Y 1 1 0.3 0 0 0.1 0 0.3 Z 0-21 -1.5 0 9 1 27 Row P still contain negative value

Second Simplex Tableu Pivot Number Change the pivot number to 1 and other number in the same column to 0 Basic Var. Y 1 Y 2 Y 3 X 1 X 2 Z RHS X 1 0 2.5 0.5 1-1 0 0.5 Y 1 1 0.3 0 0 0.1 0 0.3 Z 0-21 -1.5 0 9 1 27 0.5/2.5 = 0.2 0.3/0.3 = 1 Most negative, therefore variable Y 2 enter the solution mix Smallest result of the ratio, therefore variable X 1 leave the solution mix

Third Simplex Tableu Basic Var. Y 1 Y 2 Y 3 X 1 X 2 Z RHS X 1 0 2.5 0.5 1-1 0 0.5 Y 1 1 0.3 0 0 0.1 0 0.3 Z 0-21 -1.5 0 9 1 27 = Row 1 = Row 1 * (-1/2) + Row 2 = Row 1 * 15 + Row 3 Basic Var. Y 1 Y 2 Y 3 X 1 X 2 Z RHS Y 2 0 1 0.2 0.4-0.2 0 0.2 Y 1 1 0-0.06-0.12 0.16 0 0.24 Z 0 0 2.7 8.4 4.8 1 31.2 OPTIMAL!!

Optimal Solution Because this solution is the solution of the dual, use row Z and column X 1, X 2 as the optimal solution. Basic Var. Y 1 Y 2 Y 3 X 1 X 2 Z RHS Y 2 0 1 0.2 0.4-0.2 0 0.2 Y 1 1 0-0.06-0.12 0.16 0 0.24 Z 0 0 2.7 8.4 4.8 1 31.2 X 1 = 8.4 X 2 = 4.8 Minimal cost = 31.2

EXERCISE

M7-22 Solve the following LP problem first graphically and then by the simplex algorithm: Minimize cost = 4X 1 + 5X 2 subject to X 1 + 2X 2 80 3X 1 + X 2 75 X 1, X 2 0

NON-STANDARD LINEAR PROGRAMMING PROBLEM

The Muddy River Chemical Company Minimize cost = $5X 1 + $6X 2 subject to X 1 + X 2 = 1000 lb X 1 300 lb X 2 150 lb X 1, X 2 0

Surplus Variable Greater-than-or-equal-to ( ) constraints involve the subtraction of a surplus variable rather than the addition of a slack variable. Surplus is sometimes simply called negative slack X 2 150 X 2 S 2 = 150

Artificial Variable Artificial variables are usually added to greater-than-or-equal-to ( ) constraints to avoid violating the non-negativity constraint. When a constraint is already an equality (=), artificial variable is also used to provide an automatic initial solution

Artificial Variable Equality X 1 + X 2 = 1000 Equality X 1 + X 2 +A 1 = 1000 Greater than or equal X 2 150 Greater than or equal X 2 S 2 + A 2 = 150 Before the final simplex solution has been reached, all artificial variables must be gone from the solution mix

Two Phase Method Phase I Objective: Minimize all artificial variables Phase II Objective: LP original objective

Conversions Constraints: X 1 + X 2 = 1000 X 1 300 X 2 150 Objective function: Minimize C = 5X 1 + 6X 2 X 1 + X 2 + A 1 = 1000 X 1 + S 1 = 300 X 2 S 2 + A 2 = 150 Phase I : Minimize Z = A 1 + A 2 Phase II: Minimize C = 5X 1 + 6X 2

Converting The Objective Function In minimization problem, minimizing the cost objective is the same as maximizing the negative of the cost objective function Minimize C = 5X 1 + 6X 2 and Z = A 1 + A 2 Maximize (-C) = 5X 1 6X 2 and (-Z) = A 1 A 2

Conversions Constraints: X 1 + X 2 = 1000 X 1 300 X 2 150 Objective function: Phase I : ( Z) = A 1 A 2 Phase II: ( C) = 5X 1 6X 2 X 1 + X 2 + A 1 = 1000 X 1 + S 1 = 300 X 2 S 2 + A 2 = 150 Phase I : A 1 + A 2 Z = 0 Phase II: 5X 1 + 6X 2 C = 0

Simplex Tableu X 1 + X 2 + A 1 = 1000 row 1 X 1 + S 1 300 row 2 X2 S 2 + A 2 150 row 3 Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 1 0 0 1 0 0 0 1000 S 1 1 0 1 0 0 0 0 0 300 A 2 0 1 0-1 0 1 0 0 150 Z 0 0 0 0 1 1 (-1) 0 0 C 5 6 0 0 0 0 0 (-1) 0 A 1 + A 2 Z = 0 row 4 5X 1 + 6X 2 C = 0 row 5

Simplex Tableu A1 and A2 are supposed to be basic variable. However, in this tableu the condition is not satisfy. infeasible Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 1 0 0 1 0 0 0 1000 S 1 1 0 1 0 0 0 0 0 300 A 2 0 1 0-1 0 1 0 0 150 Z 0 0 0 0 1 1 (-1) 0 0 C 5 6 0 0 0 0 0 (-1) 0 row 1 * (-1) + row 3 * (-1) + row 4 These values need to be converted to zero (0)

Phase I: First Simplex Tableu Basic Variable condition is satisfied Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 1 0 0 1 0 0 0 1000 S 1 1 0 1 0 0 0 0 0 300 A 2 0 1 0-1 0 1 0 0 150 Z -1-2 0 1 0 0 (-1) 0-1150 C 5 6 0 0 0 0 0 (-1) 0 Continue with simplex procedure to eliminate the negative values in row Z first (Phase I)

Phase I: Second Simplex Tableu Pivot Number Change the pivot number to 1 and other number in the same column to 0 Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 1 0 0 1 0 1000/1 0 = 10000 1000 S 1 1 0 1 0 0 0 300/0 0 = ~ 0 300 A 2 0 1 0-1 0 1 150/1 0 = 1500 150 Z -1-2 0 1 0 0 (-1) 0-1150 C 5 6 0 0 0 0 0 (-1) 0 Most negative, therefore variable X 2 enter the solution mix Smallest result of the ratio, therefore variable A 2 leave the solution mix

Phase I: Second Simplex Tableu Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 1 0 0 1 = row 03 * (-1) 0 + row 10 1000 S 1 1 0 1 0 0 = row 02 0 0 300 A 2 0 1 0-1 0 = row 13 0 0 150 Z -1-2 0 1 0 = row 03 * 2 (-1) + row 4 0-1150 C 5 6 0 0 0 = row 03 * (-6) 0 + row (-1) 5 0 Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 0 0 1 1-1 0 0 850 S 1 1 0 1 0 0 0 0 0 300 X 2 0 1 0-1 0 1 0 0 150 Z -1 0 0-1 0 2 (-1) 0-850 C 5 0 0 6 0-6 0 (-1) -900 Row Z still contain negative values

Phase I: Third Simplex Tableu Pivot Number Change the pivot number to 1 and other number in the same column to 0 Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 0 0 1 1-1 850/1 0 = 8500 850 S 1 1 0 1 0 0 0 300/0 0 = ~ 0 300 X 2 0 1 0-1 0 1 0-0 150 Z -1 0 0-1 0 2 (-1) 0-850 C 5 0 0 6 0-6 0 (-1) -900 Most negative, therefore variable S 2 enter the solution mix Smallest result of the ratio, therefore variable A 1 leave the solution mix

Phase I: Third Simplex Tableu Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS A 1 1 0 0 1 1 = row -11 0 0 850 S 1 1 0 1 0 0 = row 02 0 0 300 X 2 0 1 0-1 0 = row 11 + row 0 3 0 150 Z -1 0 0-1 0 = row 21 + row (-1) 4 0-850 C 5 0 0 6 0 = row -61 * (-6) 0 + row (-1) 5-900 Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS S 2 1 0 0 1 1-1 0 0 850 S 1 1 0 1 0 0 0 0 0 300 X 2 1 1 0 0 1 0 0 0 1000 Z 0 0 0 0 1 1 (-1) 0 0 C -1 0 0 0-6 0 0 (-1) -6000 Phase I OPTIMAL!!

Phase II: First Simplex Tableu Pivot Number Change the pivot number to 1 and other number in the same column to 0 Basic Var. X 1 X 2 S 1 S 2 C RHS S 2 1 0 0 1 0 850 S 1 1 0 1 0 0 300 X 2 1 1 0 0 0 1000 C -1 0 0 0 (-1) -6000 850/1 = 850 300/1 = 300 1000/1 = 1000 Most negative, therefore variable X 1 enter the solution mix Smallest result of the ratio, therefore variable S 1 leave the solution mix

Third Simplex Tableu Basic Var. X 1 X 2 S 1 S 2 C RHS S 2 1 0 0 1 0 850 S 1 1 0 1 0 0 300 X 2 1 1 0 0 0 1000 C -1 0 0 0 (-1) -6000 = Row 2 * (-1) + row 1 = Row 2 = Row 2 * (-1) + Row 3 = Row 2 + Row 4 Basic Var. X 1 X 2 S 1 S 2 C RHS S 2 0 0-1 1 0 550 X 1 1 0 1 0 0 300 X 2 0 1-1 0 0 700 C 0 0 1 0 (-1) -5700 OPTIMAL!!

Optimal Solution Remember that the objective function was converted. Thus: Max (-C) = -5700 Min C = 5700 Basic Var. X 1 X 2 S 1 S 2 C RHS S 2 0 0-1 1 0 550 X 1 1 0 1 0 0 300 X 2 0 1-1 0 0 700 C 0 0 1 0 (-1) -5700 X 1 = 300 X 2 = 700

EXERCISE

M7-27 A Pharmaceutical firm is about to begin production of three new drugs. An objective function designed to minimize ingredients costs and three production constraints are as follows: Minimize cost = 50X 1 + 10X 2 + 75X 3 subject to X 1 X 2 = 1.000 2X 2 + 2X 3 = 2.000 X 1 1.500 X 1, X 2, X 3 0

SPECIAL CASE IN SIMPLEX METHOD

1. Infeasibility No feasible solution is possible if an artificial variable remains in the solution mix Basic Var. X 1 X 2 S 1 S 2 A 1 A 2 Z C RHS X 1 1 0-2 3-1 0 0 0 200 X 2 0 1 1 2-2 0 0 0 100 A 2 0 0 0-1 -1 1 0 0 20 Z 0 0 2 3 0 0 (-1) 0-850 C 0 0 0-31 21 0 0 (-1) -900 Phase I already optimal (no negative value)

2. Unbounded Solutions Unboundedness describes linear programs that do not have finite solutions Basic Var. X 1 X 2 S 1 S 2 P RHS X 2-1 1 2 0 0 30 S 2-2 0-1 1 0 10 P -15 0 18 0 1 270 Since both pivot column numbers are negative, an unbounded solution is indicated

3. Degeneracy Degeneracy develops when three constraints pass through a single point Basic Var. X 1 X 2 X 3 S 1 S 2 S 3 C RHS X 2 0.25 1 1-2 10/0.25 0 = 40 0 0 10 S 2 4 0 0.33-1 20/4 1 = 5 0 0 20 S 3 2 0 2 0.4 10/2 0 = 5 1 0 10 C -3 0 6 16 0 0 1 80 Tie for the smallest ratio indicates degeneracy Degeneracy could lead to a situation known as cycling, in which the simplex algorithm alternates back and forth between the same non-optimal solutions

4. More Than One Optimal Solution If the value of P (objective function s row) is equal to 0 for a variable that is not in the solution mix, more than one optimal solution exists. Basic Var. X 1 X 2 S 1 S 2 P RHS X 2 1.5 1 1 0 0 6 S 2 1 0 0.5 1 0 3 P 0 0 2 0 1 12

THANK YOU