Quiz1 Py
Quiz1 Py
.
1. (Minima, 5 marks.) Given the following function:
Sketch the feasible space and the contours of the objective function. Interpret the problem
geometrically.
4. (Conjugate directions, 3 marks.) Given a real, symmetric matrix H, two non-zero vectors
v1 and v2 are said to be H conjugate v1T Hv2 = 0. Show that any two non-collinear eigenvectors
of H are H conjugate.
THE END
1
.
1. (Short questions. No partial marking, 0.5 mark each) Which of the following are true,
false or undecidable. Do not rewrite the questions. Simply write the answers. The optimization
is unconstrained and you may assume that the function is sufficiently smooth.
3. (Coin changers, 4 marks) Recall the coin changing problem: how can a given amount of
money W be made with the least number of coins of given denominations? Given an infinite
supply of 50 paise, Re. 1, Rs. 2 and Rs. 5 coins, formulate the coin changing problem as an
optimization problem with a twist: If a Re. 1 coin is selected, at least one Rs.2 coin should
also be selected. NB! The formulation may contain integer variables, algebraic inequalities,
equalities, but no logical conditions or statements!
verify that [0, 0]T satisfies the first and second order conditions of optimality. However, is this a
minimum? Explain why.
THE END
1
• Open book and open notes. However, all notes should be in your own handwriting.
• Read each question carefully and answer ALL questions.
• All answers should be written legibly in the answer book. Do not rewrite the questions.
• 0 denotes transpose.
Total Marks: 30
[18 + 4 + 4 +4 = 30 Marks]
3. Does the following function have a global minimum or maximum? Explain with reasons.
f (x) = 1 + 2x + 3x2 + 4x3 + . . . + 2010x2009
THE END
1
.
1. (Minima, 5 marks.) Given the following function:
Sketch the feasible space and the contours of the objective function. Interpret the problem
geometrically.
4. (Conjugate directions, 3 marks.) Given a real, symmetric matrix H, two non-zero vectors
v1 and v2 are said to be H conjugate v1T Hv2 = 0. Show that any two non-collinear eigenvectors
of H are H conjugate.
THE END
CH 5170 Process Optimization
Quiz 1
1. (Short questions. No partial marking, 4 marks) Which of the following are true, false or undecid-
able. The optimization is unconstrained and you may assume that the function is sufficiently
smooth.
3. (Formulation 8 marks.)We are planning to buy sensors that can detect the presence of poi-
sonous gases G1 , G2 , G3 , G4 , G5 , G6 , G7 , G8 in a room. However, not every sensor is affected
by any given gas, e.g., S1 is sensitive only to G1 , G2 , G3 and G4 and hence can only detect
any of them. Following is a list of sensors and the gases that they can detect and their cost.
Table 1: Sensors
Sensor Detectability Cost (in Rs.)
S1 G1 , G2 , G3 , G4 10000
S2 G1 , G5 10000
S3 G2 , G6 50000
S4 G3 , G7 30000
S5 G4 , G8 20000
We will connect each sensor to a bulb that is fit outside the room. Thus, there are as many
bulbs outside as there are sensors inside. If any of the bulbs goes off, we can infer that
some poisonous gas is present and we say that a gas has been detected. IF we can exactly
determine which gas is present, we say that a gas has been distinguished.
(a) We want to buy a set of sensors that can detect any of the gases G1 , . . . , G8 and has
minimum cost. Formulate this problem. Do not solve!
(b) What kind of an optimization problem is this?
(c) Assume that not more than one poisonous gas can be present in the room. Formulate
an optimization problem to minimize the cost of buying sensors that is able to distinguish
all gases. Again, do not SOLVE!
x − 2y + 2 ≥ 0,
−x − 2y + 6 ≥ 0
−x + 2y + 2 ≥ 0
x ≥ 0,
y ≥ 0.
Sketch the contours of the objective function and the feasible space. Interpret the problem
geometrically.
5. (Interpreting a contour plot, 5 marks.) Refer to Fig.1. It is a partial contour plot of a real valued
function of two variables x1 and x2 . The numbers along the curves represent the function
values. Based on the given plots, how many stationary points do you think are possible?
What is the nature and approximate location of each stationary point?
6
3.5
8
2.
4.5
5
2
4.5
2.8 2
3.5
1 .5
4
1 .5
3
2 .8
5
3 .5
4.
2.8 3.5 4 .5 2
x2 2 1.5 2 3.5
2.8
5
4.5
4.
2.8
1.5 2
3.5
2.8
1 3. 5
-0.4
1.5 2 4.5
0
2.8
4 .5 3.5
-1
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 3
x1
• Monday, 8 Sep, 8 AM- 8.50 AM. Total marks: 15. Closed book, closed notes.
• xT denotes transpose of x.
• Be concise. Do not reproduce the questions.
.
1. (Quadratic functions) Given the following function:
[ ] [ ]
1 −2 3 −1
f (x) = 2014 + aT x + xT Hx, with a = , H=
2 −2 −1 3
[ ]
−1
(a) (1 mark) One of the eigenvectors of H is known to be: . Determine the other
−1
eigenvector and the corresponding eigenvalues with minimal calculations.
(b) (0.5 mark) Hence, show that the function is convex.
(c) (2 marks) Determine any and all possible minima. Verify the first and second order
conditions of optimality.
(d) (0.5 mark) Is (Are) the minimum (minima) global? Explain.
(e) (2 marks) Sketch the contours of the objective function. Pay careful attention to minima
(if any), orientation and aspect ratios of the contours.
(f) ( 0.5 mark) Starting from any point x0 , show that
1
f (x0 + αp) = f (x0 ) + αpT ∇f (x0 ) + α2 pT Hp
2
(g) (1 mark) Hence, show that for x0 = [0, 0]T , p = −∇f (x0 ) is a descent direction, i.e, if
you go along p from x0 , f will decrease initially.
(h) (2.5 marks) Will f continue to decrease indefinitely? If not, how far can you go (or
equivalently upto what point can you go) such that f continues to decrease?
3. (Coin changers, 3 marks) Recall the coin changing problem: how can a given amount of
money W be made with the least number of coins of given denominations? Given an infinite
supply of 50 paise, Re. 1, Rs. 2 and Rs. 5 coins, formulate the coin changing problem as an
optimization problem with a twist: the final collection may contain either coins of Re. 1 or coins
of Rs.2, but not both. There is no restriction on the other denominations. NB! The formulation
may contain integer variables, algebraic inequalities, equalities, but no logical conditions or
statements!
THE END
1
• Thursday, 10 Sep, 8 AM- 8.50 AM. Total marks: 20. Closed book, closed notes.
• xT denotes transpose of x.
• Be concise. Do not reproduce the questions.
.
1. (Quadratic functions) In each subquestion, there are several choices provided. It is possible that
none, one or more than one may be correct. Answer accordingly with justification (but be concise!)
Most require minimal calculations. Given the following function:
" # " #
T 1 T −8 6 2
f (x) = 2015 + c x + x Hx, with c = , H=
2 −11 2 9
(a) (1.5
" marks)
# Which
" # of the" following
# "are #eigenvectors?
2 1 4 1
a) , b) , c) , d)
−1 1 −2 2
e) none of the above
(b) (1 mark) The eigenvalues are
a) 5, b) 10, c) − 5, d) − 10, e) none of these.
(c) (1 mark) The stationary point [1, 1]T is a
a) local maximum, b) local minimum, c) global minimum d) global maximum, e) none of the
above.
(d) (1 mark) The contours of the objective function are
a) ellipses, b) hyperbolae, c) parabolae, d) straight lines, e) None of these.
T
(e) (2 "marks)# At the
" point
# [1, " −1] #, which
" of the
# following vectors are descent directions:
−4 4 6 −6
a) , b) , c) , d)
−18 18 17 −17
e) none of the above
(f) (2 marks) Which of the following vectors are tangential to the contours of the objective
function
" passing
# " through
# the " point
# [1, "−1]T#:
9 −9 −9 9
a) , b) , c) , d)
−2 −2 2 2
e) none of the above
2. (General descent directions, 2.5 marks) Given an arbitrary function f (x) and a positive
definite matrix B, show that −B∇f (x) is a (locally) descent direction at x.
3. (Water distribution network, 9 marks) Consider the network shown in Figure 1. The water
distribution network consists of a source node 0 and three demand nodes 1,2 and 3. Node 0 and
2
II
2
I
III
0 1
0
Figure 1
node 1 are connected by link I. Likewise, link II connects nodes 1 and 2. Link III connects nodes
1 and 3. The diameters of the pipes are D1 , D2 , D3 respectively (in mm). Flow is by gravity and it is
possible to achieve a head of 100 m at source node 0. Minimum head values at nodes 1, 2 and 3 are
80, 85 and 80 m respectively. Lengths of links I, II and III are 300, 500 and 400 m respectively.
Flow rates in links I, II and III are 9,3 and 2 m3 /min respectively. Commercially available pipes
are available only in certain diameters, e.g., 80 mm, 100mm, 125 mm etc. Table 1 contains a list
of the commercially available pipes and their unit costs. You may use the following expression for
(a) (3 marks) A link can have a pipe of a single diameter that appears in Table 1.
(b) (3 marks) A link can have upto two pipes of commercially available sizes.
(c) (3 marks) A link can have upto two pipes of commercially available sizes, but they have to be
adjacent diameters, i.e., if you choose a pipe of diameter 250 mm for a link, you may choose
another pipe of diameter 200 or 300 mm, but not 350 mm. If you choose 200 mm, you may
choose 250 mm and so on.
1
• Friday, 9 Sep, 8 AM- 8.50 AM. Total marks: 15. Closed book, closed notes.
• xT denotes transpose of x.
• Be concise. Do not reproduce the questions. In case of any doubts, state any assumptions that
you need to make and proceed.
.
1. (Quadratic functions) Given the following function:
" # " #
1 −8 6 2
f (x) = 2016 + a x + xT Hx, with a =
T
, H=
2 −11 2 9
#"
1
(a) (2 marks) One of the eigenvectors of H is known to be: . Determine the other
2
eigenvector and the corresponding eigenvalues with minimal calculations.
(b) (3 marks) Determine stationary point(s) x∗ . Classify the stationary point(s) as precisely
as you can.
(c) (2 marks) Sketch the contours of the objective function. Pay careful attention to sta-
tionary point(s), orientation, shape and sizes of the contours.
(d) (0.5 mark) Show that
1
f (x) − f (x∗ ) = (x − x∗ )T H(x − x∗ )
2
(f) (1 mark) Hence, show that for x0 = [0, 0]T , p = −∇f (x0 ) is a descent direction, i.e, if
you go along p from x0 , f will decrease initially.
(g) (3 marks) If p = −B∇f (x0 ), where B is a square symmetric matrix of size 2 × 2, does
there exist B such that if you start from x0 and go along p, you will reach x∗ .
3. (Global Minimum, 1 mark) Does the following function have a global miniminum. Explain.
THE END
1
• 8 AM- 8.50 AM. Total marks: 15. Closed book, closed notes.
• xT denotes transpose of x.
• If and when in doubt, clearly state your assumptions and proceed.
(c) (2 marks) One of the eigenvectors is known to be [1, −2]T . Determine the other eigenvector
and both eigenvalues.
(d) (2 mark) Determine all stationary points and classify them as precisely as you can.
(e) (2 marks) Sketch the contours of f .
2. (Duopoly ) Consider a company manufacturing Q units of a product. The market price per unit
product is inversely proportional to supply and can be expressed as a−bQ. The cost of manufacturing
(per unit product) is c.
(a) (1 mark) Set up a simple optimization problem to maximize profit and show that the optimal
production is (a − c)/2b.
(b) (4 marks) Now, assume that there are two competing, rational manufacturers who do not
co-operate with each other. Show that ideally, each should manufacture (a − c)/3b units.
THE END