Scheduling a Flexible Manufacturing System