def __init__(self, cost_function=None, priority=1):
    self.cost_function = cost_function
    self.priority = priority
def __init__(self, cost_function=None, priority=1):
    self.cost_function = cost_function
    self.priority = priority