def __init__(self, problem_instance, random_state, population_size, selection, crossover, p_c, mutation, p_m, pressure): RandomSearch.__init__(self, problem_instance, random_state) self.population_size = population_size self.selection1 = selection self.selection2 = selection self.crossover1 = crossover self.crossover2 = crossover self.p_c2 = p_c self.p_c1 = p_c self.mutation1 = mutation self.mutation2 = mutation self.p_m = p_m self.p_m = p_m self.repetition1 = 0 self.repetition2 = 0 self.population_size1 = population_size / 2 self.population_size2 = population_size / 2 self.flag1 = False self.flag2 = False self.control = 2 self.presure1 = pressure self.presure2 = pressure self.count = 0 self.variation1 = 1 self.variation2 = 1
def __init__(self, problem_instance, random_state, neighborhood_size, neighborhood_function=bit_flip): RandomSearch.__init__(self, problem_instance, random_state) self.neighborhood_size = neighborhood_size self.neighborhood_function = neighborhood_function
def __init__(self, problem_instance, random_state, population_size, selection, crossover, p_c, mutation, p_m): RandomSearch.__init__(self, problem_instance, random_state) self.population_size = population_size self.selection = selection self.crossover = crossover self.p_c = p_c self.mutation = mutation self.p_m = p_m
def __init__(self, problem_instance, random_state, population_size, selection, crossover, p_c, mutation, p_m, presure): RandomSearch.__init__(self, problem_instance, random_state) self.population_size = population_size self.selection = selection self.crossover = crossover self.p_c = p_c self.mutation = mutation self.p_m = p_m self.presure = presure self.reproduttive_guys = [] self.repetition = 0
def __init__(self, problem_instance, random_state, population_size, selection, crossover, p_c, mutation, p_m): RandomSearch.__init__(self, problem_instance, random_state) self.population_size = population_size self.selection = selection self.crossover = crossover self.p_c = p_c self.mutation = mutation self.p_m = p_m self.repetition = 0 self.presure = 0.2 self.list = [] self.list_iteration = []