The Chartership Forum

Computational Engineering / Optimisation algorithms

Deterministic and stochastic methods

Select algorithms for the problem’s structure.

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

Different searches can reach different candidates within the same budget. Compare them on the same problem and record the work each one performs.

By the end of this lesson you should be able to

  • Describe gradient descent and say precisely what it cannot do
  • Explain the acceptance test in simulated annealing
  • Describe a genetic algorithm's population, selection and diversity
  • Compare methods on an equal evaluation budget

Compare paths with the same evaluation accounting

Compare paths with the same evaluation accountingTwo schematic search paths approach the same target through different samples. The orange path includes an uphill exploratory move. These prescribed paths illustrate strategy, not measured algorithm performance.Record starts, seeds and evaluation cost
Two schematic search paths approach the same target through different samples. The orange path includes an uphill exploratory move. These prescribed paths illustrate strategy, not measured algorithm performance.

Move a marker along the blue illustrative path. No optimiser is executed by this animation.

Illustrative search trajectories. Geometry and movement are schematic; use the lesson calculations for numerical results.

Blue path
A directed sequence can exploit local information.
Orange path
Exploration may visit worse candidates before finding another region. Budget and repeatability still matter.

Match the method to the formulation

A deterministic method follows a defined procedure from its inputs. A stochastic method introduces random choices, usually with a recorded seed. Either can target local or broader exploration; those labels alone do not establish optimality.

Gradient methods use derivative information and need appropriate treatment of smoothness, constraints and starts. Catalogue enumeration can prove the best option within a finite list if every relevant earlier candidate is checked. Coupled member choices require a broader argument.

Annealing, genetic search and particle swarm explore differently. Compare evaluation and derivative costs, feasibility rules and repeated-run variation. A favourable seed is useful evidence for that run, not a guarantee for future searches.

Worked example

The same method on two landscapes

Given

  • Two two-variable landscapes: one smooth with a single basin, one rugged with several
  • Gradient descent started from the same point (1, 5) on both
  • A dense reference sweep of the rugged landscape found a best sampled value of approximately 1.150

Find

What gradient descent finds on each, and what that establishes

    Predict first

    A gradient-based optimisation of a steel frame is run three times from three different starting designs and returns three different answers. What does that tell you?

    Practice

    A simulated annealing step proposes a design 0.5 units worse than the current one, at a temperature of 2. What is the probability it is accepted? Use exp(−Δ/T) and give the probability to three decimal places.

    Practice

    A genetic algorithm starts with 30 individuals and runs 40 further generations. Each generation retains 2 elites without re-evaluation and evaluates 28 new individuals. How many objective evaluations are used, including the initial population?

    Check yourself

    A gradient method finds the same answer every time it is run. Is that an advantage?

    Summary

    • Select algorithms for the problem’s structure.
    • Compare computational effort consistently.
    • Record seeds and variation across stochastic runs.

    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.