Optimising the performance of industrial automation lines