Skip to content

Commit 5cdab84

Browse files
authored
feat: add test functions (#326)
* feat: add test functions * ...
1 parent d9e2071 commit 5cdab84

File tree

10 files changed

+692
-0
lines changed

10 files changed

+692
-0
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Collate:
116116
'helper.R'
117117
'local_search.R'
118118
'mlr_callbacks.R'
119+
'mlr_test_functions.R'
119120
'nds_selection.R'
120121
'reexport.R'
121122
'sugar.R'

NAMESPACE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ S3method(as.data.table,ArchiveAsync)
44
S3method(as.data.table,ArchiveBatch)
55
S3method(as.data.table,DictionaryOptimizer)
66
S3method(as.data.table,DictionaryTerminator)
7+
S3method(as.data.table,DictionaryTestFunction)
78
S3method(as_terminator,Terminator)
89
S3method(as_terminators,default)
910
S3method(as_terminators,list)
@@ -25,6 +26,7 @@ export(Objective)
2526
export(ObjectiveRFun)
2627
export(ObjectiveRFunDt)
2728
export(ObjectiveRFunMany)
29+
export(ObjectiveTestFunction)
2830
export(OptimInstance)
2931
export(OptimInstanceAsync)
3032
export(OptimInstanceAsyncMultiCrit)
@@ -94,13 +96,16 @@ export(local_search_control)
9496
export(mlr_callbacks)
9597
export(mlr_optimizers)
9698
export(mlr_terminators)
99+
export(mlr_test_functions)
97100
export(nds_selection)
98101
export(oi)
99102
export(oi_async)
100103
export(opt)
101104
export(optimize_async_default)
102105
export(optimize_batch_default)
103106
export(opts)
107+
export(otfun)
108+
export(otfuns)
104109
export(shrink_ps)
105110
export(terminated_error)
106111
export(tiny_logging)

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# bbotk (development version)
22

3+
* feat: Add `mlr_test_functions` dictionary with well-known 2-D optimization test functions (Branin, Rosenbrock, Himmelblau, Rastrigin, etc.) and sugar functions `otfun()` / `otfuns()`.
4+
35
# bbotk 1.9.0
46

57
* feat: Allow `"learn"` tag (direction=0) alongside minimize/maximize in `Codomain`.

0 commit comments

Comments
 (0)