A global analysis of global optimisation