Changeset 1080
- Timestamp:
- 02/17/21 14:36:10 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/FramsticksEvolution.py
r1060 r1080 4 4 import numpy as np 5 5 from deap import creator, base, tools, algorithms 6 from Framsticks CLI import FramsticksCLI6 from FramsticksLib import FramsticksLib 7 7 8 # Note: this is much less efficient than running the evolution directly in Framsticks, so use only when required or when poor performance is acceptable!8 # Note: this may be less efficient than running the evolution directly in Framsticks, so if performance is key, compare both options. 9 9 10 10 … … 87 87 # A demo run: optimize OPTIMIZATION_CRITERIA 88 88 89 # random.seed(123) # see Framsticks CLI.DETERMINISTIC below, set to True if you want full determinism90 Framsticks CLI.DETERMINISTIC = False # must be set before FramsticksCLI() constructor call89 # random.seed(123) # see FramsticksLib.DETERMINISTIC below, set to True if you want full determinism 90 FramsticksLib.DETERMINISTIC = False # must be set before FramsticksLib() constructor call 91 91 parsed_args = parseArguments() 92 frams CLI = FramsticksCLI(parsed_args.path, parsed_args.exe)92 framsLib = FramsticksLib(parsed_args.path, parsed_args.exe) 93 93 94 toolbox = prepareToolbox(frams CLI, '1' if parsed_args.genformat is None else parsed_args.genformat)94 toolbox = prepareToolbox(framsLib, '1' if parsed_args.genformat is None else parsed_args.genformat) 95 95 96 96 POPSIZE = 10
Note: See TracChangeset
for help on using the changeset viewer.