Skip to content
Tactiverge

Textbooks/Engineering Design and Optimization/Chapter 6Lite (plain text) version

6Formulating optimisation problems

Version 1 · Technically checked (automated checks only) · 4 source lessons · 8 practice items

Text
All chapters and search
  1. 1. Problems and requirements
  2. 2. Decisions and trade-offs
  3. 3. Verification and reliability
  4. 4. Documentation, tolerances and design review
  5. 5. System architecture and budgets
  6. 6. Formulating optimisation problems
  7. 7. Linear programming and search
  8. 8. Gradient methods and convexity

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.

radius r (cm)area (cm²)min 553.6 cm²at r = 5.42 cm24681012dA/dr = 0 gives h = 2r = 10.84 cm
Figure 6.1. The minimum-material can. 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

This chapter is built from 4 School lessons. Each part below is the lesson's own explanation; open the lesson for its predict-and-discover activities.

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 full 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

  • 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 full 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

  • 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 full 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

  • 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 full 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

Figure 6.2 from Formulate first: variables, objectives, constraints and Pareto frontsWith '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.
Can't use the interactive? Read a description instead

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.

Interactive figure (online). Description: 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 hillChoose '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.
Can't use the interactive? Read a description instead

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).

Interactive figure (online). Description: 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

Everything runs in your browser. No kit, nothing mains-powered. Simulations are simplified educational models.

  • Equation Lab exploration

    Equation Lab: Derivatives

    Plot a cost function and its derivative, and find where the derivative crosses zero.

    Open Equation Lab: Derivatives →
  • Simulation OS experiment

    Simulation OS: Freestanding stand

    Formulate the stand design as an optimisation: choose variables, a mass objective and tipping and bending constraints, then search by hand.

    Open Simulation OS: Freestanding stand →

Guided practice

Answers are checked on the server; wrong answers get a hint and another try. Signed in, solved items also count towards the source lesson.

Practice 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?

Practice 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?

Practice 3

A report picks design E 'by weighted sum' without stating the weights. What's the problem?

Practice 4

At a stationary point f′(a) = 0 and f″(a) = 5. What is it?

Practice 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?

Practice 6

At the minimum-metal optimum, what is the ratio h/r?

Practice 7

Real drinks cans are taller than h = 2r. What is the most important reason?

Practice 8

Why do power stations not match their loads for maximum power transfer?

  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?
    • Both are objectives
    • Lifting 2 kg is a constraint; lightness is the objective
    • Lightness is a constraint; lifting is the objective
    • Both are constraints
  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?
    • Y dominates X
    • X dominates Y
    • Neither dominates
    • They are on the same front
  3. A report picks design E 'by weighted sum' without stating the weights. What's the problem?
    • None: weighted sums are objective
    • The choice depends entirely on the weights, which are a value judgement the reader can't check
    • Weighted sums always pick dominated designs
    • E must be wrong
  4. At a stationary point f′(a) = 0 and f″(a) = 5. What is it?
    • A local maximum
    • A local minimum
    • An inflection point
  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?
    • q = 15
    • q = 10
    • q = 0
  6. At the minimum-metal optimum, what is the ratio h/r?
  7. Real drinks cans are taller than h = 2r. What is the most important reason?
    • The calculus is wrong
    • The model assumed equal thickness everywhere, but the ends are much thicker, so end area costs more
    • Tall cans hold more drink
  8. Why do power stations not match their loads for maximum power transfer?
    • They do, it is required by law
    • Matching would waste half the generated energy as heat in the source and lines
    • Matching would make the voltage too high

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 verified videos. Nothing loads from YouTube until you press play.

Shows a real optimisation tool tracing a Pareto front for two competing objectives.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

Shows why the power rule and the derivative of sine are true by nudging squares, cubes and circles by a tiny amount.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

  • Pareto Sets for Multiobjective Optimization (MATLAB)
  • Derivative formulas through geometry | Chapter 3, Essence of calculus (3Blue1Brown)

Chapter 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.
Efficiency
Efficiency is the fraction of input energy or power that comes out as useful output. The rest becomes heat, sound or other losses.
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.
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.

Definitions from the 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

Keep your work in your Engineering Journal; it stays private unless you choose to share it.

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 source lessons

Publication record

Version
1
Status
Technically checked (automated checks only)
Technical review
Automated checks only, last run 2026-11-29. No human, educator or mentor review is claimed.src/content/textbooks/textbooks.test.ts: schema, every lesson, diagram, practice item, video, Field Guide entry, lab and reference resolves; figure numbers recomputed; no practice answers in client payloads.
Written by
Compiled and written by the Tactiverge team with AI assistance, from Tactiverge School lessons that were themselves written with AI assistance.
Licence
All rights reserved by the founders unless a licence is approved.
Corrections
None recorded yet.Spotted a mistake? Use “Report a problem” on any chapter, or see the corrections page.