Professional Documents
Culture Documents
r(1r)
+
+
R
0
q
|+1
(r + . n n, j + n, /)0
|
(/)d/
q
13
(r, j, .) =
if j < G
cr otherwise
where c is a suitably chosen constant reecting the value of the water stored
in the reservoir for future uses, and where
1(r, j, .) = {(n, n) : 0 n Q, n 0, : r + . n n '} .
Problem 2 (30 points)
Consider a machine that can fail with a probability j
n
, where : is the number
of units produced by the machine since the last maintenance operation. The cost
of a maintenance operation is c. A total of units have to be produced using
this machine; accordingly, if the machine fails before the units are produced,
it has to be replaced at a cost r c. Assume that j
0
= 0 and that j
n
j
n+1
for 0 : 1.
Denote:
: : the number of units produced by the machine since the last maintenance
or replacement.
/ : the number of units that remain to be produced to attain
|
(:) : the minimum expected cost of maintenance and replacement if there
are / units to produce and : units where produced since the last maintenance
or replacement.
A dynamic programming model nding the optimal maintenance schedule
of this machine over an innite horizon is given by:
|
(:) = min{c +
|1
(1); j
n
(r +
|1
(1)) + (1 j
n
)
|1
(: + 1)} , : 1
0
(:) = 0, : 0.
1. Complete the above model by computing
|
(0) and explain your result.
|
(0) = min{c +
|1
(1);
|1
(1)} =
|1
(1). Since a new machine can-
not fail before producing at least one unit, it is never optimal to do a
maintenance operation on a new machine, and the total cost of a new
machine is equivalent to the total cost of the same machine after the rst
unit has been produced.
2. Show that
|
(:) is non-decreasing in / for all : 0.
At / = 1 :
1
(:) = min{c; j
n
r} 0 =
0
(:).
We now assume that
|
(:)
|1
(:) and show that this implies
|+1
(:)
|
(:).
|+1
(:) = min{c +
|
(1); j
n
(r +
|
(1)) + (1 j
n
)
|
(: + 1)}
min{c +
|1
(1); j
n
(r +
|1
(1)) + (1 j
n
)
|1
(: + 1)} =
|
(:). By
induction, the proposition is true for all / 0.
Page 2 of 5.
80-680-04 Dynamic Optimization in Management
Mid-term exam - Fall 2011 - solution
3. Show that
|
(:) is non-decreasing in : for all / 0. What can be con-
cluded about the form of an optimal strategy?
At / = 0 :
0
(:) is a constant function, therefore non-decreasing in :
We now assume that
|1
(: + 1)
|1
(:) and show that this implies
|
(:)
|
(: 1).
|
(:) = min{c +
|1
(1); j
n
(r +
|1
(1)) + (1 j
n
)
|1
(: + 1)}
where
j
n
(r +
|1
(1))+(1 j
n
)
|1
(:+1) = j
n
(r +
|1
(1)
|1
(: + 1))+
|1
(: + 1)
and (r +
|1
(1)
|1
(: + 1))
(r +
|1
(1) c
|2
(1))
= (r c +
|1
(1)
|2
(1)) 0
As a consequence,
j
n
(r +
|1
(1)
|1
(: + 1)) +
|1
(: + 1)
j
n1
(r +
|1
(1)
|1
(: + 1)) +
|1
(: + 1)
= j
n1
(r +
|1
(1)) + (1 j
n1
)
|1
(: + 1)
and
|
(:) = min{c +
|1
(1); j
n
(r +
|1
(1)) + (1 j
n
)
|1
(: + 1)}
min{c +
|1
(1); j
n1
(r +
|1
(1)) + (1 j
n1
)
|1
(: + 1)}
min{c +
|1
(1); j
n1
(r +
|1
(1)) + (1 j
n1
)
|1
(:)} =
|
(: 1)
and the proposition is true for all / 0.
From these results, we know that if at stage /,
|
(j) = c +
|1
(1), then for all : j, we have
c +
|1
(1)
|
(:)
|
(j) = c +
|1
(1) and it is better to do a
maintenance operation for all : j.
4. Suggest an algorithm to solve this problem numerically and evaluate the
number of operations required to obtain the solution.
The solution can be obtained by backward induction from
0
. At each
step / = 1, ..., compute
|
(:) for : = 1, ..., , stopping as soon as the
threshold is obtained. There is a maximum of
2
operations.
Problem 3 (20 points)
You want to share a total amount between persons having the same log-
arithmic utility n(r) = lnr for receiving an amount r. Show, using a Dynamic
Programming argument, that the best way to distribute the amount among
these persons in order to maximize the total utility of the group is to give each
one an equal share.
This is a resource allocation problem. Denote
Page 3 of 5.
80-680-04 Dynamic Optimization in Management
Mid-term exam - Fall 2011 - solution
: : the number of persons remaining
a : the amount not yet allocated
q
n
(a) : the maximal total utility of a group of : persons when the total
amount to allocate between them is a.
q
n
(a) = max
0ro
{lnr + q
n1
(a r)}
q
1
(a) = lna
We want to show that q
n
(a) = :ln(
o
n
).
At : = 1, q
1
(a) = lna = ln(
o
1
)
Assume that q
n
(a) = :ln(
o
n
), we will show that this implies q
n+1
(a) =
(: + 1) ln(
o
n+1
)
q
n+1
(a) = max
0ro
lnr + :ln(
or
n
)
lnr + :ln(
or
n
)
=
1
r(or)
(r a + :r), r(a r) 6= 0
J
Jr
1
r(or)
(r a + :r)
=
1
r
2
(or)
2
:r
2
+ (a r)
2
< 0. This is a
concave function.
(r a + :r) = 0, Solution is: r
=
o
n+1
, which is interior if a 6= 0.
Replacing, we nd q
n+1
(a) = ln
o
n+1
+:ln(
o
n+1
) = (: + 1) ln(
o
n+1
), and the
proposition is true for all :, provided a 6= 0.
Problem 4 (30 points)
Consider a rm selling a product on a market where the selling price during
period / is given by
j
|
= cj
|1
+ -
|
and where c is a positive constant and the -
|
are discrete independent random
variables of mean 0 and known stationnary distribution
1
, 1 [-
|
= 0
I
] = r
I
, i =
1, ...:.
Denote:
: quantity produced during the current period
: : quantity in stock at the beginning of the current period
n : quantity in stock at the end of the current period
j : price during the current period
, : periodic discount factor
(:, j) : maximal total expected discounted prot over an innite horizon if
the quantity in stock is : and the current price is j.
Assume that the production cost in a given period is given by the function
c() and the holding cost by the function /(n), where both c and / are increasing
concave functions.
1. Write a dynamic program to maximize the total expected discounted prot
of the rm over an innite horizon, by deciding in each period how much
to produce, to store, and to sell. Assume innite demand, that is, any
quantity put on the market by the rm is sold at price j.
1
There was an error in the question, the values taken by