- Timestamp:
- 06/26/20 01:32:15 (5 years ago)
- Location:
- framspy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/FramsticksCLI.py
r956 r961 45 45 CLI_INPUT_FILE = "genotypes.gen" 46 46 47 _ last_instance_id = count(0) # "static" counter incremented when a new instance is created. Used for unique filenames47 _next_instance_id = count(0) # "static" counter incremented when a new instance is created. Used for unique filenames 48 48 49 49 50 50 def __init__(self, framspath, framsexe): 51 self.id = next(FramsticksCLI._ last_instance_id)51 self.id = next(FramsticksCLI._next_instance_id) 52 52 self.frams_path = framspath 53 53 self.frams_exe = framsexe if framsexe is not None else 'frams.exe' if os.name == "nt" else 'frams.linux' -
framspy/FramsticksEvolution.py
r949 r961 106 106 107 107 print('Evolution with population size %d for %d generations, optimization criteria: %s' % (POPSIZE, GENERATIONS, OPTIMIZATION_CRITERIA)) 108 pop, log = algorithms.eaSimple(pop, toolbox, cxpb=0.2, mutpb=0. 8, ngen=GENERATIONS, stats=stats, halloffame=hof, verbose=True)108 pop, log = algorithms.eaSimple(pop, toolbox, cxpb=0.2, mutpb=0.9, ngen=GENERATIONS, stats=stats, halloffame=hof, verbose=True) 109 109 print('Best individuals:') 110 110 for best in hof:
Note: See TracChangeset
for help on using the changeset viewer.