Lite / Textbooks / Engineering Design and Optimization / Chapter 6
6. Formulating optimisation problems
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
Every optimisation problem has one best answer.
✓ With several objectives there is usually a front of equally defensible answers; choosing among them is a value judgement.Constraints and objectives are interchangeable.
✓ Constraints are pass/fail limits; objectives are ranked. Moving one into the other changes the problem.
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
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).
Differentiate: C′(q) = 2a·q − b.
Set C′(q) = 0: q* = b/(2a).
Second derivative: C″(q) = 2a > 0, so the curve is concave up and q* is a minimum.
Minimum cost: C(q*) = c − b²/(4a). The same steps give the vertex of any parabola.
Common mix-ups
f′ = 0 always means a maximum or minimum.
✓ It can be a stationary inflection, like x³ at 0. Classify every candidate.The optimum is always where the derivative is zero.
✓ With constraints or a limited domain, it can be at an endpoint.
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
Objective: surface area A = 2πr² (two ends) + 2πrh (the wall). Constraint: volume V = πr²h is fixed.
Use the constraint to eliminate h: h = V/(πr²).
Substitute: A(r) = 2πr² + 2πr·V/(πr²) = 2πr² + 2V/r, a function of r alone.
Differentiate: A′(r) = 4πr − 2V/r².
Set A′ = 0: 4πr³ = 2V, so r* = (V/(2π))^(1/3).
Then h* = V/(πr²) = 2πr³/(πr²) = 2r: height equals diameter.
A″(r) = 4π + 4V/r³ > 0 for all r > 0, so this is the minimum.
Common mix-ups
With two unknowns you need two derivatives set to zero.
✓ Use the constraint to eliminate one variable first; then a single derivative does the job.If reality differs from the optimum, the optimisation was pointless.
✓ The gap points to the assumption that matters; a better model of costs explains real designs.
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
Current I = V/(R + r), so the load power is P = I²R = V²R/(R + r)².
Differentiate with the quotient rule (u = V²R, v = (R + r)²): P′ = V²[(R + r)² − R·2(R + r)]/(R + r)⁴.
Simplify by cancelling one (R + r): P′ = V²(R + r − 2R)/(R + r)³ = V²(r − R)/(R + r)³.
P′ = 0 only at R = r. For R < r, P′ > 0 (rising); for R > r, P′ < 0 (falling): a maximum.
Maximum power P_max = V²r/(2r)² = V²/(4r). Efficiency R/(R + r) = ½ at the optimum.
Common mix-ups
Maximum power transfer means maximum efficiency.
✓ At maximum power transfer the efficiency is only 50%.A smaller load resistance always draws more power.
✓ It draws more current, but below R = r the load power falls.
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).
Laboratory
These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.
- Equation Lab: Derivatives (Equation Lab exploration)
Plot a cost function and its derivative, and find where the derivative crosses zero.
Open on the full site - Simulation OS: Freestanding stand (Simulation OS experiment)
Formulate the stand design as an optimisation: choose variables, a mass objective and tipping and bending constraints, then search by hand.
Open on the full site
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.
- '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” - 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” - 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” - At a stationary point f′(a) = 0 and f″(a) = 5. What is it?
Answer it in “Stationary points: the top of the hill” - 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” - At the minimum-metal optimum, what is the ratio h/r?
Answer it in “The minimum-material can” - Real drinks cans are taller than h = 2r. What is the most important reason?
Answer it in “The minimum-material can” - 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.
- “Pareto Sets for Multiobjective Optimization” by MATLAB
- “Derivative formulas through geometry | Chapter 3, Essence of calculus” by 3Blue1Brown
Summary
- Formulate first: decision variables, objective and constraints, each with units.
- At a smooth interior optimum the derivative is zero; the second derivative tells minimum from maximum.
- Always check the boundaries: the optimum may sit on a constraint.
- Several objectives give a Pareto front; choosing a point on it is a judgement to state, not hide.
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
- The formulation with units
- The solution and how it was found
- The active constraint and what relaxing it would gain
Write it up on paper or in your own notes. Lite never stores what you write.
References
- Panos Y. Papalambros and Douglass J. Wilde (2017). Principles of Optimal Design: Modeling and Computation, 3rd edition. Cambridge University Press.
- Stephen Boyd and Lieven Vandenberghe (2004). Convex Optimization. Cambridge University Press.
Further reading from the lessons
- OpenStax Calculus Volume 1 (free, open textbook)
A complete first-year calculus text with worked examples and exercises, free to read online.