def initialize_population(self): ''' 种群初始化 ''' # utils 中.ini [IS_RUNNING] 参数置1 StatusUpdateTool.begin_evolution() pops = Population(params, 0) pops.initialize() self.pops = pops Utils.save_population_at_begin(str(pops), 0)
def initialize_population(self): ''' 种群初始化 ''' # ini文件IS_RUNNING参数置1 StatusUpdateTool.begin_evolution() # 初始化种群,传入ini文件的参数 pops = Population(params, 0) pops.initialize() self.pops = pops # 建立并写入种群begin文件 Utils.save_population_at_begin(str(pops), 0)
def initialize_population(self): StatusUpdateTool.begin_evolution() pops = Population(params, 0) pops.initialize() self.pops = pops Utils.save_population_at_begin(str(pops), 0)