def main(): args = parse_args() set_up_logging(args) genetic_controller = GeneticController(args) genetic_controller.run_simulation()
def __init__(self): GeneticController.__init__(self) # Terminal set self.T = [] # Function set self.F = [] Genome.formal_args = []
def __init__(self): GeneticController.__init__(self) # Terminal set self.T = [left,right,move] # Function set self.F = [] Genome.formal_args = [trail]
def __init__(self): GeneticController.__init__(self) self.lower_raw_fitness_is_better = True self.r_max = 201 self.bins = 40 self.init_3d_graph() # Terminal set self.T = ['x','v',-1] # Function set self.F = [add,sub,mul,div,gt,ABS] Genome.formal_args = ['x','v']
def __init__(self): GeneticController.__init__(self) self.M = 500 self.G = 51 self.r_max = 20 self.bins = 20 self.init_3d_graph() # Terminal set self.T = ['x'] # Function set self.F = [add,sub,mul,div,sin,cos,exp,rlog] Genome.formal_args = ['x']
def __init__(self): GeneticController.__init__(self) """ M = 4000, G = 51, r_max = 2**11, bins = 200, D_i = 6 )""" self.M = 100 self.G = 15 self.r_max = 2**11 self.bins = 200 self.init_3d_graph() # Terminal set self.T = ['a0','a1','a2','d0','d1','d2','d3','d4','d5','d6','d7'] # Function set self.F = [AND,OR,NOT,IF] Genome.formal_args = ['a0','a1','a2','d0','d1','d2','d3','d4','d5','d6','d7'] self.fitness_cases = list(itertools.product('01', repeat=11))