Process optimisation of production lines