Knowledge Based Reinforcement Learning and Estimation of Distribution Algorithm for Flexible Job