1 Chapter 7 Linear Programming. 2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured.

Slides:



Advertisements
Similar presentations
Linear Programming (LP) (Chap.29)
Advertisements

Notes 4IE 3121 Why Sensitivity Analysis So far: find an optimium solution given certain constant parameters (costs, demand, etc) How well do we know these.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear Programming: Simplex Method and Sensitivity Analysis
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Operation Research Chapter 3 Simplex Method.
Duality Dual problem Duality Theorem Complementary Slackness
Chapter 10: Iterative Improvement
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.
1 Real-Time Optimization (RTO) In previous chapters we have emphasized control system performance for disturbance and set-point changes. Now we will be.
Chapter 4 The Simplex Method
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Linear-Programming Applications
LINEAR PROGRAMMING SIMPLEX METHOD.
Chapter 19 Linear Programming McGraw-Hill/Irwin
1. The Simplex Method.
Linear Programming Chapter 13 Supplement.
Real-Time Optimization (RTO) In previous chapters we have emphasized control system performance for load and set-point changes. Now we will be concerned.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. 6S Linear Programming.
STDM - Linear Programming 1 By Isuru Manawadu B.Sc in Accounting Sp. (USJP), ACA, AFM
This presentation shows how the tableau method is used to solve a simple linear programming problem in two variables: Maximising subject to two  constraints.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
Chapter 6 Supplement Linear Programming.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
A model consisting of linear relationships representing a firm’s objective and resource constraints Linear Programming (LP) LP is a mathematical modeling.
1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must.
Chapter 6 Simplex-Based Sensitivity Analysis and Duality
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
4  The Simplex Method: Standard Maximization Problems  The Simplex Method: Standard Minimization Problems  The Simplex Method: Nonstandard Problems.
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
1 1 Slide © 2005 Thomson/South-Western Simplex-Based Sensitivity Analysis and Duality n Sensitivity Analysis with the Simplex Tableau n Duality.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
Part 3 Linear Programming 3.3 Theoretical Analysis.
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.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
1 LP-3 Symplex Method. 2  When decision variables are more than 2, it is always advisable to use Simplex Method to avoid lengthy graphical procedure.
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.
6s-1Linear Programming William J. Stevenson Operations Management 8 th edition.
Chapter 4 The Simplex Algorithm and Goal Programming
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
Chapter 3: Sensitivity Analysis and the Dual Problem & Shadow Prices
Linear Programming for Solving the DSS Problems
Linear Programming.
LINEAR PROGRAMMING.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Chap 10. Sensitivity Analysis
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
MBA 651 Quantitative Methods for Decision Making
Chapter 5 Sensitivity Analysis: An Applied Approach
Chapter 5 Simplex-Based Sensitivity Analysis and Duality
Linear Programming Prof. Sweta Shah.
Chap 9. General LP problems: Duality and Infeasibility
Chapter 5. Sensitivity Analysis
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Chapter 3 The Simplex Method and Sensitivity Analysis
Duality Theory and Sensitivity Analysis
Basic Linear Programming Concepts
St. Edward’s University
Linear Programming SIMPLEX METHOD.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear Programming I: Simplex method
Lecture 4 Part I Mohamed A. M. A..
Chapter 10: Iterative Improvement
Presentation transcript:

1 Chapter 7 Linear Programming

2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured and can be rapidly obtained. Linear Programming (LP) Has gained widespread industrial acceptance since the 1950s for on-line optimization, blending etc. Linear constraints can arise due to: 1. Production limitation e.g. equipment limitations, storage limits, market constraints. 2. Raw material limitation 3. Safety restrictions, e.g. allowable operating ranges for temperature and pressures. 4. Physical property specifications e.g. product quality constraints when a blend property can be calculated as an average of pure component properties: Chapter 7

3 5. Material and Energy Balances - Tend to yield equality constraints. - Constraints can change frequently, e.g. daily or hourly. Effect of Inequality Constraints - Consider the linear and quadratic objective functions on the next page. - Note that for the LP problem, the optimum must lie on one or more constraints. Generic Statement of the LP Problem: subject to: Solution of LP Problems - Simplex Method (Dantzig, 1947) - Examine only constraint boundaries - Very efficient, even for large problems Chapter 7

4 FigureThe effect of an inequality constraint on the maximum of quadratic function, f(x) = a 0 +a 1 x + a 2 x 2. The arrows indicate the allowable values of x. Chapter 7

5

6 x1x1 x3x3 x4x4 x2x2 x5x5 x6x6 Refinery input and output schematic. Chapter 7

7

8 Solution Letx 1 = crude #1(bbl/day) x 2 = crude #2(bbl/day) Maximize profit (minimize cost): y = income – raw mat’l cost – proc.cost Calculate amounts of each product Produced (yield matrix): gasolinex 3 = 0.80 x x 2 kerosenex 4 = 0.05 x x 2 fuel oilx 5 = 0.10 x x 2 residual x 6 = 0.05 x x 2 Income gasoline(36)(0.80 x x 2 ) kerosene(24)(0.05 x x 2 ) fuel oil(21)(0.10 x x 2 ) residual(10)(0.05 x x 2 )

9 So, Income = 32.6 x x 2 Raw mat’l cost = 24 x x 2 Processing cost = 0.5 x 1 + x 2 Then, the objective function is Profit = f = 8.1 x x 2 Constraints Maximum allowable production: 0.80 x x 2 < 24,000 (gasoline) 0.05 x x 2 < 2,000 (kerosene) 0.10 x x 2 < 6,000 (fuel oil) and, of course,x 1 > 0, x 2 > 0 Chapter 7

10 Chapter 7 Graphical Solution 1.Plot constraint lines on x 1 – x 2 plane. 2.Determine feasible region (those values of x 1 and x 2 that satisfy maximum allowable production constraints. 3.Find point or points in feasible region that maximize f = 8.1 x x 2 ; this can be found by plotting the line 8.1 x x 2 = P, where P can vary, showing different profit levels.

11 Chapter 7

12 Chapter 19

13 Chapter 19

14 Chapter 19

15 Chapter 7

16 Chapter 7

17 Chapter 7

18 Chapter 7

19 Chapter 7

20 Chapter 7

21 Chapter 7 Convert inequalities to equalities using slack variables

22 Chapter 7 Minimize: f = c T x(7.6) Subject to: Ax = b(7.7) and I < x < u(7.8)

23 Chapter 7

24 Chapter 7 DEFINITION 1: A feasible solution to the linear programming problem is a vector x = (x 1, x 2, …., x n ) that satisfies all constraints and bounds (7.8). DEFINITION 2. A basis matrix is an m x m nonsingular matrix formed from some m columns of the constraint matrix A. DEFINITION 3. A basic solution to a linear program is the unique vector determined by choosing a basis matrix, and solving the resulting system of equations for the remaining m variables. DEFINITION 4. A basic feasible solution is a basic solution in which all variables satisfy their bounds (7.8). DEFINITION 6. An optimal solution is a feasible solution that also minimizes f in Equation (7.6).

25 Chapter 7

26 Slack variables refinery example:2 variablesr = 2 3 constraintsp = 3 (3 slacks) n = r + p = 5total variables m = q + p = 3total constraints (q = 0 = no. equality constraints) 3 eqns / 5 unknowns set 2 variables = 0 basic feasible sol’n set (n – m) variables = 0non-basic m variables ≠ 0basic (could have infinite # soln’s If variables can assume any value) (constraint intersections) Chapter 7

27 Chapter 7

28 Chapter 7

29 In initiating the simplex algorithm, we treat the objective function As just another equation, that is, The basic variables are the first m, that is x 1 … x m and –f. Find values of x 1 > 0, x 2 > 0,.... X n > 0 and min f satisfying (7.11) Chapter 7

30 Chapter 7

31 Chapter 7 Assume that we know that x 5, x 1, -f can be used as basic variables. We can pivot successively on the terms x 5 (first equation) and x 1 (second equation)

32 Chapter 7 Reduced cost coefficient = -24 (< 0): not optimal Increasing x 3 causes f to decrease f = x 3 (7.21) Maximum value of x 2 ? Check constraints (x 2 = x 4 = 0) x 3 = 5 -3x 3 x 1 = 3 -2 x 3 (7.22 )

33 Chapter 7 Is f optimal ? x 3 replaces x 1 as a basic variable using pivot transformation.

34 Chapter 7 (7.25) (7.26)

35 Chapter 7

36 Chapter 7

37 start at which variable when increased will improve obj. fcn more? How far can be increased? constraint (1)no limit (2) (3) (see Figure of feasible region) calculate new basic feasible sol’n and repeat above analysis – iterate until obj. fcn cannot be improved further (row operations) add slacks Chapter 7

38 Sensitivity Analysis How does the value of the optimum solution change when coefficients in the obj. fcn. or constraints change? Why is sensitivity analysis important? -Coefficients and/or limits in constraints may be poorly known -Effect of expanding capacity, changes in costs of raw materials or selling prices of products. Market demand of products vary Crude oil prices fluctuate Sensitivity information is readily available in the final Simplex solution. Optimum does not have to be recomputed. Chapter 7

39 Sensitivity Analysis (Constraints) Shadow price: The change in optimum value of obj. fcn. per unit change in the constraint limit. Final Set of Equations of Refinery Blending Problem x 3 = 0 x 4 = 0 x x 3 – 4.21 x 4 = x x 3 – 7.59 x 4 = 26,207 x 2 – 0.86 x x 4 = 6,897 f – 4.66 x 3 – x 4 = -286,765 ↑ gasoline constraint ↑ kerosene constraint Chapter 7

40 Sensitivity Analysis Which constraint improves obj. fcn. more (when relaxed)?  = 1 bbl(x 3 = -1)$4.66  f = 4.66  x 3 (x 4 = -1)$87.52  f =  x 4 No effect of fuel oil (x 5 );x 5 ≠ 0 Inactive constraint Shadow prices Chapter 7

41 Sensitivity Analysis gasoline capacity is worth $4.66/bbl kerosene capacity is worth $87.52/bbl fuel oil capacity is worth $0/bbl←No effect Capacity limit in original constraints * shadow prices 4.66 (24,000) (2,000) = 286,880 Same as $286,740 Duality (roundoff) Chapter 7

42 Sensitivity Analysis (Obj. Fcn.) From final tableau Crude oil prices change (Coeff. in obj. fcn.) Max. profit = 8.1 x x 2 $ x 1 or 11.8 x 2 ↓ x 1 profit coefficient. Chapter 7

43 Duality One dual variable exists for each primal constraint One dual constraint exists for each primal variable The optimal solution of the decision variables (i.e., the Dual Problem) will correspond to the Shadow Prices obtained from solution of the Primal Problem. Commercial Software will solve the Primal and Dual Problems. i.e., it provides sensitivity information. Chapter 7

44 Chapter 7 LP Software Companies

45 Chapter 7

46 Chapter 7

47 Chapter 7

48 Chapter 7

49 Chapter 7

50 Chapter 7

51 Chapter 7

52 Chapter 7

53 Chapter 7

54 Chapter 7

55 Chapter 7

56 Chapter 7

57 Chapter 7