Variables that are unrestricted in sign LI Xiao-lei.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

Unrestricted-in-Sign Variables
Chapter 5 Sensitivity Analysis: An Applied Approach
Operation Research Chapter 3 Simplex Method.
Linear Programming – Simplex Method
SIMPLEX METHOD FOR LP LP Model.
Assignment (6) Simplex Method for solving LP problems with two variables.
Chapter 6 Linear Programming: The Simplex Method
Dr. Sana’a Wafa Al-Sayegh
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Degeneracy and the Convergence of the Simplex Algorithm LI Xiao-lei.
Lecture 15 Special cases by Dr. Arshad Zaheer
L16 LP part2 Homework Review N design variables, m equations Summary 1.
Sections 4.1 and 4.2 The Simplex Method: Solving Maximization and Minimization Problems.
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. 1 Chapter 4 The Simplex Algorithm and Goal Programming to accompany Introduction to.
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
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.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Linear Programming - Standard Form
Learning Objectives for Section 6.2
Presentation: H. Sarper
Chapter 4 Simplex Method
Chapter 6 Linear Programming: The Simplex Method
The Two-Phase Simplex Method LI Xiao-lei. Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
Duality Theory LI Xiaolei.
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
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
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.
Setting Up the Initial Simplex Tableau and Finding the Pivot Element Example 4.2 # 17 Produced by E. Gretchen Gascon.
The Simplex Method Updated 15 February Main Steps of the Simplex Method 1.Put the problem in Row-Zero Form. 2.Construct the Simplex tableau. 3.Obtain.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
The big M method LI Xiao-lei.
The Simplex Algorithm The Simplex Algorithm LI Xiao-lei.
Linear Programming – Simplex Method
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 4 The Simplex Algorithm( 單體法 ) and Goal Programming Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc.
Sensitivity analysis LI Xiao-lei. A graphical introduction to sensitivity analysis Sensitivity analysis is concerned with how changes in an LP’s parameters.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
Simplex Method for solving LP problems with two variables.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
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.
GOOD MORNING CLASS! In Operation Research Class, WE MEET AGAIN WITH A TOPIC OF :
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.
Chap 10. Sensitivity Analysis
The Two-Phase Simplex Method
Chapter 4 Linear Programming: The Simplex Method
The Simplex Method: Standard Minimization Problems
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Linear Programming SIMPLEX METHOD.
Well, just how many basic
Chapter 4 The Simplex Algorithm
Presentation transcript:

Variables that are unrestricted in sign LI Xiao-lei

Preview In solving LPs with the simplex algorithm, we used the ratio test. In solving LPs with the simplex algorithm, we used the ratio test. The ratio test depended on the fact that any feasible point required all variables to be nonnegative. The ratio test depended on the fact that any feasible point required all variables to be nonnegative. If some variables are allowed to be unrestricted in sign (urs), the ratio test and therefore the simplex algorithm are no longer valid. If some variables are allowed to be unrestricted in sign (urs), the ratio test and therefore the simplex algorithm are no longer valid.

Preview For each urs variable x i, we begin by defining two new variables x i ’ and x i ’’. Then, substitute x i ’-x i ’’ for xi in each constraint and in the objective function. Also add the sign restrictions x i ’≥ 0 and x i ’’ ≥0. since all variables are now required to be nonnegative, we can proceed with the simplex. For each urs variable x i, we begin by defining two new variables x i ’ and x i ’’. Then, substitute x i ’-x i ’’ for xi in each constraint and in the objective function. Also add the sign restrictions x i ’≥ 0 and x i ’’ ≥0. since all variables are now required to be nonnegative, we can proceed with the simplex.

Preview For any basic feasible solution, each urs variable x i must fall into one of the following three cases: Case 1 x i ’> 0 and x i ’’= 0 Case 1 x i ’> 0 and x i ’’= 0 This case occurs if a bfs has x i >0. in this case, x i = x i ’ - x i ’’ = x i ’. Thus, x i = x i ’. For example, if x i =3 in a bfs, this will be indicated by x i ’ =3 and x i ’’ =0. Case 2 x i ’= 0 and x i ’’> 0 Case 2 x i ’= 0 and x i ’’> 0 This case occurs if x i <0. Since x i = x i ’ - x i ’’, we obtain x i =- x i ’’. For example, if x i =-5 in a bfs, we will have x i ’ =0 and x i ’’ =5. then x i =0-5=-5. Case 3 x i ’= x i ’’= 0 Case 3 x i ’= x i ’’= 0 In this case, x i = 0-0=0.

Example 7 A baker has 30 oz of flour and 5 packages of yeast. Baking a loaf of bread requires 5 oz of flour and 1 package of yeast. Each loaf of bread can be sold for 30¢. The baker may purchase additional flour at 4¢/oz or sell leftover flour at the same price. Formulate and solve an LP to help the baker maximize profits (revenues-costs). A baker has 30 oz of flour and 5 packages of yeast. Baking a loaf of bread requires 5 oz of flour and 1 package of yeast. Each loaf of bread can be sold for 30¢. The baker may purchase additional flour at 4¢/oz or sell leftover flour at the same price. Formulate and solve an LP to help the baker maximize profits (revenues-costs).

Example 7 SolutionDefine x 1 = number of loaves of bread baked x 1 = number of loaves of bread baked x 2 = number of ounces by which flour supply is increased by cash transactions x 2 = number of ounces by which flour supply is increased by cash transactions Therefore, x 2 >0 means that x 2 oz of flour were purchased, and x 2 0 means that x 2 oz of flour were purchased, and x 2 <0 means that – x 2 ounces of flour were sold. x 2 =0 means no flour was bought or sold. x 1 ≥0 and x 2 is urs.

Example 7 The appropriate LP is max z =30x 1 -4x 2 max z =30x 1 -4x 2 s.t. 5x 1 ≤30+x 2 (flour constraint) s.t. 5x 1 ≤30+x 2 (flour constraint) x 1 ≤ 5 (Yeast constraint) x 1 ≤ 5 (Yeast constraint) x 1 ≥0, x 2 urs x 1 ≥0, x 2 urs since x2 is urs, we substitute x2 ’ -x2 ’’ for x2 in the objective function and constraints. max z =30x 1 -4x 2 ’ +4x 2 ’’ s.t. 5x 1 ≤30+x 2 ’ -x 2 ’’ (flour constraint) s.t. 5x 1 ≤30+x 2 ’ -x 2 ’’ (flour constraint) x 1 ≤ 5 (Yeast constraint) x 1 ≤ 5 (Yeast constraint) x 1,x 2 ’,x 2 ’’ ≥0 x 1,x 2 ’,x 2 ’’ ≥0

Example 7 Transforming the objective function to row 0 form and adding slack variables to the two constraints, we obtain the initial tableau. z x1x1x1x1 x2’x2’x2’x2’ x 2 ’’ s1s1s1s1 s2s2s2s2rhs Basic variable ratio z= s 1 =30 6 0①00015 s 2 =5 5* 2 2 Note: no matter how many pivots we make, the x 2 ’ column will always be the negative of the x 2 ’’ column.

Example 7 x 1 enters the basis in row 2. x 1 enters the basis in row 2. z x1x1x1x1 x2’x2’x2’x2’ x 2 ’’ s1s1s1s1 s2s2s2s2rhs Basic variable ratio z=150 00①1-55 s 1 =5 5* x 1 =5 None x 2 ’’ enters the basis in row 1. x 2 ’’ enters the basis in row 1.z x1x1x1x1 x2’x2’x2’x2’ x 2 ’’ s1s1s1s1 s2s2s2s2rhs Basic variable z= x 2 ‘’ = x 1 =5

Example 7 The optimal solution to the baker ’ s problem is z=170, x 1 =5, x 2 ’’ =5, x 2 ’ =0,s 1 =s 2 =0. Thus, the baker can earn a profit of 170¢ by baking 5 loaves of bread. Since x 2 =x 2 ’-x 2 ’’=0-5=-5, the baker should sell 5 oz of flour.