Water Resources Planning and Management Daene McKinney

Slides:



Advertisements
Similar presentations
Design of the fast-pick area Based on Bartholdi & Hackman, Chpt. 7.
Advertisements

BU Decision Models Integer_LP1 Integer Optimization Summer 2013.
Linear Programming Problem
Dynamic Programming Rahul Mohare Faculty Datta Meghe Institute of Management Studies.
1 EP2210 Fairness Lecture material: –Bertsekas, Gallager, Data networks, 6.5 –L. Massoulie, J. Roberts, "Bandwidth sharing: objectives and algorithms,“
Linear Programming Problem
Dynamic Programming In this handout A shortest path example
HW2 Solutions. Problem 1 Construct a bipartite graph where, every family represents a vertex in one partition, and table represents a vertex in another.
Optimization using Calculus
MIT and James Orlin © Dynamic Programming 2 –Review –More examples.
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley Asynchronous Distributed Algorithm Proof.
Chapter 10 Dynamic Programming. 2 Agenda for This Week Dynamic Programming –Definition –Recursive Nature of Computations in DP –Forward and Backward Recursion.
Lecture #7. Lecture Outline Review Go over Exam #1 Continue production economic theory.
1. The Simplex Method.
Linear Programming Chapter 13 Supplement.
ECES 741: Stochastic Decision & Control Processes – Chapter 1: The DP Algorithm 31 Alternative System Description If all w k are given initially as Then,
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 Linear Programming (LP) 線性規劃 - George Dantzig, 1947.
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
Tuesday, April 30 Dynamic Programming – Recursion – Principle of Optimality Handouts: Lecture Notes.
PROBLEM 5 (A) SCHOOL DISTRICT ADDEENBASHIRONCOBBITHDAIMMAN STUDENT POPULATION NORTH 250 5,5,5,5,5,-,- SOUTH 340 6,6,6,-,-,-,- EAST ,2,2,2,4,4,4,4.
D Nagesh Kumar, IIScOptimization Methods: M6L5 1 Dynamic Programming Applications Capacity Expansion.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
Chapter 18 Deterministic Dynamic Programming
Beattie, Taylor, and Watts Sections: 3.1b-c, 3.2c, , 5.2a-d
LINEAR PROGRAMMING.
D Nagesh Kumar, IIScOptimization Methods: M5L1 1 Dynamic Programming Introduction.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Linear Programming and Applications
Introduction and Preliminaries D Nagesh Kumar, IISc Water Resources Planning and Management: M4L1 Dynamic Programming and Applications.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
Linear Programming.
Linear Programming Many problems take the form of maximizing or minimizing an objective, given limited resources and competing constraints. specify the.
MID-TERM EXAM/REVISION
St. Edward’s University
Chapter 4: Linear Programming Lesson Plan
The minimum cost flow problem
6.5 Stochastic Prog. and Benders’ decomposition
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
Linear Programming Prof. Sweta Shah.
Linear Programming.
Routing and Logistics with TransCAD
1.206J/16.77J/ESD.215J Airline Schedule Planning
Instructor: Shengyu Zhang
Chapter 3 The Simplex Method and Sensitivity Analysis
Dynamic Programming General Idea
Chapter 3 Dynamic Programming.
AP Calculus BC September 30, 2016.
Unit 4: Dynamic Programming
Linear Programming.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Dynamic Programming and Applications
Constraint management
Chapter 5 Transportation, Assignment, and Transshipment Problems
Optimization Techniques
Dynamic Programming General Idea
Chapter 6 Network Flow Models.
Linear Programming Problem
Optimization Models Module 9.
Algorithm Design Techniques Greedy Approach vs Dynamic Programming
Chapter 4 The Simplex Algorithm
6.5 Stochastic Prog. and Benders’ decomposition
Network Flow Problems – Maximal Flow Problems
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Presentation transcript:

Water Resources Planning and Management Daene McKinney Dynamic Optimization Water Resources Planning and Management Daene McKinney

Example 3 firms along a river use water for production Benefit, Bj(xj) j = 1, 2, 3, each firm receives is determined by the quantity of product it produces, pj, and the price per unit of the product Quantity produced, pj, is dependent on the amount of water, xj, allocated to it

pj(xj) as a function of xj : p1 = 0.4(x1)0.9 p2 = 0.5(x2)0.8 Costs of producing pj(xj) : C1 = 3(p1)1.3 C2 = 5(p1)1.2 C3 = 6(p1)1.15 demand functions Unit Prices, UPj, that products sell for: UP1 = 12 - p1 UP2 = 20 – 1.5p2 UP3 = 28 – 2.5p3

To define water allocation policies as functions of Q Optimization problem Objective Find the water allocations, x, production levels, p, and unit prices, UP that maximize the total net benefit for all three firms. Constraint water allocations, x, plus the amount that must remain in the river, R, cannot exceed the total amount of water Q available To define water allocation policies as functions of Q Construct and solve a model of this problem for various values of Q

Model Maximize Net_benefit = Revenue - Cost Subject to: Revenue = (12 - p1) p1 + (20 - 1.5p2) p2 + (28 - 2.5p3) p3 Cost = 3(p1)1.30 + 5(p2)1.20 + 6(p3)1.15 p1 = 0.4(x1)0.9 p2 = 0.5(x2)0.8 p3 = 0.6(x3)0.7 R + x1 + x2 + x3 ≤ Q

Total Net_benefit = [(12 - p1)p1 + (20 - 1.5p2) p2 + (28 - 2.5p3) p3] assuming water is not a limiting constraint. equate the derivatives of the total net benefit function with respect to each pj to 0 and solve each of the resulting three independent equations Total Net_benefit = [(12 - p1)p1 + (20 - 1.5p2) p2 + (28 - 2.5p3) p3] - [3(p1)1.30 + 5(p2)1.20 + 6(p3)1.15] Derivatives: ∂(Net_benefit)/∂p1 = 0 = 12 - 2p1 - 1.3(3) p10.3 ∂(Net_benefit)/∂p2 = 0 = 20 - 3p2 - 1.2(5) p20.2 ∂(Net_benefit)/∂p3 = 0 = 28 - 5p3 - 1.15(6) p30.15 Solution p1 = 3.2, p2 = 4.0, and p3 = 3.9 UP1 = 8.77, UP2 = 13.96, and UP3 = 18.23 x1 = 10.2, x2 = 13.6 and x3 = 14.5, totaling 38.3 flow units Maximum net benefit = 155.75

Solution p1 = 3.2, p2 = 4.0, and p3 = 3.9 UP1 = 8.77, UP2 = 13.96, and UP3 = 18.23 x1 = 10.2, x2 = 13.6 and x3 = 14.5, totaling 38.3 flow units Max net benefit = 155.75 Any amount of water less than 38.3 will restrict the allocation and production at, one or more of the three firms.

Dynamic Programming With limited water (< 38.3 flow units) we CAN formulate a Lagrange Multiplier solution, but it gets complex in a hurry If the net-benefit functions for each firm are continuous differentiable functions, then calculus can be used to find the solution – but this is not always possible We can use: dynamic programming Divide the original optimization problem into a set of smaller optimization problems, each of which needs to be solved before the overall optimum solution to the original problem can be identified The water supply allocation problem, for example, needs to be solved for a range of water supplies available to each firm. Once this is done the particular allocations that maximize the total net benefit can be determined

DP Formulation Consider our problem with 10 units of water available A network (nodes and links) represent the problem. Nodes represent possible discrete states that can exist (water available) Links represent the decisions one could make to get from one state to another (water allocation) Dynamic programming finds the best way to get to any node in the network.

Example The number in the right node is the quantity of water remaining after an allocation has been made. The value in the right node, state Sj+1, at the beginning of stage j+1, is equal to the value in the left node, Sj, less the amount of water, xj, allocated to firm j as indicated on the link. Beginning with Q-R to be allocated, after allocating x1 to Firm 1 what remains is S2: Q - R - x1 = S2 Then allocating x2 to Firm 2, leaves S3: S2 – x2 = S3 And: S3 – x3 = S4 S3 S4 S2 S1

What is the best path through the network? We need to know the net benefits for the links (allocation decisions) at each node (state) for each firm (stage). Same network with numbers on the links representing the net benefits from the allocations, NBj(xj). NB1(x1) = max (12 - p1) p1 - 3(p1)1.30 where p1 ≤ 0.4(x1)0.9 NB2(x2) = max(20 - 1.5p2) p2 - 5(p2)1.20 where p2 ≤ 0.5(x2)0.8 NB3(x3) = max (28 - 2.5p3) p3 - 6(p3)1.15 where p3 ≤ 0.6(x3)0.7

Given a particular state Sj and stage j (node), what decision (link) xj will result in the maximum total net benefits, Fj(Sj), for this and all remaining stages or firms j? Answer for each node in the network before finding the best set of decisions (best allocations to each firm) Dynamic programming networks can be solved in two ways beginning at the most right column of nodes or states and moving from right to left, called the backward-moving (but forward-looking) algorithm beginning at the left most node and moving from left to right, called the forward-moving (but backward-looking) algorithm.

Backward Solution assume we have already made the first two allocations and we are at any of the nodes at the beginning of the third stage with only one allocation decision remaining best decision = allocation (link) having the largest net benefits F3(S3) = maximum net benefits from the remaining amount of water S3, For each value of S3 find x3 that maximizes F3(S3), including: F3(7) = Max {NB3(x3)}, where x3 ≤ 7

Backward Solution F3(S3) = maximum net benefits from the remaining amount of water S3, For each value of S3 we can find x3 that maximizes F3(S3), including: F3(7) = Max {NB3(x3)} = Max {27.9, 31.1, 33.7} = 33.7 F3(6) = Max {NB3(x3)} F3(5) = Max {NB3(x3)} = Max {27.9, 31.1} = 31.1 F3(4) = Max {NB3(x3)} = Max {27.9} = 27.9

Backward Solution Move backward to state S2 (second stage) F2(S2) = maximum net benefits from the remaining amount of water S2 x2 depends not only on the net benefits obtained from the allocation x2 but also on F3(S3) F2(10) = Max {NB2(x2) + F3(S3 = 10 - x2)} = Max {15.7+33.7, 18.6+33.7, 21.1+31.1} = Max {49.4, 52.3, 52.2} = 52.3, when x2 = 4, x3 = 5 F2(9) = 49.7 , when x2 = 4 , x3 = 5 F2(8) = 46.8 , when x2 = 3 , x3 = 5

Backward Solution Move backward to state S1 (first stage) F1(S1) = maximum net benefits from the remaining amount of water S1 x1 depends not only on the net benefits obtained from the allocation x2 but also on F2(S2) F1(10) = Max {NB1(x1) + F2(S2 = 10 – x1)} = Max {0+52.3, 3.7+49.7, 6.3+46.8} = Max {52.3, 53.4, 53.1} = 53.4, when x1 = 1, x2 = 4, x3 = 5 Solution x1 = 1, x2 = 4, x3 = 5 Max Benefit = 53.4

Backward Solution Move backward from state S3 F3(S3) = Max {NB3(x3)} F2(S2) = Max {NB2(x2) + F3(S3)} F1(S1) = Max {NB1(x1) + F2(S2)} Recursive equations

Backward Solution Computing the values of F3(S3) and optimal allocations x3 for all states S3 in Stage 3 Computing the values of F2(S2) and optimal allocations x2 for all states S2 in Stage 2 Computing the values of F1(S1) and optimal allocations x1 for all states S1 in Stage 1

Capacity Expansion How much infrastructure should be built, when and why? Plan for the future expansion of a water supply system. Dt = capacity needed at the end of each future period t Ct (st, xt) = cost of adding capacity in each period t A function of the added capacity xt and the existing capacity st at the beginning of the period t Problem - find the time sequence of capacity expansions that minimizes the present value of future costs while meeting the capacity demand

Capacity Expansion objective - Minimize ΣtCt(st, xt) constraints Minimum required final capacity in each period t, or equivalently the next period’s initial capacity, st+1, as a function of the known existing capacity s1 and each expansion xt up through period t. st+1 = st + xt , t = 1, 2, … , T ensure that the actual capacity st+1 at the end of each future period t is no less than the capacity required Dt at the end of that period. st+1 ≥ Dt , t = 1, 2, … , T constraints on the possible expansions in each period defined by a set Ωt of feasible capacity additions in each period t: xt ∈ Ωt , t = 1, 2, … , T

DP Solution Nodes are possible states, st, amounts of additional capacity at the end of each period t-1 or equivalently at the beginning of period t.

Forward-moving DP Solution for each s2 from D1 to DT f1(s2) = min{C1(s1, x1)} x1 = s2 , s1 = 0 for each s3 from D2 to DT f2(s3) = min{C2(s2, x2) + f1(s2) } 0 ≤ x2 ≤ s3 - D1 s2 = s3 - x2 for each s4 from D3 to DT f3(s4) = min{C3(s3, x3) + f2(s3) } 0 ≤ x3 ≤ s4 – D2 s3 = s4 – x3 t

Capacity Expansion Example for each s2 from D1 to DT f1(s2) = min{C1(s1, x1)} x1 = s2 , s1 = 0 for each s3 from D2 to DT f2(s3) = min{C2(s2, x2) + f1(s2) } 0 ≤ x2 ≤ s3 - D1 s2 = s3 - x2 for each s4 from D3 to DT f3(s4) = min{C3(s3, x3) + f2(s3) } 0 ≤ x3 ≤ s4 – D2 s3 = s4 – x3

Capacity Expansion Example Present value of the cost of the optimal capacity-expansion schedule is 23 units x1= 10, s2= 10 x2= 0, s3= 10 x3= 15, s4= 25 x4= 0