configs

All configs for the (1+(lambda, lambda)) Genetic Algorithms To generate the .json config files in this folder, run: export_all_configs_to_json()

Module Contents

Functions

config_to_json(config_name, json_file=None)

Write a config to json file

export_all_configs_to_json(output_dir='./')

Export all configs above to json files

configs.INFO

Setting 1a: Name: lbd_theory Description:

The simplest setting where we only tune lbd and assume that p=lambda/n and c=1/lambda The optimal policy for OneMax is lambda = sqrt(n / (n-f(x))), where:

n is problem size f(x) is current objective value

State space: n (int), f(x) (int) Action space: lbd (int)

configs.onell_lbd_theory
configs.onell_lbd_onefifth
configs.onell_lbd_p_c
configs.onell_lbd1_lbd2_p_c
configs.config_to_json(config_name, json_file=None)

Write a config to json file

Parameters
  • config_name (str) – accept values: one of the configs defined above

  • json_file (str) – output .json file name. If None, will be set as <config_name>.json

configs.export_all_configs_to_json(output_dir='./')

Export all configs above to json files