rsmac: Starts SMAC (alternative)

Description Usage Arguments Value Examples

View source: R/rsmac.R

Description

Starts SMAC on the given function, with the given scenario and the given params.

Usage

1
2
rsmac(fun, scenario, params = NULL, path.to.smac = "~/bin/smac",
  cl.args = list(), id.smac.run = NULL, cleanup = TRUE, par.id = 1)

Arguments

fun

[smoof_function] NOTE: If the par.set of the smoof function has trafos they will be invisible for SMAC and only be applied after SMAC proposed values within the untransforemd range.

scenario

[list]
scenario description

params

[character]
Params in pcs format. Default is as.pcs(getParamSet(fun)). If params are supplied the trafos of the par.set of the smoof function will not be applied.

path.to.smac

[character(1)]
The directory where the smac binary is located. All intermediate files will be saved there.

cl.args

[list]
CL arguments that should be passed when calling ./smac.

id.smac.run

[character(1)]
You might want to overrride the automaticly generated ID to do restarts or parallel optimizations on the exact same scenario.

cleanup

[logical(1)]
Should all files be deleted after the run?

par.id

[integer(1)]
For parallel usage on the same id.smac.run this helps to specify the which parallel run we are in. Only the call with par.id = 1 will write the enviroment to the disk.

Value

OptPath

Examples

1
2
3
4
5
6
7
8
 ## Not run: 
 scenario = list("use-instances" = "false", runObj = "QUALITY", numberOfRunsLimit = 5)
 res = rsmac(makeBraninFunction(), scenario = scenario)
 best.idx = getOptPathBestIndex(res)
 getOptPathEl(res, best.idx)
 as.data.frame(res)
 
## End(Not run)

jakob-r/rsmac documentation built on May 18, 2019, 9:08 a.m.