Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 18, 2013.

Slides:



Advertisements
Similar presentations
Lesson 08 Linear Programming
Advertisements

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 2 (Linear Programming: Basic Concepts) Three Classic Applications.
Chapter 6 Linear Programming: The Simplex Method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Solving Linear Programming Problems: The Simplex Method
CCMIII U2D4 Warmup This graph of a linear programming model consists of polygon ABCD and its interior. Under these constraints, at which point does the.
Introduction to Management Science
Dr. Sana’a Wafa Al-Sayegh
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ Linear Programming in two dimensions:
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Three Classic Applications of LP Product Mix at Ponderosa Industrial –Considered limited.
Linear Inequalities and Linear Programming Chapter 5
Introduction to the Simplex Algorithm Active Learning – Module 3
Operation Research Chapter 3 Simplex Method.
Solving Linear Programs: The Simplex Method
Optimization Linear Programming and Simplex Method
Linear Programming (LP)
The Simplex Method.
5.6 Maximization and Minimization with Mixed Problem Constraints
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Introduction to Linear Programming
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 25, 2013.
LINEAR PROGRAMMING SIMPLEX METHOD.
Learning Objectives for Section 6.2
Chapter 6 Linear Programming: The Simplex Method
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.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
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 6 Linear Programming: The Simplex Method Section R Review.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Solving Linear Programming Problems: The Simplex Method
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Mar 4, 2011.
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 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
作業研究(二) Operations Research II - 廖經芳 、 王敏. Topics - Revised Simplex Method - Duality Theory - Sensitivity Analysis and Parametric Linear Programming -
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents CD Chapter 14 (Solution Concepts for Linear Programming) Some Key Facts.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
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.
Linear Programming Wyndor Glass Co. 3 plants 2 new products –Product 1: glass door with aluminum framing –Product 2: 4x6 foot wood frame window.
Foundations-1 The Theory of the Simplex Method. Foundations-2 The Essence Simplex method is an algebraic procedure However, its underlying concepts are.
Business Mathematics MTH-367 Lecture 14. Last Lecture Summary: Finished Sec and Sec.10.3 Alternative Optimal Solutions No Feasible Solution and.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
1 Optimization Linear Programming and Simplex Method.
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.
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.
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 14, 2011.
Solving Linear Program by Simplex Method The Concept
Chapter 5 Linear Inequalities and Linear Programming
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Mar 7, 2011.
Linear Programming Dr. T. T. Kachwala.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Linear Programming Wyndor Glass Co. 3 plants 2 new products
SOLVING LINEAR PROGRAMMING PROBLEMS: The Simplex Method
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Presentation transcript:

Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 18, 2013

Acknowledgements Dr. Yicheng Wang (Visiting Researcher, CADSWES during Fall 2009 – early Spring 2010) for slides from his Optimization course during Fall 2009 Introduction to Operations Research by Hillier and Lieberman, McGraw Hill

How to Solve LP Problems Graphical Solution Simplex Method for Standard form LP – Geometric Concepts – Setting up and Algebra – Algebraic solution of Simplex R-Resources

Prototype Model from Hillier and Lieberman The Wyndor Glass Co. produces high-quality glass products, including windows and glass doors. It has three plants. Plant 1 produces Aluminum frames Plant 2 produces wood frames Plant 3 produces the glass and assembles the products. The company has decided to produce two new products. Product 1: An 8-foot glass door with aluminum framing Product 2: A 4 x 6 foot double-hung wood framed window Each product will be produced in batches of 20. The production rate is defined as the number of batches produced per week. The company wants to know what the production rate should be in order to maximize their total profit, subject to the restriction imposed by the limited production capacities available in the 3 plants.

To get the answer, we need to collect the following data. (a) Number of hours of production time available per week in each plant for these two new products. (Most of the time in the 3 plants is already committed to current products, so the available capacity for the 2 new products is quite limited). Number of hours of production time available per week in Plant 1 for the new products: 4 Number of hours of production time available per week in Plant 2 for the new products: 12 Number of hours of production time available per week in Plant 3 for the new products: 18 (b) Number of hours of production time used in each plant for each batch produced of each new product (Product 1 requires some of the production capacity in Plants 1 and 3, but none in Plant 2. Product 2 needs only Plants 2 and 3). Number of hours of production time used in Plant 1 for each batch produced of Product 1: 1 Number of hours of production time used in Plant 2 for each batch produced of Product 1: 0 Number of hours of production time used in Plant 3 for each batch produced of Product 1: 3 Number of hours of production time used in Plant 1 for each batch produced of Product 2: 0 Number of hours of production time used in Plant 2 for each batch produced of Product 2: 2 Number of hours of production time used in Plant 3 for each batch produced of Product 2: 2

(c) Profit per batch produced of each new product. Profit per batch produced of Product 1: $3,000 Profit per batch produced of Product 2: $5,000 The data collected are summarized in Table 3.1. This is a linear programming problem of the classic product mix type.

Formulation as a Linear Programming Problem To formulate the LP model for this problem, let x 1 = number of batches of product 1 produced per week x 2 = number of batches of product 2 produced per week Z = total profit ( in thousands of dollars) from producing the two new products. Thus, x 1 and x 2 are the decision variables for the model. Using the data of Table 3.1, we obtain (Plant 1:Total production time required)(Production time available) (Plant 2:Total production time required)(Production time available) (Plant 3:Total production time required)(Production time available)

(4) Graphical Solution The Wyndor Glass Co. example is used to illustrate the graphical solution. Fig. 3.1 Shaded area shows values of (x 1, x 2 ) allowed by x 1 ≥ 0, x 2 ≥ 0, x 1 ≤ 4 Fig. 3.2 Shaded area shows values of (x 1, x 2 ), called feasible region

Fig. 3.3 The value of (x 1, x 2 ) that maximize 3x 1 + 5x 2 is (2, 6)

Common Terminology for LP Model Objective Function: The function being maximized or minimized is called the objective function. Constraint: The restrictions of LP Model are referred to as constraints. The first m constraints in the previous model are sometimes called functional constraints. The restrictions x j >= 0 are called nonnegativity constraints. Feasible Solution: A feasible solution is a solution for which all the constraints are satisfied. Infeasible Solution: An infeasible solution is a solution for which at least one constraint is violated. A feasible solution is located in the feasible region. An infeasible solution is outside the feasible region. Feasible Region: The feasible region is the collection of all feasible solutions.

Common Terminology for LP Model No Feasible Solutions: It is possible for a problem to have no feasible solutions. An Example Fig. 3.4 The Wyndor Glass Co. problem would have no feasible solutions if the constraint 3x 1 + 5x 2 ≤ 50 were added to the problem. In this case, there is no feasible region

Common Terminology for LP Model Optimal Solution: An optimal solution is a feasible solution that has the maximum or minimum of the objective function. Multiple Optimal Solutions: It is possible to have more than one optimal solution. An Example Fig. 3.5 The Wyndor Glass Co. problem would have multiple optimal solutions if the objective function were changed to Z = 3x 1 + 2x 2

Common Terminology for LP Model Unbounded Objective: If the constraints do not prevent improving the value of the objective function indefinitely in the favorable direction, the LP model is called having an unbounded objective. An Example Fig. 3.6 The Wyndor Glass Co. problem would have no optimal solutions if the only functional constrait were x 1 ≤ 4, because x 2 then could be increased indefinitely in the feasible region without ever reaching the maximum value of Z = 3x 1 + 2x 2

Common Terminology for LP Model Corner-Point Feasible (CPF) Solution: A corner-point feasible (CPF) is a solution that lies at a corner of the feasible region. Fig. 3.7 The five dots are the five CPF solutions for the Wyndor Glass Co. problem

Common Terminology for LP Model Relationship between optimal solutions and CPF solutions : Consider any linear programming problem with feasible solutions and a bounded feasible region. The problem must posses CPF solutions and at least one optimal solution. Furthermore, the best CPF solution must be an optimal solution. Therefore, if a problem has exactly one optimal solution, it must be a CPF solution. If the problem has multiple optimal solutions, at least two must be CPF solutions. The prototype model has exactly one optimal solution, (x 1, x 2 )=(2,6), which is a CPF solution (2,6) (4,3) The modified problem has multiple optimal solution, two of these optimal solutions, (2,6) and (4,3), are CPF solutions.

Matrix Standard Form of an LP Model To help you distinguish between matrices, vectors, and scalars, we use BOLDFACE CAPITAL letters to represent matrices, bold lowercase letters to represent vectors, and italicized letters in ordinary print to represent scalars.

Tabular Standard Form of an LP Model

Transforming Any LP Model into the Standard Form (2) Some functional constraints with a less-than-or-equal-to inequality Introduce the concept of slack variables. To illustrate, use the first functional constraint, x 1 ≤ 4, in the Wyndor Glass Co. problem as an example. x 1 ≤ 4 is equivalent to x 1 + x 2 =4 where x 2 ≥ 0. The variable x 2 is called a slack variable. (3) Some functional constraints with a greater-than-or-equal-to inequality Introduce the concept of surplus variables. For example, a functional constraint x 1 – 2x 2 ≥ 5 is equivalent to x 1 – 2x 2 – x 3 = 5 where x 3 ≥ 0. The variable, x 3, is called a surplus variable. Maximize Z΄ = – Z (1) Minimizing rather than maximizing the objective

(4) Deleting the nonnegativity constraints for some decision variables Transforming Any LP Model into the Standard Form Example 1 Original Model Standard Form

Example 2 (1)Set Z΄ = – Z. Then the minimization of Z becomes the maximization of Z΄. (2) Add a slack variable x 6 to the left-hand side of the first functional constraints. (3) Subtract a surplus variable x 7 from the left-hand side of the second functional constraints. (4) Substitute x 4 – x 5 for x 3 where x 4 and x 5 are nonnegative variables. Original Model Standard Form

1. Solving Linear Programming Problems: The Simplex Method (1) The Essence of the Simplex Method Geometric Concepts of Simplex Method Fig.4.1 Contraint boundaries and corner-point solutions for the Wyndor Glass Co. Problem Constraint boundary : a line that forms the boundary of the feasible region. Corner-point solutions: the points of intersection. The five points A, B, C, D and E are the corner-point feasible solutions (CPF solutions). F G H C D B AE The 8 points A, B, C, D, E, F, G, and H are corner-point solutions. The points F, G and H are called corner-point infeasible solutions.

Fig.4.1 Contraint boundaries and corner-point solutions for the Wyndor Glass Co. Problem In this example, each corner-point solution lies at the intersection of two constraint boundaries. For a linear programming problem with n decision variables, each of its corner-point solutions lies at the intersection of n constraint boundaries. Geometric Concepts of Simplex Method

Adjacent CPF Soluionts For a two-variable problem, a constraint boundary = a line. For a three-variable problem, a constraint boundary = a plane. For an n-variable problem, a constraint boundary = a hyperplane C D E A B C D F G

Optimality test C D B Z=36 at point C (2,6) Z=27 at point D (4, 3) Z=30 at point B (0, 6)

C D B AE Z=36 at point C Z=27 at point D Z=12 at point E Z=30 at point B Z=0 at point A Solving the example

The Key Solution Concepts

C D B AE

C D B AE

(2) Setting Up the Simplex Method Original Form of the Model Augmented Form of the Model

F G H C D B AE H(3,2) Augmented Form of the Model For example, H(3,2) is a solution for the original model, which yields the augmented solution ( x 1, x 2, x 3, x 4, x 5 ) = (3, 2,1,8, 5) For example, G(4,6) is a corner-point infeasible solution, which yields the corresponding basic solution ( x 1, x 2, x 3, x 4, x 5 ) = (4, 5,0,0, -6) F G H C D B AE H(3,2)

The only difference between basic solutions and corner-point solutions is whether the values of the slack variables are included Relationship between Corner-Point Solutions and Basic Solutions In the original model, we have Corner-point solution Corner-point feasible (CPF) solution In the augmented model, we have Basic solution Basic Feasible (BF) solution

The corner-point solution (0,0) in the original model corresponds to the basic solution (0, 0, 4,12, 18) in the augmented form, where x 1 =0 and x 2 =0 are the nonbasic variables, and x 3 =4, x 4 =12, and x 5 =18 are the basic variables F G H C D B AE

Example: The CPF solution (0,0) in the original model corresponds to the BF solution (0, 0, 4,12, 18) in the augmented form, where x 1 =0 and x 2 =0 are the nonbasic variables, and x 3 =4, x 4 =12, and x 5 =18 are the basic variables Choose x 1 and x 4 to be the nonbasic variables that are set equal to 0. The three equations then yield, respectively, x 3 =4, x 2 =6, and x 5 =6 as the solution for the three basic variables as shown below.

Example: A(0,0) and B(0,6) are two CPF solutions The corresponding BF solutions are ( x 1, x 2, x 3, x 4, x 5 ) = (0, 0,4,12, 18) and ( x 1, x 2, x 3, x 4, x 5 ) = (0, 6,4,0, 6) F G H C D B AE H(3,2) A(0,0) and C(2,6) are two CPF solutions The corresponding BF solutions are ( x 1, x 2, x 3, x 4, x 5 ) = (0, 0,4,12, 18) and ( x 1, x 2, x 3, x 4, x 5 ) = (2, 6,2,0, 0)

The Algebra of the Simplex Method Use the Wyndor Glass Co. Model to illustrate the algebraic procedure Initialization Geometric interpretation Algebraic interpretation C D B AE

Optimality Test Geometric interpretation Algebraic interpretation C D B AE A(0,0) is not optimal. Conclusion: The initial BF solution (0,0,4,12,18) is not optimal. The objective function: The rate of improvement of Z by the nonbasic variable x 1 is 3 The rate of improvement of Z by the nonbasic variable x 2 is 5

Iteration1 Step1: Determining the Direction of Movement Geometric interpretation Algebraic interpretation C D B AE Move up from A(0,0) to B(0,6)

Iteration1 Step2: Where to Stop Geometric interpretation Algebraic interpretation C D B AE Stop at B. Otherwise, it will leave the feasible region. Step 2 determine how far to increase the entering basic variable x 2.

Thus x 4 is the leaving basic variable for iteration 1 of the example.

Iteration1 Step3: Solving for the New BF Solution Geometric interpretation Algebraic interpretation C D B AE The intersection of the new pair of constraint boundary: B(0,6) Nonbasic variables Basic variables Nonbasic variables Basic variables

(0) (1) (2) (3) Nonbasic variables: x 1 = 0 x 2 = 0 Basic variables: x 3 = 4 x 4 =12 x 5 = 18 Initial BF Solution Nonbasic variables: x 1 = 0 x 4 = 0 Basic variables: x 3 = ? x 2 =6 x 5 = ? New BF Solution (0) (1) (2) (3) Basic variables: x 3 = 4 x 2 =6 x 5 = 6

Optimality Test Geometric interpretation Algebraic interpretation C D B AE B(0,6) is not optimal, because moving from B to C increases Z. Conclusion: The BF solution (0,6,4,0,6) is not optimal. The objective function: The rate of improvement of Z by the nonbasic varialle x 1 is 3 The rate of improvement of Z by the nonbasic varialle x 4 is -5/2

Iteration2 Step1: Determining the Direction of Movement Choose x 1 to be the entering basic variable Step2: Where to Stop The minimum ratio test indicates that x 5 is the leaving basic variable Step3: Solving for the New BF Solution (0) (1) (2) (3) Nonbasic variables: x 1 = 0, x 4 = 0 Basic variables: x 3 = 2, x 2 =6, x 1 = 2 New BF Solution

Optimality Test The objective function: The coefficients of the nonbasic variables x 4 and x 5 are negative. Increasing either x 4 or x 5 will decrease Z, so (x 1, x 2, x 3, x 4, x 5 ) = (2, 6, 2, 0, 0) must be optimal with Z = 36. C D B AE In terms of the original form of the problem (no slack variables), the optimal solution is (x 1, x 2 ) = (2, 6), which yields Z = 3x 1 +5x 2 =36.