ref:cma_optimizer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ref:cma_optimizer [2022/01/04 10:55]
127.0.0.1 external edit
ref:cma_optimizer [2022/09/29 15:04] (current)
Line 2: Line 2:
 [[optimizer|Optimizer]] based on the CMA-ES algorithm by [Hansen].  [[optimizer|Optimizer]] based on the CMA-ES algorithm by [Hansen]. 
  
-This is an abstract base class, use a derived class instead.  +**Inherits from** [[es_optimizer|EsOptimizer]].
- +
-**Inherits from** [[optimizer|Optimizer]]. +
- +
-**Inherited by** [[cma_optimizer_spot|CmaOptimizerSpot]].+
  
 ==== Public Attributes ==== ==== Public Attributes ====
 ^ Parameter ^ Type ^ Description ^ ^ Parameter ^ Type ^ Description ^
-mu_ | int | Mu parameter of CMA-ES. | +max_errors | int | Maximum number of errors allowed during evaluation, use a negative value equates to ''lambda max_errors''; default = 0. | 
-lambda_ | int | Lambda parameter of CMA-ES. | +lambda | int | Lambda parameter (population size); default = automatic. | 
-sigma_ | double | Initial Sigma parameter of CMA-ES. | +mu | int | Mu parameter (offspring size); default = automatic. | 
-^ random_seed | long | Random seed that will determine the randomness during the optimization. | +^ sigma | double | Sigma parameter (step size); default = automatic. | 
-flat_fitness_epsilon_ | double | Epsilon value to detect flat fitness; default = 1e-6. |+^ random_seed | long | Random seed used by the optimizer; default = 123. | 
 +flat_fitness_epsilon | double | Epsilon value to detect flat fitness; default = 1e-6. |
 ^ init_file | path | Parameter file (.par) to be used for initial parameter values. | ^ 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 | bool | Use init_file (if exists); default = true. |
Line 22: Line 19:
 ^ init_file_include | String | Pattern matching the init_file parameters to include (semicolon seperated); default = "" (all). | ^ init_file_include | String | Pattern matching the init_file parameters to include (semicolon seperated); default = "" (all). |
 ^ init_file_exclude | String | Pattern matching the init_file parameters to exclude (semicolon seperated); default = "" (none). | ^ init_file_exclude | String | Pattern matching the init_file parameters to exclude (semicolon seperated); default = "" (none). |
-^ max_threads | size_t | Maximum number of threads to use for this optimization; default = 32. |+^ 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, use global settings instead); default = 32. |
 ^ thread_priority | int | Thread priority of the optimization; 0 = lowest, 7 = highest, default = 1. | ^ thread_priority | int | Thread priority of the optimization; 0 = lowest, 7 = highest, default = 1. |
 ^ max_generations | size_t | Number of iterations after which to stop the optimization; default = 100000. | ^ max_generations | size_t | Number of iterations after which to stop the optimization; default = 100000. |
Line 30: Line 28:
 ^ min_improvement_for_file_output | Real | The minimum relative improvement needed for file output; default = 0.05. | ^ 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. | ^ 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::log::level | Set the log level [1-7] for the optimization.log file (higher is less logging); default = 3. |
 ^ signature_prefix | String | Prefix signature with custom string. Special tags: DATE_TIME, DATE_TIME_EXACT, SCONE_VERSION. | ^ signature_prefix | String | Prefix signature with custom string. Special tags: DATE_TIME, DATE_TIME_EXACT, SCONE_VERSION. |
 ^ signature_postfix | String | Append custom string to signature. Special tags: DATE_TIME, DATE_TIME_EXACT, SCONE_VERSION. | ^ signature_postfix | String | Append custom string to signature. Special tags: DATE_TIME, DATE_TIME_EXACT, SCONE_VERSION. |