PO MidSem Solution Part2-1
PO MidSem Solution Part2-1
Monsoon 2024-25
Question 1
(a) A company is redesigning its parallel flow heat exchanger to increase its heat transfer.
There are certain limitations on the design problem. The smallest available conducting
tube has a radius of 0.5 cm and all tubes must be of the same size. Further, the total cross-
sectional area of all the tubes cannot exceed 2000 cm2 to ensure adequate space inside the
outer shell. A designer has to determine the number of tubes and the radius of each tube to
maximize the surface area of the tubes in the exchanger. Formulate this as an optimization
problem. 2 Marks
Solution
We have to decide the size of the tube and the number of tubes.
The smallest available conducting tube has a radius of 0.5 cm. i.e. r ≥ 0.5. 0.25 Marks
The total cross-sectional area of all the tubes cannot exceed 2000 cm2 .
The objective is to maximize the surface area of the tubes in the exchanger. i.e. n×2πrL, where,
L is the length of the tube. As L is fixed, L need not be considered in the optimization.i.e.
1
The problem can be formulated as follows:
maximize nπr
r ≥ 0.5
n ≥ 1, an integer
π = 3.14
(b) A ventilator manufacturing company can produce R units in a month, using regular pro-
duction, at a cost of B dollars per unit. It can produce additional units at C dollars per
unit by using overtime (C > B). The firm can store units from month to month at a cost
of S dollars per unit per month. The firm forecasts the demand over the next n months to
minimizes cost.
3 Marks
Solution
1, 2, ..., n.
Let zi be the number of ventilators to be stored from end of month-i to the next month,
Constraints
Assuming that the sale happens at the end of a month and considering only the next n months,
there is no need to store anything at the end of n-th month, zn = 0. Also, assuming that there
2
0 ≤ xi ≤ R, an integer, i = 1, 2, ..., n
yi ≥ 0, an integer, i = 1, 2, ..., n
zi ≥ 0, an integer, i = 1, 2, ..., n
z0 = zn = 0
1.5 Marks
Whatever produced in second month plus stored in the first month need to be sold or stored
again: z1 + x2 + y2 = D2 + z2 .
Similarly, z2 + x3 + y3 = D3 + z3 .....
n
X
minimize Bxi + Cyi + Szi
i=1
0 ≤ xi ≤ R, an integer, i = 1, 2, ..., n
yi ≥ 0, an integer, i = 1, 2, ..., n
zi ≥ 0, an integer, i = 1, 2, ..., n
z0 = zn = 0
3
Question 2
g2 (x) = x1 + x22 ≤ 1
g3 (x) = x1 − x2 ≥ 2
3 Marks
Solution
We need to analyse the convexity of the function and the feasible region.
0 0
H=
0 −4
The eigen values of the Hessian are λ = 0, −4, which means that the Hessian is negative-
The eigen values of the Hessian are λ = −2, −2, which means that the Hessian is negative-definite.
Therefore, the function g1 (x) is strictly concave. Therefore, the set given by g1 (x) ≥ −9 will be
The eigen values of the Hessian are λ = 0, 2, which means that the Hessian is positive-semidefinite.
Therefore, the function g2 (x) is convex. Therefore, the set given by g2 (x) ≤ 1 will be a convex
4
set. 0.5 Marks
g3 (x) is a linear function which is both convex and concave. Therefore, the set given by g3 (x) ≥ 2
The intersection of convex sets will also be a convex set. 0.5 Marks
As the problem is maximization of a concave function upon a convex set, the problem is a convex
(b) Find all the stationary points of the function f (x) = (x2 − 1)4 and classify them to maxi-
2 Marks
Solution
(c) Write the first three terms of the Taylor series for the function f (x) = ln(x − 1) at x = 3.
1 Mark
Solution
5
The Taylor series is given by
1
f (x) = f (x0 ) + (x − x0 )f ′ (x0 ) + (x − x0 )2 f ′′ (x0 )
2!
0.25 Marks
1
The second term, (x − x0 )f ′ (x0 ) = (x − 3) = 0.5(x − 3)
3−1
0.25 Marks
1 1 −1
The third term, (x − x0 )2 f ′′ (x0 ) = (x − 3)2 × = 0.125(x − 3)2
2! 2! (3 − 1)2
0.5 Marks
Question 3
the compression efficiency, the compressed air from the first stage of compression is cooled (it is
passed through a heat exchanger) before entering the second stage of compression. For isentropic
where, Cp is the specific heat of air at constant pressure, k > 1 is the ratio of specific heat at
constant pressure to specific heat at constant volume of air, and T1 is the entering gas tempera-
ture. Find analytically the intermediate pressure p2 at which cooling is required to minimize the
Solution
The analytical solution is obtained by applying the necessary condition, i.e. dW/dp2 = 0.
6
Solving the above equation, we get
√
p2 = p1 p3
2 Marks
√
To check whether W is minimum at p2 = p1 p3 , second-derivative needs to be evaluated.
dW k−1 h (1−k)/k −1/k (k−1)/k (1−2k)/k
i
= Cp T1 (p1 ) (p2 ) − (p3 ) (p2 )
dp2 k
2
d W k−1 (1−k)/k −1 −1
k −1 (k−1)/k 1 − 2k ( 1−2ks −1)
= C T
p 1 (p 1 ) (p2 ) − (p3 ) (p2 ) k
dp22 k k k
2
d2 W
k−1 (1−3k)/2k (−k−1)/2k
= 2Cp T1 (p1 ) (p3 ) >0
dp22 p2 =√p1 p3 k
√
Therefore, W is minimum at p2 = p1 p3 . 2 Marks
Question 4
(a) Start with an initial interval of uncertainty [0,1] and reduce the interval of uncertainty to
less than 30% of its original size using dichotomous search with δ = 0.002. 3 Marks
(b) Determine the number of function evaluations required to reduce the interval of uncertainty
to less than 20% of its original size using (i) golden section method and (ii) Fibonacci
method. 2 Marks
Solution:
Initial interval of uncertainty, Lo = [0,1], and step size δ = 0.002. The first two experiments will
result in,
Lo Lo
x1 = 2 - 2δ , x2 = 2 + δ
2 0.5 Marks
Substituting the values of Lo and δ into the expression for x1 and x2 , we get
7
1−0 0.002 1−0 0.002
x1 = 2 − 2 = 0.499 and x2 = 2 + 2 = 0.501. 0.5 Marks
The function value at x1 and x2 are f1 = f (x1 ) = 1.2736 and f2 = f (x2 ) = 1.2739, respectively.
Now, since f2 > f1 and the objective is to maximize, the revised interval of uncertainty, L1 is
0.5 Marks
The function value at x3 and x4 are f3 = 1.2735 and f4 = 1.2732. The function value at x3 is
0.5 Marks
This interval of uncertainty is 0.2515/1 i.e. 25% of the initial interval of uncertainty. So, no
(b) (i) The final and initial interval of uncertainty for golden section method are related as
Ln
= (0.618)n−1 (2)
Lo
The optimal solution is assumed to be at the mid-point of the interval of uncertainty. Therefore,
the relation in Equation 2 can be used as described below to reduce the size of interval to less
than 20%:
20
(0.618)n−1 < 100
0.5 Marks
8
n − 1 > 3.3369
n > 4.3369 ≈ 5
0.5 Marks
(ii) For the Fibonacci method, the relation between the final and initial interval of uncertainty
is given as,
Ln 1
= (3)
Lo Fn
Ln
As done for the previous section, the Lo < 0.2 in Equation 3, the number of function evaluation
required are,
1 20
Fn < 100
0.5 Marks
Fn > 100/20
Fn > 5
Now, the Fibonacci series is given as, 1, 1, 2, 3, 5, 8, 13, ...., and the next value of Fn is 8. Thus
0.5 Marks
Question 5
(a) Carry out the initial and one additional iteration of Quasi-Newton method to solve the
(b) Solve using secant method starting with an initial interval of uncertainty [0.95, 1.05] and
9
Solution:
1 Marks
x0 = 0, f (x0 ) = 1, f (xo + 0.5) = 0.0625, f (x0 − 0.5) = 5.0625, and using Equation 5, we get:
0.5×[0.0625−5.0625]
x1 = xo − 2×[0.0625−2×1+5.0625]
x1 = 0.4
0.5 Marks
x1 = 0.4, f (x1 ) = 0.1296, f (x1 + 0.5) = 0.0001, f (x1 − 0.5) = 1.4641, and using Equation 5, we
get:
0.5×[0.0001−1.4641]
x2 = x1 − 2×[0.0001−2×0.1296+1.4641]
x2 = 0.7037
0.5 Marks
f ′ (a) × (b − a)
xi = a − (6)
f ′ (b) − f ′ (a)
0.5 Marks
Here, a = 0.95 and b = 1.05, and f ′ (a) = −0.0005, f ′ (b) = 0.0005. 0.5 Marks
−0.0005×(1.05−0.95)
x1 = 0.95 − 0.0005−(−0.0005)
x1 = 1
10
0.5 Marks
and |f ′ (x1 )| = 0 which is less than ϵ = 0.001 and hence, the iteration is terminated.
0.5 Marks
Question 6
To find the maximum of the following function, perform one iteration of Newton’s method, using
x0 = −2
10 3 1 4 4 5 1 6
f (x) = 1 − 8x + 2x2 − x + x + x − x (7)
3 4 5 6
2 Marks
Solution:
f ′ (xk )
xk+1 = xk − (8)
f ′′ (xk )
0.5 Marks
The initial guess is given as, x0 = −2. The first and second derivative value at this point are
Question 7
11
(b) Cubic polynomial using, x = 0, 4 2 Marks
Solution:
(a) For the quadratic approximation, assume the given function can be represented as,
0.5 Marks
Now, to evaluate the value of a, b, and c, three equations will be required. These equations will
come from three initial guess of x, given as x1 = 0, x2 = 2, and x3 = 4. The function value at
these three points are f1 = f (x1 ) = 5, f2 = f (x2 ) = −43, and f3 = f (x3 ) = 629. Substituting
c=5
4a + 2b + 5 = −43
16a + 4b + 5 = 629
0.5 Marks
1 Marks
(b) For the Cubic approximation, the given function is assumed to be represented by
0.5 Marks
The evaluation of values of a, b, c, d will require four equations. Now, since, there are two points
given, the four equations will involve two equation from function value and two from the first
12
derivative of the function. The first derivative of the original function is
d=5
c = −20
48a + 8b − 20 = 1020
1 Marks
a = 43, b = −128, c = −20, and d = 5, respectively. Thus, the approximated cubic polynomial
is
0.5 Marks
13