Differences
This shows you the differences between two versions of the page.
— | ref:cma_pool_optimizer [2023/12/14 16:03] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CmaPoolOptimizer ====== | ||
+ | [[optimizer|Optimizer]] that runs multiple CMA-ES optimizations in a prioritized fashion, based on their predicted fitness. | ||
+ | |||
+ | The [[cma_pool_optimizer|CmaPoolOptimizer]] can be used in place of a CmaOptimzer. Example usage: < | ||
+ | optimizations = 12 # Total number of optimizations | ||
+ | active_optimizations = 6 # Number of optimizations active at the same time | ||
+ | |||
+ | SimulationObjective { ... } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | **Inherits from** [[optimizer|Optimizer]]. | ||
+ | |||
+ | ==== Public Attributes ==== | ||
+ | ^ Parameter ^ Type ^ Description ^ | ||
+ | ^ optimizations | size_t | Maximum total number of optimizations; | ||
+ | ^ active_optimizations | size_t | Maximum number of optimizations active at the same time; default = 6. | | ||
+ | ^ concurrent_optimizations | size_t | Maximum number of optimizations that are evaluated concurrently; | ||
+ | ^ use_predicted_fitness_stop_condition | bool | Terminate optimizations with a predicted fitness lower than the current best; default = 1. | | ||
+ | ^ random_seed | long | Random seed of the first optimization; | ||
+ | ^ init_file | path | Parameter file (.par) to be used for initial parameter values. | | ||
+ | ^ use_init_file | bool | Use init_file (if exists); default = true. | | ||
+ | ^ use_init_file_std | bool | Use the standard deviations from the init_file; when set to false, the initial standard deviation is computed as follows: STDEV = parameter value * init_file_std_factor + init_file_std_offset; | ||
+ | ^ use_init_file_best_as_mean | bool | Use values from the first column of the .par file (generation best) as mean; default = false. | | ||
+ | ^ init_file_std_factor | double | Factor by which to multiply the standard deviations from the init_file; default = 1.0. | | ||
+ | ^ init_file_std_offset | double | Offset added to the standard deviations from init_file; default = 0. | | ||
+ | ^ init_file_include | String | Pattern matching the init_file parameters to include (semicolon seperated); default = "" | ||
+ | ^ init_file_exclude | String | Pattern matching the init_file parameters to exclude (semicolon seperated); default = "" | ||
+ | ^ init | [[par_init_settings|ParInitSettings]] | Section with parameter initialization settings (.par), multiple allowed; see [[par_init_settings|ParInitSettings]] for details. | | ||
+ | ^ max_threads | size_t | Maximum number of threads to use for this optimization (deprecated, | ||
+ | ^ thread_priority | int | Thread priority of the optimization; | ||
+ | ^ max_generations | size_t | Number of iterations after which to stop the optimization; | ||
+ | ^ min_progress | double | Minimum progress after which to stop the optimization; | ||
+ | ^ min_progress_samples | size_t | Minimum number of samples after which progress is measured; default = 200. | | ||
+ | ^ window_size | size_t | Window size used for measureing progress; default = 500. | | ||
+ | ^ min_improvement_for_file_output | Real | The minimum relative improvement needed for file output; default = 0.05. | | ||
+ | ^ max_generations_without_file_output | size_t | The maximum number of iterations without file output; default = 1000. | | ||
+ | ^ target_fitness | double | Target fitness value, stop optimization if better; default = not set. | | ||
+ | ^ log_level | xo:: | ||
+ | ^ signature_prefix | String | Prefix signature with custom string. Special tags: DATE_TIME, DATE_TIME_EXACT, | ||
+ | ^ signature_postfix | String | Append custom string to signature. Special tags: DATE_TIME, DATE_TIME_EXACT, | ||
+ | ^ signature | String | Set custom signature and omit the auto-generated signature. | | ||
+ | |||
+ | < | ||