The Chartership Forum

Computational Engineering / Optimisation algorithms

No free lunch, and knowing when to stop

Agree stopping and feasibility criteria.

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 notes

Why this matters

A best-found objective that stops improving may indicate a local basin, an exhausted budget or a stopping tolerance. It does not prove a global optimum.

By the end of this lesson you should be able to

  • State the No Free Lunch result and what it does and does not claim
  • Read a best-so-far curve and use it to judge a stopping point
  • List the common stopping criteria and what each gives up
  • Report an optimisation result with the qualifiers it needs

Retained best value cannot worsen during minimisation

Retained best value cannot worsen during minimisationThe staircase retains the best feasible sample seen so far. The latest candidate can be worse, but it does not replace the incumbent. A flat portion is not an optimality certificate.Best feasible valueEvaluations
The staircase retains the best feasible sample seen so far. The latest candidate can be worse, but it does not replace the incumbent. A flat portion is not an optimality certificate.
Blue incumbent
A non-increasing retained-best history under minimisation.
Orange candidate
One later evaluation can be worse than the current best.

Define what stopping means

Agree a budget, target, improvement tolerance or suitable optimality measure before the run. Record feasibility tolerance and retain the best feasible candidate found. For minimisation, that retained-best curve cannot rise if earlier candidates remain available.

Repeat stochastic searches where variability matters. A set of similar outcomes can build confidence in a practical comparison, but it is not a proof that no better design exists. A certified bound gap provides different and stronger evidence where the method supports it.

No Free Lunch results concern averages over specified problem classes and sampling assumptions. They do not say that every method performs equally on structural problems. Use known structure and benchmarks to choose a method, and report exactly what its stopping evidence establishes.

Worked example

Reading two best-so-far curves

Given

  • Two runs on the rugged landscape, both with a budget of 441 evaluations
  • Run A: falls quickly to 1.46 by evaluation 60, then flat for the rest
  • Run B: sits at 1.60 until evaluation 210, drops to 1.15, then flat

Find

What each curve says about stopping

    Check yourself

    What does the No Free Lunch result actually forbid?

    Practice

    A search improves the objective from 240 to 186 in its first 100 evaluations, then from 186 to 181 over the next 400. For the second stretch, calculate improvement per hundred evaluations as a percentage of 186.

    Practice

    On the rugged landscape the global optimum is 1.150 and a gradient run from an unlucky start returns 1.457. By what percentage does that run overstate the objective?

    Check yourself

    What does 'no free lunch' actually claim?

    Check yourself

    An optimisation report says 'the optimum design has a mass of 4 260 kg'. What is wrong with that sentence?

    Summary

    • Agree stopping and feasibility criteria.
    • Track the retained best feasible result.
    • Use precise claims about optimality and evidence.

    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.

    Continue the course

    A search can retain several objectives. Use dominance to identify trade-offs without hiding them in a single score.

    Continue with multi-objective design and pareto decisions.