Skip to main content

Chapter 2 · 4 hours

Optimization Techniques

Practice questions

Practice questions and answers

3 exam-style questions on this chapter, written for this site from the official syllabus. We haven’t found past IOE papers for this subject yet; if you have some, share them in the community.

  • Practice · 6 marks

A closed cylindrical steel tank must hold 2 m³ of liquid. Using differential calculus, find the diameter and height that need the least sheet-metal area. Show that your solution is a minimum and give the minimum area.

Answer

Method: optimisation by differential calculus. Write the objective (surface area), eliminate one variable using the constraint (volume), set the first derivative to zero and check the second derivative.

Formulation

Let rr = radius and hh = height.

  • Objective: A=2πr2+2πrhA = 2\pi r^2 + 2\pi r h (minimise)
  • Constraint: V=πr2h=2 m3⇒h=Vπr2V = \pi r^2 h = 2\ \text{m}^3 \Rightarrow h = \dfrac{V}{\pi r^2}

Substitute hh:

A(r)=2πr2+2VrA(r) = 2\pi r^2 + \frac{2V}{r}

Stationary point

dAdr=4πr−2Vr2=0  ⇒  r3=V2π\frac{dA}{dr} = 4\pi r - \frac{2V}{r^2} = 0 \;\Rightarrow\; r^3 = \frac{V}{2\pi} r=(22π)1/3=0.6828 mr = \left(\frac{2}{2\pi}\right)^{1/3} = 0.6828\ \text{m}

Then D=2r=1.3656D = 2r = 1.3656 m and

h=Vπr2=2π(0.6828)2=1.3656 m=2rh = \frac{V}{\pi r^2} = \frac{2}{\pi (0.6828)^2} = 1.3656\ \text{m} = 2r

so the best tank has height equal to diameter.

Check for minimum

d2Adr2=4π+4Vr3=12.566+80.3183=37.7>0\frac{d^2A}{dr^2} = 4\pi + \frac{4V}{r^3} = 12.566 + \frac{8}{0.3183} = 37.7 > 0

The second derivative is positive, so this is a minimum.

Minimum area

Amin=2π(0.6828)2+2π(0.6828)(1.3656)=2.929+5.859=8.79 m2A_{min} = 2\pi (0.6828)^2 + 2\pi (0.6828)(1.3656) = 2.929 + 5.859 = 8.79\ \text{m}^2

Answer: D=h=1.366D = h = 1.366 m, Amin=8.79 m2A_{min} = 8.79\ \text{m}^2 (second derivative =37.7>0= 37.7 > 0).

  • Practice · 3+5 marks

(a) Explain the golden section search method for a single-variable function, and state why it is better than the exhaustive search. (b) Use the golden section method to locate the minimum of f(x)=x2+54/xf(x) = x^2 + 54/x in the interval [1,5][1, 5]. Carry out four iterations and give the final interval and the estimated minimum. Take the golden ratio constant as 0.618.

Answer

(a) Golden section search

It is an interval-reduction method for a unimodal function (one minimum in the interval). Two interior points are placed at

x1=b−0.618(b−a),x2=a+0.618(b−a)x_1 = b - 0.618(b-a), \qquad x_2 = a + 0.618(b-a)
  • If f(x1)<f(x2)f(x_1) < f(x_2), the minimum lies in [a,x2][a, x_2], so set b=x2b = x_2.
  • Otherwise it lies in [x1,b][x_1, b], so set a=x1a = x_1.

The old interior point is reused as one new interior point, so each iteration needs only one new function evaluation and shrinks the interval by 0.618. Exhaustive search needs many evaluations for the same accuracy, so golden section is much cheaper. It needs no derivative.

(b) Numerical

Initial [a,b]=[1,5][a,b] = [1,5], length 4.

Iteraabbx1x_1x2x_2f(x1)f(x_1)f(x2)f(x_2)Keep
11.0005.0002.5283.47227.75227.608[x1,b][x_1, b]
22.5285.0003.4724.05627.60829.763[a,x2][a, x_2]
32.5284.0563.1113.47227.03627.608[a,x2][a, x_2]
42.5283.4722.8893.11127.03827.036[x1,b][x_1, b]

After four iterations the interval is [2.889,3.472][2.889, 3.472] (length 0.583, which is 4×0.61844\times0.618^4).

Estimated minimum at the mid-point: x∗≈3.18x^* \approx 3.18, f≈27.09f \approx 27.09.

Check by calculus: f′=2x−54/x2=0⇒x3=27⇒x=3f' = 2x - 54/x^2 = 0 \Rightarrow x^3 = 27 \Rightarrow x = 3, fmin=27f_{min} = 27. The search interval contains this point.

Answer: final interval [2.89, 3.47][2.89,\ 3.47]; x∗≈3.2x^* \approx 3.2 (true minimum x=3x=3, f=27f=27).

  • Practice · 4+4 marks

Write short notes on: (a) linear programming and geometric programming; (b) multivariable search methods and multifactor objective functions in design optimisation.

Answer

(a) Linear programming and geometric programming

Linear programming (LP) optimises a linear objective subject to linear constraints.

Maximise Z=c1x1+c2x2+…subject to ∑aijxj≤bi, xj≥0\text{Maximise } Z = c_1x_1 + c_2x_2 + \dots \quad \text{subject to } \sum a_{ij}x_j \le b_i,\ x_j \ge 0
  • Graphical method for two variables: plot constraints, find the feasible region, and check the corner points. The optimum is always at a vertex.
  • For many variables the simplex method is used.
  • Design use: product mix, material cutting, allocation of machine hours.

Geometric programming (GP) handles objective and constraints written as posynomials (sums of positive terms with product of powers):

f(x)=∑kck x1ak1x2ak2⋯xnakn, ck>0f(x) = \sum_k c_k\, x_1^{a_{k1}} x_2^{a_{k2}} \cdots x_n^{a_{kn}},\ c_k>0

Using the arithmetic-geometric mean inequality it gives the optimum cost from the dual problem, often before the design variables are known. The weights satisfy normality ∑wk=1\sum w_k = 1 and orthogonality conditions. The number of degrees of difficulty is (number of terms) −- (variables) −- 1; zero means the solution is found by solving linear equations. Use: design of tanks, beams, gear trains where cost has power-law terms.

(b) Multivariable search methods

Methods for several variables without derivatives (or with them):

  • Lattice (grid) search: evaluates a grid; simple but expensive.
  • Univariate search: change one variable at a time to its best value, then the next, and repeat.
  • Steepest descent (gradient): move along −∇f-\nabla f with a step length found by line search.
  • Pattern search (Hooke-Jeeves), Simplex (Nelder-Mead), Newton and conjugate gradient for faster convergence.
   x2
    |      . . .  contour of f
    |    .  *  .   * = optimum
    |  .  /  .     steps follow
    |   /___.      descent path
    +----------- x1

Multifactor objective functions

Real designs have several goals (weight, cost, life, safety). Methods to combine them:

  • Weighted sum: F=w1f1+w2f2+…F = w_1 f_1 + w_2 f_2 + \dots with ∑wi=1\sum w_i = 1 (after normalising the fif_i).
  • Constraint method: optimise the most important goal and convert the others to constraints.
  • Pareto set: collection of designs where one objective cannot improve without worsening another; the designer chooses from it.

Written from the official syllabus. Questions and answers are written for this site; check them against your class notes.

Chapter titles and hours from the IOE syllabus ↗