TactivergeLite

Lite / Textbooks / Engineering Design and Optimization / Chapter 6

6. Formulating optimisation problems

Version 1 · Technically checked (automated checks only) · 4 source lessons · Full interactive version

Introduction

Optimisation begins with formulation: what can you choose (the variables), what you want (the objective) and what you must respect (the constraints). Get that right and the mathematics follows. This chapter formulates design problems, finds optima with calculus where the objective is smooth, and works three classics: the minimum-material can, maximum power transfer and the trade-offs that a single objective cannot capture.

Figure 6.1. The minimum-material can (described in words)

Surface area A(r) = 2πr² + 2V/r of a closed can holding 1000 cm³, plotted against radius. The curve has one minimum, 553.6 cm² at r = 5.42 cm, where the height 10.84 cm equals the diameter. Smaller radii need tall cans, larger ones wide lids.

Explanation

Built from 4 School lessons. Each part is the lesson's own explanation.

6.1 Formulate first: variables, objectives, constraints and Pareto fronts

The lightest arm draws the most power; the frugal one is heaviest. Is there a 'best' arm at all?

The three parts of a formulation

Decision variables: what you are free to choose (arm length, motor size, gain). Objective: one number to minimise or maximise (mass, energy, cost, error). Constraints: limits that every acceptable design must satisfy, written as inequalities or equalities (torque ≥ 2 N·m, mass ≤ 5 kg). Together: minimise f(x) subject to gᵢ(x) ≤ 0. The set of x that satisfies all constraints is the feasible region.

Hard constraints screen; objectives rank

A requirement that must be met (fits the launch envelope, survives −80 °C) is a constraint: designs that break it are out, however good they look otherwise. Things you would like more or less of are objectives. Screening first keeps a brilliant-but-illegal design from distorting your comparison.

Dominance and the Pareto front

Design A dominates B if A is no worse on every objective and strictly better on at least one. The non-dominated designs form the Pareto front: along it, improving one objective must cost another. Everything behind the front is simply worse and can be discarded without any value judgement.

Collapsing to one number

A weighted sum w·f₁ + (1 − w)·f₂ (on normalised objectives) always selects a front design, but which one depends on w, and the weights are a value judgement that should be stated and defended. Weighted sums can also miss designs in a concave part of the front; showing the whole front to decision-makers is often more honest.

Common mix-ups

Open the Lite lesson: Formulate first: variables, objectives, constraints and Pareto fronts

6.2 Stationary points: the top of the hill

At the very best design, a small change in either direction makes things slightly worse. In calculus, that has a name: the derivative is zero.

Stationary points

Where f′(x) = 0 the tangent is horizontal: a stationary point. It may be a local maximum, a local minimum or a stationary inflection (like x³ at 0, flat but still rising). Solve f′ = 0 to find the candidates.

Classifying

Second-derivative test: f″ < 0 means a maximum (concave down), f″ > 0 a minimum, f″ = 0 inconclusive. Sign test: if f′ changes from + to − the point is a maximum; − to +, a minimum. The sign test always works.

Endpoints and domains

On a closed interval, the best value may sit at an end, not at a stationary point. A pump limited to 0 ≤ q ≤ 10 L/s whose stationary point is at 15 L/s has its best allowed design at q = 10. Always list candidates: stationary points inside the domain plus both endpoints.

Derivation: The optimum of a quadratic cost
  1. Many design costs are well modelled near their optimum by a quadratic C(q) = a·q² − b·q + c with a > 0 (for example, wear rising with the square of flow rate while faster pumping saves time).

  2. Differentiate: C′(q) = 2a·q − b.

  3. Set C′(q) = 0: q* = b/(2a).

  4. Second derivative: C″(q) = 2a > 0, so the curve is concave up and q* is a minimum.

  5. Minimum cost: C(q*) = c − b²/(4a). The same steps give the vertex of any parabola.

Common mix-ups

Open the Lite lesson: Stationary points: the top of the hill

6.3 The minimum-material can

A drinks company makes billions of cans. Shave a few square centimetres of aluminium from each and you save thousands of tonnes. What shape uses the least metal?

Objective, constraint, decision

Name three things before any calculus. Objective: what to minimise or maximise (metal area). Constraint: what must hold (volume = 330 cm³). Decision variable: what you choose (radius). The constraint lets you write everything in terms of one variable.

Reading the result

For 330 cm³: r* = (330/2π)^(1/3) ≈ 3.74 cm, h* ≈ 7.49 cm, A* ≈ 264 cm². A 3 cm radius needs 277 cm²: 5% more metal. Because the optimum is flat, being a few millimetres off costs very little; being far off costs a lot.

Why real cans are taller

Real drinks cans are about 6.6 cm wide and 11.5 cm tall. The model assumed uniform metal thickness, but can ends are much thicker than walls (they resist the pressure), so wall area is cheaper than end area. Grip, stacking and vending machines matter too. The model is right about its assumptions; the assumptions differ from reality.

Derivation: Minimising the surface area of a can
  1. Objective: surface area A = 2πr² (two ends) + 2πrh (the wall). Constraint: volume V = πr²h is fixed.

  2. Use the constraint to eliminate h: h = V/(πr²).

  3. Substitute: A(r) = 2πr² + 2πr·V/(πr²) = 2πr² + 2V/r, a function of r alone.

  4. Differentiate: A′(r) = 4πr − 2V/r².

  5. Set A′ = 0: 4πr³ = 2V, so r* = (V/(2π))^(1/3).

  6. Then h* = V/(πr²) = 2πr³/(πr²) = 2r: height equals diameter.

  7. A″(r) = 4π + 4V/r³ > 0 for all r > 0, so this is the minimum.

Common mix-ups

Open the Lite lesson: The minimum-material can

6.4 Maximum power transfer

A 12 V battery with 4 Ω of internal resistance drives a load. Make the load small and the current is huge; make it big and the current is tiny. Which load gets the most power?

The model

A real source is an ideal EMF V in series with an internal resistance r. With a load R the current is V/(R + r) and the load gets P = V²R/(R + r)². Both extremes give zero power: R = 0 (no voltage across the load) and R → ∞ (no current).

The result

Calculus gives R = r, P_max = V²/(4r). For 12 V and 4 Ω: 9 W. The curve is flat near the top: R = 8 Ω still gives 8 W. Matching does not need to be exact.

Power is not efficiency

At R = r, as much power is wasted inside the source as is delivered: 50% efficiency. Power grids run with loads far larger than the source resistance, for efficiencies above 90%. Choose the objective first: maximum power (signals, antennas) or maximum efficiency (energy systems).

Derivation: Why R = r maximises the load power
  1. Current I = V/(R + r), so the load power is P = I²R = V²R/(R + r)².

  2. Differentiate with the quotient rule (u = V²R, v = (R + r)²): P′ = V²[(R + r)² − R·2(R + r)]/(R + r)⁴.

  3. Simplify by cancelling one (R + r): P′ = V²(R + r − 2R)/(R + r)³ = V²(r − R)/(R + r)³.

  4. P′ = 0 only at R = r. For R < r, P′ > 0 (rising); for R > r, P′ < 0 (falling): a maximum.

  5. Maximum power P_max = V²r/(2r)² = V²/(4r). Efficiency R/(R + r) = ½ at the optimum.

Common mix-ups

Open the Lite lesson: Maximum power transfer

Worked examples

Formulate first: variables, objectives, constraints and Pareto fronts: example 1

Designs (mass kg, power W): P (3, 60), Q (4, 40), R (5, 45), S (6, 30). Which are on the front?

Solution

R is dominated by Q (lighter and lower power). P, Q and S each trade mass for power: none is beaten on both. Front = {P, Q, S}.

Stationary points: the top of the hill: example 1

Classify the stationary points of f(x) = x³ − 3x.

Solution

f′ = 3x² − 3 = 0 at x = ±1. f″ = 6x: at x = −1, f″ = −6 < 0, a maximum (f = 2); at x = 1, f″ = 6 > 0, a minimum (f = −2).

The minimum-material can: example 1

Find the minimum-metal radius for a 500 mL can.

Solution

r* = (500/(2π))^(1/3) = (79.6)^(1/3) ≈ 4.30 cm; h* = 8.60 cm; A* = 6πr*² ≈ 349 cm².

Maximum power transfer: example 1

V = 12 V, r = 4 Ω. Find P at R = 8 Ω and compare with the maximum.

Solution

P = 144 × 8/(12)² = 8 W, compared with 9 W at R = 4 Ω. Efficiency at 8 Ω is 8/12 = 67%: more efficient, slightly less power.

Interactive figures, in words

Figure 6.2 from Formulate first: variables, objectives, constraints and Pareto fronts

With 'Mass vs power', mark the designs you think are on the front and check. Then lower the mass limit to 5 kg: which designs drop out, and does the front change? Finally slide the weight from 0 to 1 and list the designs the weighted sum picks along the way.

Eight hypothetical arm designs A to H are plotted by two objectives. On mass versus power the non-dominated designs are those for which no other design is both lighter and lower-power. Lowering the mass limit greys out heavier designs and can change the front. A weight slider shows the weighted-sum choice moving between front designs as the weight changes, never onto a dominated design.

Figure 6.3 from Stationary points: the top of the hill

Choose 'Biggest pen against a wall'. Slide x and watch the sign of dA/dx in the readout: it tells you which way to move. Find the top by following the sign, then reveal the optimum. Change L and predict where the new optimum is before you look.

In the optimiser's pen mode, area A(x) = x(L − 2x) is a downward parabola. The readout gives dA/dx = L − 4x: positive for small x, negative for large x, zero at x = L/4, where the area is L²/8 (200 m² for L = 40 m).

The interactive versions are in the full chapter.

Laboratory

These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.

Practice

Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.

  1. 'The arm must lift a 2 kg sample' and 'the arm should be as light as possible'. Which is a constraint and which an objective?
    Answer it in “Formulate first: variables, objectives, constraints and Pareto fronts”
  2. Design X costs £900 and weighs 4.2 kg. Design Y costs £1,100 and weighs 4.8 kg. Lower is better for both. What can you say?
    Answer it in “Formulate first: variables, objectives, constraints and Pareto fronts”
  3. A report picks design E 'by weighted sum' without stating the weights. What's the problem?
    Answer it in “Formulate first: variables, objectives, constraints and Pareto fronts”
  4. At a stationary point f′(a) = 0 and f″(a) = 5. What is it?
    Answer it in “Stationary points: the top of the hill”
  5. A cost C(q) = 0.1q² − 3q + 50 has its stationary minimum at q = 15, but the pump can only run for 0 ≤ q ≤ 10. Where is the cheapest allowed setting?
    Answer it in “Stationary points: the top of the hill”
  6. At the minimum-metal optimum, what is the ratio h/r?
    Answer it in “The minimum-material can”
  7. Real drinks cans are taller than h = 2r. What is the most important reason?
    Answer it in “The minimum-material can”
  8. Why do power stations not match their loads for maximum power transfer?
    Answer it in “Maximum power transfer”

Engineering applications

Packaging

Real drinks cans are taller than the material optimum because the objective includes more than metal: grip, stacking, the cost of thicker ends and what fits a vending machine.

Matching loads

Audio amplifiers and antennas are matched to their loads for maximum power transfer, but power stations are not, because matching wastes half the power as heat in the source.

Watch (optional)

Streaming video uses a lot of data. Everything you need is in the text.

Summary

Glossary

Derivative (rate of change)
The derivative of a quantity is its instantaneous rate of change: the gradient of its graph at a point. Field Guide
Efficiency
Efficiency is the fraction of input energy or power that comes out as useful output. The rest becomes heat, sound or other losses. Field Guide
Electrical power
The power transferred in a component is the voltage across it multiplied by the current through it. For a resistor this can also be written I²R or V²/R. Field Guide
Power (rate of doing work)
Power is how fast energy is transferred: energy divided by time. For a force moving at steady speed, power is force times velocity. Field Guide

Project: Formulate and solve a sizing problem

Choose a sizing problem from your own design, such as a battery and motor pair or a bracket's thickness. Write the variables, objective and constraints with units, solve it with calculus or a careful sweep, and say which constraint is active at the optimum.

Deliverables

Write it up on paper or in your own notes. Lite never stores what you write.

References

Further reading from the lessons

← 5. System architecture and budgets7. Linear programming and search →