Real-time reconfiguration of manufacturing lines based on model order reduction