Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli

Slides:



Advertisements
Similar presentations
Hillier and Lieberman Chapter 4.
Advertisements

SIMPLEX METHOD FOR LP LP Model.
Chapter 6 Linear Programming: The Simplex Method
Solving Linear Programming Problems: The Simplex Method
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)
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 18, 2013.
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Linear Programming Fundamentals Convexity Definition: Line segment joining any 2 pts lies inside shape convex NOT convex.
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
Introduction to the Simplex Algorithm Active Learning – Module 3
Operation Research Chapter 3 Simplex Method.
Solving Linear Programs: The Simplex Method
Linear Programming (LP)
The Simplex Method.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 25, 2013.
LINEAR PROGRAMMING SIMPLEX METHOD.
Linear Programming - Standard Form
Learning Objectives for Section 6.2
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.
Simplex method (algebraic interpretation)
Some Key Facts About Optimal Solutions (Section 14.1) 14.2–14.16
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.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
Simplex Method Adapting to Other Forms.  Until now, we have dealt with the standard form of the Simplex method  What if the model has a non-standard.
Solving Linear Programming Problems: The Simplex Method
4  The Simplex Method: Standard Maximization Problems  The Simplex Method: Standard Minimization Problems  The Simplex Method: Nonstandard Problems.
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
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents CD Chapter 14 (Solution Concepts for Linear Programming) Some Key Facts.
1 Simplex Method (created by George Dantzig in late 1940s) A systematic way of searching for an optimal LP solution BMGT 434, Spring 2002 Instructor: Chien-Yu.
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.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
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.
Foundation of the Simplex Method.  Constraints Boundary Equations  Graphical approach is very limited based on number of variables. The simplex method.
 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.
Foundations-1 The Theory of the Simplex Method. Foundations-2 The Essence Simplex method is an algebraic procedure However, its underlying concepts are.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
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
Solving Linear Program by Simplex Method The Concept
Perturbation method, lexicographic method
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
The Two-Phase Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Chapter 5. Sensitivity Analysis
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Chapter 3 The Simplex Method and Sensitivity Analysis
The Theory of the Simplex Method Asst. Prof. Dr. Nergiz Kasımbeyli
Linear Programming SIMPLEX METHOD.
Well, just how many basic
Simplex method (algebraic interpretation)
Presentation transcript:

Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli ISE 203 OR I Chapter 4 Solving Linear Programming Problems: The Simplex Method Asst. Prof. Dr. Nergiz Kasımbeyli

The SIMPLEX Method Simplex method is an algebraic procedure However, its underlying concepts are geometric Understanding these geometric concepts helps before going into their algebraic equivalents

In this example, the point of intersection of two constraint boundaries are the corner-point solutions of the problem. For a linear programming problem with n decision variables, each corner point solution lies at the intersection point of n constraints.

The points that lie on the corners of the feasible region are the corner-point feasible (CPF) solutions or extreme points.

Edges For any LP problem with n decision variables, two extreme points are adjacent to each other if they share n-1 constraint boundaries. The two adjacent extreme points are connected by a line segment that lies on these same shared constraint boundaries. Such a line segment is referred to as an edge of the feasible region.

An edge of the feasible region

Optimality test Consider any LP problem that possesses at least one optimal solution. If a CPF solution has no adjacent CPF solutions that are better (as measured by Z), then it must be an optimal solution. (This is due to the fact that the feasible region is a convex set, we will see in Chapter 5) (2,6) must be optimal since Z=36 is greater than Z=30 for (0,6) and Z=27 for (4,3). This is the optimality test used by Simplex.

The Simplex Method in a Nutshell Initialization (Find initial CPF solution) Is the current CPF solution optimal? Yes Stop No Move to a better adjacent CPF solution

Introducing slack variables x3, x4 and x5 to convert inequalities into equalities – Convert LP to Augmented Form

Slack variables Slack variable = 0 in the current solution  This solution lies on the constraint boundary for the corresponding functional constraint.  Feasible solution, Binding constraint If slack variable ≥ 0 the solution lies on the feasible side of this constraint boundary.  Feasible solution, Nonbinding constraint If slack variable ≤ 0, the solution lies on the infeasible side of this constraint boundary.  Infeasible solution

‘Language’ of the Simplex Method

Initial Assumptions All constraints are of the form ≤ All right-hand-side values (bj, j=1, …,m) are positive We’ll learn how to address other forms later

The Augmented Form Set up the method first: Convert inequality constraints to equality constraints by adding slack variables Augmented (Standard) Form Maximize Z = 3x1+ 5x2 subject to x1 +s1 = 4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2 , s1, s2, s3 ≥ 0 Original Form Maximize Z = 3x1+ 5x2 subject to x1 ≤ 4 2x2 ≤ 12 3x1+ 2x2 ≤ 18 x1,x2 ≥ 0

Basic and Basic Feasible Solutions X2 Augmented Form Maximize Z = 3x1+ 5x2 subject to x1 +s1 = 4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 (0,9,4,-6,0) (0,6,4,0,6) (2,6,2,0,0) (4,6,0,0,-6) Augmented solution Basic infeasible solution Basic feasible solution (BFS) Nonbasic feasible solution (2,3,2,6,6) (4,3,0,6,0) (0,2,4,8,14) (0,0,4,12,18) (4,0,0,12,6) (6,0,-2,12,0) X1

Basic, Nonbasic Solutions and the Basis In an LP, number of variables > number of equations The difference is the degrees of freedom of the system e.g. in Wyndor Glass, degrees of freedom (d.f.)= 5-3=2 Can set some variables (# = d.f.) to an arbitrary value (simplex uses 0) These variables (set to 0) are called nonbasic variables The rest can be found by solving the remaining system: basis The basis: the set of basic variables If all basic variables are ≥ 0, we have a BFS Between two basic solutions, if their bases are the same except for one variable, then they are adjacent

Algebra of the Simplex Method Initialization Maximize Z = 3x1+ 5x2 subject to x1 +s1 = 4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 Find an initial basic feasible solution If possible, use the origin as the initial CPF solution Equivalent to: Choose original variables to be nonbasic (xi=0, i=1,…n) and let the slack variables be basic (sj=bj, j=1,…m))

Algebra of the Simplex Method Optimality Test Maximize Z = 3x1+ 5x2 subject to x1 +s1 = 4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 Are any adjacent BF solutions better than the current one? Rewrite Z in terms of nonbasic variables and investigate rate of improvement Current nonbasic variables: x1, x2 Corresponding Z= 0 Optimal? No. If I increase the value of one of the nonbasic variables from 0 to a positive value, the objective function will increase.

Algebra of the Simplex Method Step 1 of Iteration 1: Direction of Movement Maximize Z = 3x1+ 5x2 subject to x1 +s1 = 4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 Which edge to move on? Determine the direction of movement by selecting the entering variable (variable ‘entering’ the basis) Choose the direction of steepest ascent (increase, since maximization) x1: Rate of improvement in Z =3 x2: Rate of improvement in Z =5 Entering basic variable = x2 (pivot column)

Algebra of the Simplex Method Step 2 of Iteration 1: Where to Stop Maximize Z = 3x1+ 5x2 subject to x1 +s1 = 4 (1) 2x2 +s2 = 12 (2) 3x1+ 2x2 +s3 = 18 (3) x1,x2, s1, s2, s3 ≥ 0 How far can we go? Determine where to stop by selecting the leaving variable (variable ‘leaving’ the basis) Increasing the value of x2 decreases the value of basic variables. The minimum ratio test Constraint (1): x1 ≤ 4 no bound on x2 (s1= 4 - x1 ≥ 0) Constraint (2): 2x2+ s2= 12  x2 can be increased up to 6 before s2= 0. Min. Ratio Constraint (3): 3x1+ 2x2+s3 = 18  x2 can be increased up to 9 before s3= 0. Leaving basic variable = s2 (pivot row)

Algebra of the Simplex Method Step 3 of Iteration 1: Solving for the New BF Solution Z - 3x1- 5x2 = 0 (0) x1 +s1 = 4 (1) 2x2 +s2 = 12 (2) 3x1+ 2x2 +s3 = 18 (3) Z - 3x1+ + 5/2 s2 = 30 (0) x1 +s1 = 4 (1) x2 + 1/2 s2 = 6 (2) 3x1 - s2 + s3 = 6 (3) Convert the system of equations to a more proper form for the new BF solution Elementary algebraic operations: Gaussian elimination Eliminate the entering basic variable (x2) from all but constraint 2 (pivot row) Since x1=0 and s2=0 we obtain (x1,x2,s1,s2,s3)= (0,6,4,0,6)

Algebra of the Simplex Method Optimality Test Z - 3x1+ + 5/2 s2 = 30 (0) x1 +s1 = 4 (1) x2 + 1/2 s2 = 6 (2) 3x1 - s2 + s3 = 6 (3) Are any adjacent BF solutions better than the current one? Rewrite Z in terms of nonbasic variables and investigate rate of improvement Current nonbasic variables: x1, s2 Corresponding Z= 30 Optimal? No (increasing x1 increases Z value)

Algebra of the Simplex Method Step 1 of Iteration 2: Direction of Movement Z - 3x1+ + 5/2 s2 = 30 (0) x1 +s1 = 4 (1) x2 + 1/2 s2 = 6 (2) 3x1 - s2 + s3 = 6 (3) Which edge to move on? Determine the direction of movement by selecting the entering variable (variable ‘entering’ the basis) Choose the direction of steepest ascent x1: Rate of improvement in Z = 3 s2: Rate of improvement in Z = - 5/2 Entering basic variable = x1

Algebra of the Simplex Method Step 2 of Iteration 2: Where to Stop Z - 3x1+ + 5/2 s2 = 30 (0) x1 +s1 = 4 (1) x2 + 1/2 s2 = 6 (2) 3x1 - s2 + s3 = 6 (3) How far can we go? Determine where to stop by selecting the leaving variable (variable ‘leaving’ the basis) Increasing the value of x1 decreases the value of basic variables The minimum ratio test Constraint (1): x1 ≤ 4 Constraint (2): no upper bound on x1 Constraint (3): x1 ≤ 6/3= 2 Leaving basic variable = s3

Algebra of the Simplex Method Step 3 of Iteration 2: Solving for the New BF Solution Z - 3x1+ + 5/2 s2 = 30 (0) x1 +s1 = 4 (1) x2 + 1/2 s2 = 6 (2) 3x1 - s2 + s3 = 6 (3) Convert the system of equations to a more proper form for the new BF solution Elementary algebraic operations: Gaussian elimination Eliminate the entering basic variable (x1) from all but its equation The next BF solution is (x1,x2,s1,s2,s3)= (2,6,2,0,0)

Algebra of the Simplex Method Optimality Test Z + 3/2 s2 + s3 = 36 (0) +s1 + 1/3 s2 - 1/3 s3 = 2 (1) x2 + 1/2 s2 = 6 (2) x1 - 1/3 s2 + 1/3 s3 = 2 (3) Are any adjacent BF solutions better than the current one? Rewrite Z in terms of nonbasic variables and investigate rate of improvement Current nonbasic variables: s2, s3 Corresponding Z= 36 Optimal? yes

The Simplex Method in Tabular Form For convenience in performing the required calculations Record only the essential information of the (evolving) system of equations in tableaux Coefficients of the variables Constants on the right-hand-sides Basic variables corresponding to equations

Table 4.3

Table 4.10