def optimizer(target, popsize, cylList, step, m): target = float(target) popsize = int(popsize) #cylList = [[str(s)] for t in s for s in cylList] cylList = [[str(s) for s in S] for S in cylList] for i in range(len(cylList)): if len(cylList[i]) == 0: cylList[i] = list(element_dict.iterkeys()) step = int(step) out = pt.plotData(target, popsize, cylList, step, m) return out
def constraint(r_list, x_list): _list = list(element_dict.iterkeys()) e_list = [] args = [r_list, x_list]