Changeset 1080 for framspy


Ignore:
Timestamp:
02/17/21 14:36:10 (4 years ago)
Author:
Maciej Komosinski
Message:

Use direct connection to Framsticks .so/.dll in evolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksEvolution.py

    r1060 r1080  
    44import numpy as np
    55from deap import creator, base, tools, algorithms
    6 from FramsticksCLI import FramsticksCLI
     6from FramsticksLib import FramsticksLib
    77
    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.
    99
    1010
     
    8787        # A demo run: optimize OPTIMIZATION_CRITERIA
    8888
    89         # random.seed(123)  # see FramsticksCLI.DETERMINISTIC below, set to True if you want full determinism
    90         FramsticksCLI.DETERMINISTIC = False  # must be set before FramsticksCLI() constructor call
     89        # 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
    9191        parsed_args = parseArguments()
    92         framsCLI = FramsticksCLI(parsed_args.path, parsed_args.exe)
     92        framsLib = FramsticksLib(parsed_args.path, parsed_args.exe)
    9393
    94         toolbox = prepareToolbox(framsCLI, '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)
    9595
    9696        POPSIZE = 10
Note: See TracChangeset for help on using the changeset viewer.