Expert control theory: a key for solving production planning and control problems in flexible manufacturing.