Download presentation

Presentation is loading. Please wait.

Published byCeline Huet Modified over 3 years ago

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

2
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

3
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

4
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.

5
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

6
(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.

7
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)

9
(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

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

11
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.

12
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

13
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

14
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

15
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

16
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.

17
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.

18
Tabular Standard Form of an LP Model

19
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

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

21
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

22
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.

23
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

24
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

25
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)

26
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

27
The Key Solution Concepts

29
C D B AE

30
C D B AE

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

32
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)

33
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

34
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

35
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.

36
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)

38
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

39
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

40
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)

41
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.

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

43
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

44
(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

45
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

46
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

47
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.

Similar presentations

OK

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

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

© 2018 SlidePlayer.com Inc.

All rights reserved.

To ensure the functioning of the site, we use **cookies**. We share information about your activities on the site with our partners and Google partners: social networks and companies engaged in advertising and web analytics. For more information, see the Privacy Policy and Google Privacy & Terms.
Your consent to our cookies if you continue to use this website.

Ads by Google

Crawl walk run ppt on tv Kid after dentist appt on your birthday Ppt on school education in india Ppt on blood stain pattern analysis course Ppt on as 14 amalgamation process Ppt on viruses and bacteria worksheets Ppt on life study of mathematician rene Ppt on law against child marriages Ppt on business cycle phases order Ppt on brand management process