Effective genetic approach for optimizing advanced planning and scheduling in flexible manufacturing system