Interactive lab / Mathematics
Computational Mathematics Lab
Explore how optimisation algorithms search for solutions. Compare deterministic and stochastic methods on a multimodal objective.
Optimisation explorer
Minimise f(x) = 0.12x² + sin(3x), on −5 ≤ x ≤ 5. The curve is a demonstration objective, not a reported coursework result.
How the methods differ
Gradient descent uses the derivative. Hill climbing accepts improvements from neighbouring candidates. Simulated annealing can accept worse candidates as temperature decreases. The genetic algorithm uses a population, selection, crossover and mutation. The genetic algorithm uses the starting x as one initial candidate.
Explore route optimisation and clustering below. For interactive regression and classification demonstrations, visit the Machine Learning Lab.
Travelling salesman
Compare an initial route with nearest-neighbour construction and 2-opt improvement on synthetic coordinates. Distances are Euclidean, not road distances.
K-means clustering
Explore assignment and centroid updates on synthetic two-dimensional data.