Mathematical modelling, simulation and optimisation