## Fourth Midterm—Take Home part

Paper companies usually operate hydroelectric generating stations on bodies of water, preferably rivers. Water is piped from a dam to the power station, the rates at which the water flows through the different pipes varying depending on external conditions.

Let us design a power station with three different hydroelectric turbines, each with a known power function that gives the amount of electric power generated, as a function of the water flow arriving at the turbine. The incoming water can be apportioned in different volumes to each turbine, so the goal is to determine how to distribute water among the turbines to give the maximum total energy production for any rate of flow.

Let us denote the flow through turbine in cubic feet per second; the power generated by turbine in kilowatts; the total flow through the station in cubic feet per second. Using experimental evidence, the following models are determined for the power output of each turbine:

These are the allowable flows of operation:

**Problem 1**. If all three turbines are being used, we wish to determine the flow to each turbine that will give the maximum total energy production. Our limitations are that the flows must sum to the total incoming flow and the given domain restrictions must be observed: Maximize the total energy production subject to the constraint and the domain restrictions on each

**Problem 2**. For which values of is your result valid?

**Problem 3**. Is it possible in some situations that more power could be produced by using only one turbine? Make a graph of the three power functions, and use it to help decide if an incoming flow of 1000 ft^{3}/s should be distributed to all three turbines, or routed to just one. If you determine that only one turbine should be used, which one would it be?

**Problem 4**. For some flow levels it would be advantageous to use two turbines. If the incoming flow is 1500 ft^{3}/2, which two turbines would you recommend using? For this flow, is using two turbines more efficient than using all three?

**Problem 5**. If the incoming flow is 3400 ft^{3}/s, what would you recommend to the company?

## Solution

As we discussed in class, the best way to approach the solution of the first problem is with Lagrange multipliers. Take first the function to be maximized:

and then build your constraint:

We need to solve the system

which gives us five equations:

(1) | |

(2) | |

(3) | |

(4) | |

(5) |

Equations (1) and (2) allow us to write in terms of (rounding here and there to two decimal places):

(6) |

Equations (1) and (3) allow us to write in terms of :

(7) |

Equations (5), (6) and (7) allow us to write in terms of :

(8) |

Rewriting equations (1) and (4) in terms of alone, setting them equal to each other and solving for gives us all the values of that maximize/minimize the energy function. There are only three solutions: two complex and one real.

A quick check tells us that the solution we obtain with the only real value, can only offer a minimum of the energy function. Besides, the value is obviously outside of the allowed interval. That leaves us with a function that has no absolute maximum!

Note how at no point have we used the constraints on the Q’s: we do so now, since this guarantees us the existence of an actual absolute maximum in the closed set formed with the constraints. A quick check is enough to conclude that the maximum of our energy function will happen precisely when all the variables attain their maximum possible values; that is: and (all of them in cubic feet per second) with a total flow of cubic feet per second. The power in this case is 33987.50 kilowatts.

On with the second part. If we decide to use only one turbine and a total flow of 1000 cubic feet per second, then we have only three possibilities:

- : In this case, kilowatts.
- : In this case, kilowatts.
- : In this case, kilowatts.

If only one turbine is to be used, the one offering more power is the third. Let us now compare with the maximum power using the three turbines. For this task, we have another optimization by means of Lagrange multipliers, but now the functions change to simpler expressions:

Note the absence of . Now our Lagrange multipliers looks like this:

(9) | |

(10) | |

(11) | |

(12) |

The solution of this one is much simpler, and yields all of them in cubic feet per second. The maximum attained is then 8397.39 kilowatts, clearly smaller than what we can obtain with any single turbine.

Problem 4 is more complicated, since we need to perform four different optimizations with Lagrange multipliers! In all four cases,

- : We have then and
- : We have then and
- : We have then and
- and as before, but with constraint

Note that in this case it does not make sense to restrict the flow to a single turbine, because none of them can withstand by themselves that large a quantity of cubic feet per second.

Problem 5, it is a bit easier, since the constraint clearly indicates that the three turbines must be used simultaneously (note how one or two turbines together could never reach this flow). It is just a matter of finding the maximum with the same technique.

is -3.84×10^-6 supposed to be changed to -3.84×10^-5 in k3? It was x10^-6 on the handout, but this page has x10^-5

Let’s leave it at 10^(-5)

ok, thanks