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:         cmaes Covariance Matrix Adaptation Evolution Strategy
#> 2: design_points                                   Design Points
#> 3:  focus_search                                    Focus Search
#> 4:         gensa                 Generalized Simulated Annealing
#> 5:   grid_search                                     Grid Search
#> 6:         irace                                 Iterated Racing
#> 7:        nloptr                         Non-linear Optimization
#> 8: random_search                                   Random Search
#>                                   param_classes
#>                                          <list>
#> 1:                                     ParamDbl
#> 2: ParamLgl,ParamInt,ParamDbl,ParamFct,ParamUty
#> 3:          ParamLgl,ParamInt,ParamDbl,ParamFct
#> 4:                                     ParamDbl
#> 5:          ParamLgl,ParamInt,ParamDbl,ParamFct
#> 6:          ParamDbl,ParamInt,ParamFct,ParamLgl
#> 7:                                     ParamDbl
#> 8:          ParamLgl,ParamInt,ParamDbl,ParamFct
#>                             properties     packages
#>                                 <list>       <list>
#> 1:                         single-crit bbotk,adagio
#> 2: dependencies,single-crit,multi-crit        bbotk
#> 3:            dependencies,single-crit        bbotk
#> 4:                         single-crit  bbotk,GenSA
#> 5: dependencies,single-crit,multi-crit        bbotk
#> 6:            dependencies,single-crit  bbotk,irace
#> 7:                         single-crit bbotk,nloptr
#> 8: dependencies,single-crit,multi-crit        bbotk
mlr_optimizers$get("random_search")
#> <OptimizerRandomSearch>: Random Search
#> * Parameters: batch_size=1
#> * Parameter classes: ParamLgl, ParamInt, ParamDbl, ParamFct
#> * Properties: dependencies, single-crit, multi-crit
#> * Packages: bbotk
opt("random_search")
#> <OptimizerRandomSearch>: Random Search
#> * Parameters: batch_size=1
#> * Parameter classes: ParamLgl, ParamInt, ParamDbl, ParamFct
#> * Properties: dependencies, single-crit, multi-crit
#> * Packages: bbotk