Policy.py 400 B

12345678910111213
  1. # define policy to choose `operator` 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, _operators):
  5. self.operators = _operators
  6. def apply(self, solution):
  7. """
  8. Apply specific operator to solution and returns solution
  9. """
  10. raise NotImplementedError