Generic methods for paper mill optimisation