Approximate solution of a dynamic job shop model with several job classes