+ All Categories
Home > Documents > Water Resources Development and Management Optimization (Linear Programming)

Water Resources Development and Management Optimization (Linear Programming)

Date post: 22-Jan-2016
Category:
Upload: minna
View: 51 times
Download: 0 times
Share this document with a friend
Description:
Water Resources Development and Management Optimization (Linear Programming). CVEN 5393 Mar 4, 2011. Acknowledgements Dr. Yicheng Wang (Visiting Researcher, CADSWES during Fall 2009 – early Spring 2010) for slides from his Optimization course during Fall 2009 - PowerPoint PPT Presentation
Popular Tags:
79
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Mar 4, 2011
Transcript
Page 1: Water Resources Development and Management Optimization (Linear Programming)

Water Resources Development and Management

Optimization

(Linear Programming)

CVEN 5393

Mar 4, 2011

Page 2: Water Resources Development and Management Optimization (Linear Programming)

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

Page 3: Water Resources Development and Management Optimization (Linear Programming)

Today’s Lecture• Simplex Method

– Recap of algebraic form– Simplex Method in Tabular form

• Simplex Method for other forms– Equality Constraints– Minimization Problems(Big M and Twophase methods)

• Sensitivity / Shadow Prices

• Simplex Method in Matrix form– Basics of Matrix Algebra– Revised Simplex

• Dual Simplex

• R-resources / demonstration

Page 4: Water Resources Development and Management Optimization (Linear Programming)

SIMPLEX METHOD (MATRIX FORM)

MATRIX ALGEBRA BASICSREVISED SIMPLEX

Page 5: Water Resources Development and Management Optimization (Linear Programming)

Matrices and Matrix Operations

A matrix is a rectangular array of numbers. For example

is a 3x2 matrix (matrices are denoted by Boldface Capital Letters)

In more general terms,

Page 6: Water Resources Development and Management Optimization (Linear Programming)

Matrix Operations

To multiply a matrix by a number (denote this number by k )

Let and be two matrices having the same number of rows and the same number of columns.

To add two matrices A and B

For example,

Page 7: Water Resources Development and Management Optimization (Linear Programming)

Subtraction of two matrices

Matrix multiplication

Page 8: Water Resources Development and Management Optimization (Linear Programming)

Matrix division is not defined

Page 9: Water Resources Development and Management Optimization (Linear Programming)

Matrix operations satisfy the following laws.

The relative sizes of these matrices are such that the indicated operations are defined.

Transpose operations

This operation involves nothing more than interchanging the rows and columns of the matrix.

Page 10: Water Resources Development and Management Optimization (Linear Programming)

Special kinds of matrices

Identity matrix

where I is assigned the appropriate number of rows and columns in each case for the multiplication operation to be defined.

The identity matrix I is a square matrix whose elements are 0s except for 1s along the main diagonal. ( A square matrix is one in which the number of rows is equal to the number of columns).

Page 11: Water Resources Development and Management Optimization (Linear Programming)

Null matrix

The null matrix 0 is a matrix of any size whose elements are all 0s .

Page 12: Water Resources Development and Management Optimization (Linear Programming)

Inverse of matrix

Page 13: Water Resources Development and Management Optimization (Linear Programming)

Vectors

(We use boldface lowercase letters to represent vectors)

Page 14: Water Resources Development and Management Optimization (Linear Programming)

Partitioning of matrices

Up to this point, matrices have been rectangular arrays of elements, each of which is a number. However, the notation and results are also valid if each element is itself a matrix.

For example, the matrix

Page 15: Water Resources Development and Management Optimization (Linear Programming)
Page 16: Water Resources Development and Management Optimization (Linear Programming)

Example : Calculate AB, given

Page 17: Water Resources Development and Management Optimization (Linear Programming)

Matrix Form of Linear Programming

Original Form of the Model Augmented Form of the Model

Page 18: Water Resources Development and Management Optimization (Linear Programming)
Page 19: Water Resources Development and Management Optimization (Linear Programming)

Solving for a Basic Feasible SolutionFor initialization,

For any iteration,

Page 20: Water Resources Development and Management Optimization (Linear Programming)

Solving for a Basic Feasible Solution

For initialization,

BxB + NxN = bBxB = b - NxN xB = B-1b – B-1NxN

xB = B-1b

Z = cB xB + cNxN = cB xB = cB B-1b

xB = B-1bZ = cB B-1b

xB = x = I-1b = bZ = cB I-1b = cB b

For any iteration,

Page 21: Water Resources Development and Management Optimization (Linear Programming)

Example

xB = B-1bZ = cB B-1b

xB = x = I-1b = bZ = cB I-1b = cB b

Page 22: Water Resources Development and Management Optimization (Linear Programming)

Matrix Form of the Set of Equations in the Simplex TableauFor the original set of equations, the matrix form is

xB = B-1bZ = cB B-1b

For any iteration,

Page 23: Water Resources Development and Management Optimization (Linear Programming)

Example

For Iteration 2

Page 24: Water Resources Development and Management Optimization (Linear Programming)

Summary of the Revised Simplex Method

1. Initialization (Iteration 0)

Optimality test:

Page 25: Water Resources Development and Management Optimization (Linear Programming)

2. Iteration 1

Step 1: Determine the entering basic variable

So x2 is chosen to be the entering variable.

Step 2: Determine the leaving basic variable

Thus, x4 is chosen to be the entering variable.

So the number of the pivot row r =2

Page 26: Water Resources Development and Management Optimization (Linear Programming)

The new set of basic variables is

To obtain the new B-1,

So the new B-1 is

Step 3: Determine the new BF solution

Page 27: Water Resources Development and Management Optimization (Linear Programming)

Optimality test:

The nonbasic variables are x1 and x4.

3. Iteration 2

Step 1: Determine the entering basic variable

x1 is chosen to be the entering variable.

Page 28: Water Resources Development and Management Optimization (Linear Programming)

Step 2: Determine the leaving basic variable

The ratio 4/1 > 6/3 indicate that x5 is the leaving basic variable

Therefore, the new B-1 is

The new set of basic variables is

Step 3: Determine the new BF solution

Optimality test:

The nonbasic variables are x4 and x5.

Page 29: Water Resources Development and Management Optimization (Linear Programming)

Relationship between the initial and final simplex tableaux

Page 30: Water Resources Development and Management Optimization (Linear Programming)

For iteration 1:

S* = B-1 = y* =

Page 31: Water Resources Development and Management Optimization (Linear Programming)

For iteration 2:

S* = B-1 = y* =

Page 32: Water Resources Development and Management Optimization (Linear Programming)

DUAL SIMPLEX

Page 33: Water Resources Development and Management Optimization (Linear Programming)

HUGHES-MCMAKEE-NOTES\CHAPTER-05.PDF

Page 34: Water Resources Development and Management Optimization (Linear Programming)

Duality Theory and Sensitivity Analysis

Duality Theory

Page 35: Water Resources Development and Management Optimization (Linear Programming)
Page 36: Water Resources Development and Management Optimization (Linear Programming)

is the surplus variable for the functional constraints in the dual problem.

Page 37: Water Resources Development and Management Optimization (Linear Programming)

If a solution for the primal problem and its corresponding solution for the dual problem are both feasible, the value of the objective function is optimal.

If a solution for the primal problem is feasible and the value of the objective function is not optimal (for this example, not maximum), the corresponding dual solution is infeasible.

Page 38: Water Resources Development and Management Optimization (Linear Programming)

Summary of Primal-Dual Relationships

Page 39: Water Resources Development and Management Optimization (Linear Programming)

Summary of Primal-Dual Relationships

Page 40: Water Resources Development and Management Optimization (Linear Programming)
Page 41: Water Resources Development and Management Optimization (Linear Programming)
Page 42: Water Resources Development and Management Optimization (Linear Programming)

F

G

H

C

D

B

A E

C

DB

AE

G

F

H

Primal Problem

Dual Problem

Page 43: Water Resources Development and Management Optimization (Linear Programming)
Page 44: Water Resources Development and Management Optimization (Linear Programming)

Suboptimal

Superoptimal

Optimal

Superptimal

Suboptimal

Optimal

Neither feasible nor superoptimal

Neither feasible nor superoptimal

Page 45: Water Resources Development and Management Optimization (Linear Programming)
Page 46: Water Resources Development and Management Optimization (Linear Programming)

Adapting to Other Primal Forms

Page 47: Water Resources Development and Management Optimization (Linear Programming)
Page 48: Water Resources Development and Management Optimization (Linear Programming)
Page 49: Water Resources Development and Management Optimization (Linear Programming)

subject to subject to

(1)

(2)

: dual variables corresponding to (1)

: dual variables corresponding to (2)

subject to

: unconstrained in sign

Page 50: Water Resources Development and Management Optimization (Linear Programming)

subject to subject to

: dual variables corresponding to (2)

subject to

Page 51: Water Resources Development and Management Optimization (Linear Programming)
Page 52: Water Resources Development and Management Optimization (Linear Programming)
Page 53: Water Resources Development and Management Optimization (Linear Programming)

Dual Simplex Method

Suboptimal

Superoptimal

Optimal

Superptimal

Suboptimal

Optimal

Page 54: Water Resources Development and Management Optimization (Linear Programming)

Simplex Method : Keep the solution in any iteration suboptimal ( not satisfying the condition for optimality, but the condition for feasibility).

Dual Simplex Method : Keep the solution in any iteration superoptimal ( not satisfying the condition for feasibility, but the condition for optimality).

If a solution satisfies the condition for optimality, the coefficients in row (0) of the simplex tableau must nonnegative.

If a solution does not satisfy the condition for feasibility, one or more of the values of b in the right-side of simplex tableau must be negative.

Page 55: Water Resources Development and Management Optimization (Linear Programming)

Summary of Dual Simplex Method

subject to

Page 56: Water Resources Development and Management Optimization (Linear Programming)

Sensitivity Analysis

Page 57: Water Resources Development and Management Optimization (Linear Programming)
Page 58: Water Resources Development and Management Optimization (Linear Programming)
Page 59: Water Resources Development and Management Optimization (Linear Programming)
Page 60: Water Resources Development and Management Optimization (Linear Programming)

Case 1 : Changes in bi

Page 61: Water Resources Development and Management Optimization (Linear Programming)
Page 62: Water Resources Development and Management Optimization (Linear Programming)

Incremental analysis

Page 63: Water Resources Development and Management Optimization (Linear Programming)

The dual simplex method now can be applied to find the new optimal solution.

Page 64: Water Resources Development and Management Optimization (Linear Programming)

The allowable range of bi to stay feasible

The solution remains feasible only if

A

B

C

Page 65: Water Resources Development and Management Optimization (Linear Programming)

Case 2a : Changes in the coefficients of a nonbasic variable

Consider a particular variable xj (fixed j) that is a nonbaic variable in the optimal solution shown by the final simplex tableau.

is the vector of column j in the matrix A .

We have for the revised model.

We can observe that the changes lead to a single revised constraint for the dual problem.

Page 66: Water Resources Development and Management Optimization (Linear Programming)

The allowable range of the coefficient ci of a nonbasic variable

Page 67: Water Resources Development and Management Optimization (Linear Programming)

Case 2b : Introduction of a new variable

Page 68: Water Resources Development and Management Optimization (Linear Programming)

Case 3 : Changes in the coefficients of a basic variable

Page 69: Water Resources Development and Management Optimization (Linear Programming)
Page 70: Water Resources Development and Management Optimization (Linear Programming)

The allowable range of the coefficient ci of a basic variable

Page 71: Water Resources Development and Management Optimization (Linear Programming)

Case 4 : Introduction of a new constraint

Page 72: Water Resources Development and Management Optimization (Linear Programming)

Parametric Linear Programming

Systematic Changes in the cj Parameters

The objective function of the ordinary linear programming model is

For the case where the parameters are being changed, the objective function of the ordinary linear programming model is replaced by

where is a parameter and j are given input constants representing the relative rates at which the coefficients are to be changed.

Page 73: Water Resources Development and Management Optimization (Linear Programming)

Example:To illustrate the solution procedure, suppose 1=2 and 2 = -1 for the original Wyndor Glass Co. problem, so that

Beginning with the final simplex tableau for = 0, we see that its Eq. (0)

If ≠ 0, we have

Page 74: Water Resources Development and Management Optimization (Linear Programming)

Because both x1 and x2 are basic variables, they both need to be eliminated algebraically from Eq. (0)

The optimality test says that the current BF solution will remain optimal as long as these coefficients of the nonbasic variables remain nonnegative:

Page 75: Water Resources Development and Management Optimization (Linear Programming)

Summary of the Parametric Linear Programming Procedure for Systematic Changes the cj

Parameters

Page 76: Water Resources Development and Management Optimization (Linear Programming)

Systematic Changes in the bi Parameters

For the case where the bi parameters change systematically, the one modification made in the original linear programming model is that is replaced by, for i = 1, 2, …, m, where the i are given input constants. Thus the problem becomes

subject to

The goal is to identify the optimal solution as a function of

Page 77: Water Resources Development and Management Optimization (Linear Programming)

Example:

subject to

Suppose that 1=2 and 2 = -1 so that the functional constraints become

This problem with = 0 has already been solved in the table, so we begin with the final tableau given there.

Page 78: Water Resources Development and Management Optimization (Linear Programming)

Using the sensitivity procedure, we find that the entries in the right side column of the tableau change to the values given below

Therefore, the two basic variables in this tableau

Remain nonnegative for

Page 79: Water Resources Development and Management Optimization (Linear Programming)

Summary of the Parametric Linear Programming Procedure for Systematic Changes the bi

Parameters


Recommended