Computational Engineering / Optimisation algorithms
The design space
Count independent choices before searching.
Lesson review: expert verification remains open
This lesson has received a full-context editorial review and a check of its technical explanations. Selected arithmetic has been checked separately. This is not independent engineering sign-off.
Checks needed for project use
- A computational engineering reviewer must check algorithms, convergence claims, statistical assumptions and numerical examples beyond the cases explicitly recorded.
- Reproduce quoted algorithm evaluation counts and reference minima from the actual seeded lab before treating them as verified benchmark results.
- Review search formulation, constraint handling, stopping evidence and sensitivity to starts or seeds; no general global optimum is certified.
These are educational models and exercises. Check their assumptions before using the results. The full technical content and every diagram have not yet been independently verified.
Concrete and steel calculations retain their stated first-generation Eurocode teaching basis. Use the standards and amendments specified for your project; do not mix generations without an appropriate design basis.
Read the lesson register and outstanding review notesWhy this matters
Even a small catalogue creates many combinations when every member can vary. Estimate the search size before deciding how to explore it.
By the end of this lesson you should be able to
- Define the design space and say what its dimension is
- Explain why exhaustive search fails on dimension rather than on size
- Distinguish a local from a global optimum
- Say what makes a landscape hard
Resolution grows into a larger Cartesian product
- Two variables
- Five values each give 25 grid samples.
- More dimensions
- Three variables give 125 samples; four give 625. The picture shows only the two-dimensional slice.
What you should already know
- Objective, variables and constraints (Module 15)
- One-at-a-time sensitivity and its limits (Module 14)
Count the choices and feasible region
With n choices for each of p independent variables, a complete grid contains np points. Constraints exclude some combinations; coupled or dependent choices need a different count. Include evaluation cost when planning the budget.
A local minimum is no worse than nearby feasible points in the stated neighbourhood. A global minimum is no worse anywhere in the feasible domain. A plateau or successful stopping message does not establish either property by itself. Convexity or certified bounds can provide stronger conclusions where applicable.
Structural problems can include discrete sections, nonconvex geometry and expensive analyses. Report the formulation, search domain and evidence supporting the selected result. Where no certificate exists, describe the best feasible candidate found within the budget.
Try it
Search algorithm comparison
Six methods on the same landscape, with the evaluation count for each. Everything is seeded, so the numbers here are the numbers the lesson quotes.
Landscape
A strictly convex quadratic with an analytic minimum at (3, 2). Convergence still depends on step rules, tolerances and budget.
Show the path of
Objective value
Hollow green point: reference. Filled orange point: solution found. Hollow purple point: starting point.
Dark blue is the lowest objective value (1.015); orange the highest (14.348). The shading is a secondary cue — every value is in the table below.
| Method | Best found | Gap | Evaluations | Trapped? |
|---|---|---|---|---|
| Grid search | 1.0150 | 0.0150 | 441 | no |
| Gradient descent | 1.0000 | 0.0000 | 79 | no |
| Random search | 1.0432 | 0.0432 | 441 | no |
| Simulated annealing | 1.0019 | 0.0019 | 441 | no |
| Genetic algorithm | 1.0000 | 0.0000 | 401 | no |
| Particle swarm | 1.0001 | 0.0001 | 441 | no |
Horizontal axis: evaluations →
Best objective found so far; lower values are better.
Gradient descent reached within 0.0000 of the global optimum in 79 evaluations.
What this method is doing
- Follows the slope downhill from where it started. It cannot leave the basin it began in, and it does not know there is anything outside it.
Things worth trying
- On the smooth landscape, compare gradient descent's evaluation count with everything else. It wins outright — right answer, a fifth of the budget.
- Switch to the rugged landscape without changing anything. The same method is now trapped.
- Move the start to (6, 3) on the rugged landscape and gradient descent finds the global optimum. Nothing about the method changed.
- Grid search always evaluates 441 times regardless. In five variables at the same resolution it would be 4 084 101.
What this shows: No method wins on every landscape — and on a rugged one the answer a downhill method gives is decided by where it started.
Worked example
What exhaustive search costs
Given
- A design with 21 candidate values along each variable
- Considered in two, three, five and eight variables
- One evaluation takes 1 second — a small frame analysis
Find
The cost of a complete grid search in each case
Practice
A grid search uses 15 values along each of 4 variables. How many evaluations does it require?
Check yourself
An optimisation reports 'the optimum design has a mass of 84 tonnes'. What is wrong with that statement?
Worked example
When a grid search stops being affordable
Given
- A design has 4 variables, each to be examined at 12 values
- One evaluation takes 3 seconds
Find
How long an exhaustive search takes, and at how many variables it becomes impossible
Check yourself
Why does reducing the number of variables help more than a faster computer?
Check yourself
What is a local optimum?
Summary
- Count independent choices before searching.
- Distinguish local, global and best-found results.
- Report the domain, budget and feasibility checks.
Sources & further information
The diagrams and worked explanations are original teaching material. Equations follow the stated idealisations; their assumptions and units are given with each calculation.
Reviewed 19 October 2026: explanations, teaching calculations and figures checked within the recorded course audit. This is not independent engineering approval. Review search formulation, constraint handling, stopping evidence and sensitivity to starts or seeds; no general global optimum is certified.