Production planning and scheduling for multi-purpose batch chemical plants