A hybrid simulation-scheduler-quality control system for FMS