Policy.py 395 B

12345678910111213
  1. # define policy to choose `updator` function at current iteration
  2. class Policy():
  3. # here you can define your statistical variables for choosing next operator to apply
  4. def __init__(self, _updators):
  5. self.updators = _updators
  6. def apply(self, solution):
  7. """
  8. Apply specific updator to solution and returns solution
  9. """
  10. raise NotImplementedError