Title: Planning and scheduling in a flexible manufacturing system