Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(due 2/26/96)
1. Develop a derivation that shows the optimal value of mA in Example 1.6 is in fact
(20) the average of the data for mB minus the average of data for mC. Assume three
data points: (mB1, mB2, mB3) and (mC1, mC2, mC3), and use a general objective
function similar to (b) in Example 1.6.
min f M A M A mC1 m B1 M A mC 2 m B 2 M A mC 3 m B 3
2 2 2
df M A
2 M A mC1 m B1 2 M A mC 2 m B 2 2 M A mC 3 m B 3 0
dM A
6M A 2 mC1 mC 2 mC 3 2 m B1 m B 2 m B 3 0
6M A 2 m B1 m B 2 m B 3 2 mC1 mC 2 mC 3
m B1 m B 2 m B 3 mC1 mC 2 mC 3
M Aopt
3 3
Since we know that the averages of the data are given by
m B1 m B 2 m B 3
MB
3
m mC 2 mC 3
M C C1
3
We have proven that
M Aopt M B M C
2. In the inventory problem described in Example 1.7, the carrying cost assumes
(20) that the inventory has a maximum value of D, then declines to zero over a period
of time, when the next run is carried out (sawtooth pattern). So in effect the
average inventory determines the carrying cost. Suppose that you require a
minimum inventory level, D , so that you have a “cushion” of product when the
next run is made. In this case, the inventory cost would be K1 ( D D ). How does
this modified assumption change the value of Dopt (cf. eqn (f) on p. 23)?
The modified total cost function is taken from the above change to the inventory cost and
the cost per run given in eqn (a) on p.21
C K 1 D D n K 2 K 3 D K 1 D D
Q
K 2 K 3 D
D
K1 D D
K 2Q
K 3Q
D
Taking the first derivative with respect to D and setting it equal to zero gives
dC K Q
K1 2 2 0
dD D
K 2Q
K1
D2
K Q
D2 2
K1
K 2Q
D opt
K1
We can see that there is no change to the optimal number of units per run, as compared
with the original optimal point in eqn (f).
Truck A requires one driver per day and produces 2100 ton-miles per day.
Truck B requires two drivers per day and produces 3600 ton-miles per day.
Truck C requires two drivers per day and produces 3780 ton-miles per day.
There is a limit of 30 trucks and 145 drivers.
Let
n A number of trucks of type A no units, integer variable
n B number of trucks of type B no units, integer variable
nC number of trucks of type C no units, integer variable
Objective function
max f n A , n B , nC 2100n A 3600n B 3780nC (ton-miles/day)
Constraints
1. 10,000n A 20,000n B 23,000nC 600,000 ($)
2. n A 2n B 2nC 145 (drivers)
3. n A n B nC 30 (trucks)
4. n A , n B , nC 0 (physical requirement)
ChE 356/384 Exam #1 – Part B (take-home)
(due 2/28/06)
4. Figure 2.4 shows that the Nusselt number (y) can be correlated with Reynolds
(20) number (x) on a log-log plot such that y = axb.
(b) take the log of both sides of y = axb and fit a and b using linear regression.
Compare the fitted values for the two approaches. Are the results
different? Why or why not?
Part (a)
Using nonlinear regression to minimize the sum of squared error between the model
prediction and the data I get the following results:
a 0.1079
b 0.6732
SSE 81.7
Part (b)
Transforming the data and using linear regression gives the following results
a 0.8043
b 0.4648
R 2 0.9839
You can see that the nonlinear regression fits the points at higher Re and Nu, while the
linear regression fits the points at low Re and Nu better. This is due to the fact that the
logarithm makes large errors seem smaller (when you take the log of a large number, it is
less than the original number). Linear regression on the log transformed model weights
points at low Re and Nu more than points at high Re and Nu. While it appears to be a
better fit on the log-log plot, the large error at high Re and Nu is apparent on the regular
plot. The error apparent on the log-log plot for the nonlinearly regressed model is
actually not very large when you view it on the regular plot.
5. You are the manufacturer of PCl3, which you sell in barrels at a rate of P barrels
(20) per day. The cost per barrel produced is
For example, for P = 100 barrels/day, C = $150/barrel. The selling price per
barrel is $300. Determine for a basis of one day.
(a) The production level giving the minimum cost per barrel.
(b) The production level which maximizes the profit per day.
(c) The production level at zero profit.
(d) Why are the answers in (a) and (b) different?
(e) Give a possible explanation for the shape of the C vs. P curve.
Part (a)
The cost per barrel is given by C 50 0.1P 9000 / P . Taking the first derivative with
respect to P and setting it equal to zero gives
dC 9000
0.1 0
dP P2
9000
0 .1
P2
P 2 90000
P opt 300 bbl/day
Part (b)
The profit per barrel is given by f P 300 50 0.1P 9000 / P . To convert this into
profit per day, we multiply by the production rate giving
f P 300 P 50 P 0.1P 2 9000
We take the first derivative with respect to P and set it equal to zero
df P
300 50 0.2 P 0
dP
0.2 P 250
P opt 1250 bbl/day
Part (c)
We can see here that there are two production levels that will result in zero profit per day.
Part (d)
The answers in parts (a) and (b) are different because when you minimize cost, you fail to
take into account the fact that additional barrels sold can offset the cost of producing
them. When we account for this fact mathematically, we see that the optimum production
level is higher.
Part (e)