Ignore:
Timestamp:
09/25/21 01:02:06 (11 months ago)
Author:
Maciej Komosinski
Message:

Added support for loading multiple .sim files where each can overwrite selected settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/examples/standard.py

    r1146 r1149  
    4646    parser.add_argument('-genformat', required=False, default="1",
    4747                        help='Genetic format for the demo run, for example 4, 9, or B. If not given, f1 is assumed.')
    48     parser.add_argument('-sim', required=False, default="eval-allcriteria.sim", help="Name of the .sim file with all parameter values")
     48    parser.add_argument('-sim', required=False, default="eval-allcriteria.sim", help="Name of the .sim file with all parameter values. If you want to provide more files, separate them with a semicolon ';'.")
    4949    parser.add_argument("-popsize", type=int, default=50, help="Population size, default 50.")
    5050    parser.add_argument('-generations', type=int, default=5, help="Number of generations, default 5.")
     
    6666def main():
    6767    parsed_args = parseArguments()
    68     frams_lib = FramsticksLib(parsed_args.path, parsed_args.lib, parsed_args.sim)
     68    frams_lib = FramsticksLib(parsed_args.path, parsed_args.lib, parsed_args.sim.split(";"))
    6969
    7070    hall_of_fame = HallOfFameStatistics(parsed_args.hof_size, "fitness")
Note: See TracChangeset for help on using the changeset viewer.