Skip to contents

A simple mlr3misc::Dictionary storing objects of class Optimizer. Each optimizer has an associated help page, see mlr_optimizer_[id].

This dictionary can get populated with additional optimizer by add-on packages.

For a more convenient way to retrieve and construct optimizer, see opt()/opts().

Format

R6::R6Class object inheriting from mlr3misc::Dictionary.

Methods

See mlr3misc::Dictionary.

S3 methods

See also

Sugar functions: opt(), opts()

Examples

as.data.table(mlr_optimizers)
#> Key: <key>
#>                     key                                           label
#>                  <char>                                          <char>
#>  1: async_design_points                      Asynchronous Design Points
#>  2:   async_grid_search                        Asynchronous Grid Search
#>  3: async_random_search                      Asynchronous Random Search
#>  4:               cmaes Covariance Matrix Adaptation Evolution Strategy
#>  5:       design_points                                   Design Points
#>  6:        focus_search                                    Focus Search
#>  7:               gensa                 Generalized Simulated Annealing
#>  8:         grid_search                                     Grid Search
#>  9:               irace                                 Iterated Racing
#> 10:        local_search                                    Local Search
#> 11:              nloptr                         Non-linear Optimization
#> 12:       random_search                                   Random Search
#>                                    param_classes
#>                                           <list>
#>  1: ParamLgl,ParamInt,ParamDbl,ParamFct,ParamUty
#>  2:          ParamLgl,ParamInt,ParamDbl,ParamFct
#>  3:          ParamLgl,ParamInt,ParamDbl,ParamFct
#>  4:                                     ParamDbl
#>  5: ParamLgl,ParamInt,ParamDbl,ParamFct,ParamUty
#>  6:          ParamLgl,ParamInt,ParamDbl,ParamFct
#>  7:                                     ParamDbl
#>  8:          ParamLgl,ParamInt,ParamDbl,ParamFct
#>  9:          ParamDbl,ParamInt,ParamFct,ParamLgl
#> 10:          ParamLgl,ParamInt,ParamDbl,ParamFct
#> 11:                                     ParamDbl
#> 12:          ParamLgl,ParamInt,ParamDbl,ParamFct
#>                              properties     packages
#>                                  <list>       <list>
#>  1: dependencies,single-crit,multi-crit   bbotk,rush
#>  2: dependencies,single-crit,multi-crit   bbotk,rush
#>  3: dependencies,single-crit,multi-crit   bbotk,rush
#>  4:                         single-crit bbotk,adagio
#>  5: dependencies,single-crit,multi-crit        bbotk
#>  6:            dependencies,single-crit        bbotk
#>  7:                         single-crit  bbotk,GenSA
#>  8: dependencies,single-crit,multi-crit        bbotk
#>  9:            dependencies,single-crit  bbotk,irace
#> 10:            dependencies,single-crit        bbotk
#> 11:                         single-crit bbotk,nloptr
#> 12: dependencies,single-crit,multi-crit        bbotk
mlr_optimizers$get("random_search")
#> <OptimizerBatchRandomSearch>: Random Search
#> * Parameters: batch_size=1
#> * Parameter classes: ParamLgl, ParamInt, ParamDbl, ParamFct
#> * Properties: dependencies, single-crit, multi-crit
#> * Packages: bbotk
opt("random_search")
#> <OptimizerBatchRandomSearch>: Random Search
#> * Parameters: batch_size=1
#> * Parameter classes: ParamLgl, ParamInt, ParamDbl, ParamFct
#> * Properties: dependencies, single-crit, multi-crit
#> * Packages: bbotk