Lecture 3 Linear Programming: Tutorial Simplex Method

Slides:



Advertisements
Similar presentations
IEOR 4004 Midterm Review (part I)
Advertisements

Hillier and Lieberman Chapter 4.
Chapter 5: Linear Programming: The Simplex Method
Linear Programming Problem
Operation Research Chapter 3 Simplex Method.
L17 LP part3 Homework Review Multiple Solutions Degeneracy Unbounded problems Summary 1.
Linear Programming – Simplex Method
SIMPLEX METHOD FOR LP LP Model.
Assignment (6) Simplex Method for solving LP problems with two variables.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Chapter 6 Linear Programming: The Simplex Method
Dr. Sana’a Wafa Al-Sayegh
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
1 Transportation Problems Transportation is considered as a “special case” of LP Reasons? –it can be formulated using LP technique so is its solution (to.
Linear Inequalities and Linear Programming Chapter 5
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
The Simplex Method: Standard Maximization Problems
5.4 Simplex method: maximization with problem constraints of the form
Operation Research Chapter 3 Simplex Method.
Minimization by Dr. Arshad zaheer
Chapter 10: Iterative Improvement
Linear Programming (LP)
The Simplex Method.
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
Chapter 3 An Introduction to Linear Programming
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
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.
1. The Simplex Method.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
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 7 Introduction to Linear Programming
1 1 Slide © 2005 Thomson/South-Western Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization.
Solving Linear Programming Problems: The Simplex Method
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
Algebraic Simplex Active Learning – Module 4 J. René Villalobos and Gary L. Hogg Arizona State University Paul M. Griffin Georgia Institute of Technology.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Mechanical Engineering Department 1 سورة النحل (78)
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
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
Simplex Method for solving LP problems with two variables.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
Business Mathematics MTH-367 Lecture 16. Chapter 11 The Simplex and Computer Solutions Methods continued.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
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.
1 Introduction to Linear Programming Linear Programming Problem Linear Programming Problem Problem Formulation Problem Formulation A Simple Maximization.
GOOD MORNING CLASS! In Operation Research Class, WE MEET AGAIN WITH A TOPIC OF :
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
An Introduction to Linear Programming
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
SOLVING LINEAR PROGRAMMING PROBLEMS: The Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Chapter 3 The Simplex Method and Sensitivity Analysis
Well, just how many basic
Lecture 4 Part I Mohamed A. M. A..
Linear Programming Problem
Presentation transcript:

Lecture 3 Linear Programming: Tutorial Simplex Method Computer Solutions Based on Excel Based on QM software Tutorial (to p2) (to p34) (to p36) (to p37)

Simplex Method Last week, we covered on using the graphical approach in deriving solutions for LP problem Question: Can we solve all LP problems using graphical approach ? (to p3)

Answer is “NO” Why? Consider the following equation: x1+x2+x3+x4 = 4 It is extremely difficult for us to use graph to represent this equation Thus, we need another systematic approach to solve an LP problem – known as Simplex Method (to p4)

Simplex Method It is a method which applies Linear Algebra technique to determine values of decision variables of a set of equations Steps for simplex method Special/irregular cases Other cases (to p5) (to p24) (to p28) (to p1)

Steps for simplex method Convert all LP resource constraints into a standard format Step 2 Form a simplex tableau Transfer all values of step 1 into the simple tableau Determine the optimal solution for the above tableau by following the simplex method algorithm (to p6) (to p13) (to p15) (to p17) (to p4 )

Step 1 Convert LP problem into standard format! We refer standard format here as. All constraints are in a form of “equation” i.e. not equation of ≥ or ≤ Procedural steps (to p7)

Standard format Consider the following 3 types of possible equation in a LP problem: ≤ constraints Such as x1 + x2 ≤ 3 ….(e1) ≥ constraints Such as x1 + x2 ≥ 3 ….(e2) = constraints Such as x1 + x2 = 3 ….(e3) We need to change all these into a standard format as such: (to p8)

Standard format ≤ constraints ≥ constraints = constraints x1 + x2 ≤ 3 x1 + x2 + s1 = 3 ………(e1) ≥ constraints x1 + x2 ≥ 3 x1 + x2 - s2 + A2= 3 …..(e2) = constraints x1 + x2 = 3 x1 + x2 + A3 = 3 …….(e3) We will tell you why we need this format later! Where, S is slack, A is artificial variable Consider the LP problem of …… (to p9)

Sample of an LP problem maximize Z=$40x1 + 50x2 subject to 1x1 + 2x2  40 ………(e1) 4x2 + 3x2  120 ……..(e2) x1  0 ……...(e3) x2  0 ………(e4) Convert them into a standard format will be like … (We can leave e3 and e4 alone as it is an necessary constraints for LP solution!) More example…. (to p10) (to p12)

Standard format Max Z=$40x1+50x2+0s1+0s2 1x1 + 2x2 + s1 = 40 ………(e1) subject to 1x1 + 2x2 + s1 = 40 ………(e1) 4x2 + 3x2 +s2 = 120 …..(e2) x1, x2  0 The different is … (to p11)

maximize Z=$40x1 + 50x2 subject to 1x1 + 2x2  40 4x2 + 3x2  120 Z=$40x1+50x2+0s1+0s2 subject to 1x1 + 2x2 + s1 = 40 4x2 + 3x2 + s2 = 120 x1,x2  0 Original LP format Standard LP format (to p9) Extra!

More example of standard format Consider the following: M refer to very big value, -ve value here means that we don’t wish to retain it in the final solution (to p5)

Forming a simplex tableau A simple tableau is outline as follows: What are these? (to p14)

Forming a simplex tableau LP Decision variables A simple tableau is outline as follows: Cost in the obj. func. We will compute this value later It is known as marginal value we will discuss onhow to use them very soon! (to p5)

Transfer all values Max Z=$40x1+50x2+0s1+0s2 subject to These values read from s1 and s2 here (to p5) (to p16) Basic variables

Basic variables A decision variable is a basic variable in a tableau when it is the only variable that has a coefficient of value “1” in that column and that others have values “0” (to p15) S1 has value “1” in this column only!

simplex method algorithm Compute zj values Compute cj-zj values Determine the entering variable Determine the leaving variable Revise a new tableau Introducing cell that crossed by “pivot row” and “pivot column” that has only value “1” and the rest of values on that column has value “0” Repeat above steps until all cj-zi are all negative values example (to p18) (to p19) (to p20) (to p21) (to p22) (to p23) (to p5)

Compute zj values Compute by multiplying cj column values by the variable column values and summing: (to p17) Z1 is sum of multiple of these two columns

Compute cj-zj values All Cj are listed on this row (to p17)

Determine the entering variable It is referred to The variable (i.e. the column) with the largest positive cj-zj value Also known as “Pivot column” This mean, we will next introduce x2 as a basic variable In next Tableau (to p17) Max value, ie higher marginal cost contribute to the obj fuc

Determine the leaving variable Min value of ratio of quantity values by the pivot column of entering variable Also known as “Pivot row” This mean, s1 will leave as basic variable in next Tableau Min value = min (40/2, 120/3) = mins (20,40), thus pick the first value (to p17)

Revise a new tableau Note, this value is copied This row values divided by 2 New row x 3 – old row (2), note quantity must > 0 Resume z and c-j computation! (to p17)

until all cj-zi are all negative values The following is the optimal tableau, and the solution is: And s1 =0 and s2= 0 (to p17) All negative values, STOP

Irregular cases How to realize the following cases from the simplex tableau: Multiple/alternative solutions Infeasible LP problem Unbound LP problem (to p25) (to p26) (to p27) (to p4)

Multiple/alternative solutions Note: S1 is not a basic variable but has value “0” for cj-zj Alternative solution is to consider the non-basic variable that has cj-zj = 0 as the next pivot column and repeat the simplex steps (to p24)

Infeasible LP problem M value appear in final solution representing infeasible solution Infeasible means the LP problem is not properly formulated and that a feasible region cannot be identified. (to p24)

Unbound LP problem (for s1 as pivot column) Cannot identifying the Pivot row (i.e. leaving basic variable) (to p24)

Other cases Minimizing Z When a decision variable is Degeneracy either ≤ or ≥ Degeneracy (to p29) (to p30) (to p32) (to p4)

Minimizing Z The tableau of Max Z still applied but we change the last row cj-zj into zj-cj (to p28) Select this as Pivot column

either ≤ or ≥ If x1 is either ≤ or ≥, then We adopt a transformation as such: let x1 = x’1 – x’’1 And then substitute it into the LP problem, and then follow the normal procedure Example … (to p31) (to p28)

Example maximize Z=$40x1 + 50x2 subject to 1x1 + 2x2  40 Z=$40x1 + 50(x’2-x’’2) subject to 1x1 + 2(x’2-x’’2)  40 4x2 + 3(x’2-x’’2)  120 x1, x’2, x’’2  0 (to p30)

Degeneracy It refers to the nth tableau and (n+1)th tableau is the same (repeated) Two ways A tie value when selecting the pivot column A tie value when selecting the pivot row Example, Degeneracy Solution: Go back to nth tableau and select the other one tie-value variable as pivot column/row (to p33) (to p28)

Example, Degeneracy Degeneracy (to p32)

Based on Excel Then, we select Tools with “solver” Xi >= 0 We type them in an Excel file Then, we select Tools with “solver” An solution is obtained (to p35) Then, enter formulate here

Solution using Excel (to p1) How to read them?

QM software Install the QM software Loan QM software Select option of “Linear Programming” from the “Module” Then select “open” from option “file” to type in a new LP problem Following instructions of the software accordingly See software illustration! (to p1)

Tutorial Chapter 4, Edition 8th: #12, #17, #19 And from appendix A/B P3, p20, p25, p32