Optimisation of a simple model