Simulation and optimization of industrial production lines