R/makeTasks.R

Defines functions makeTasks

#FIXME: Doku

makeTasks = function(opt.state) {
  opt.problem = getOptStateOptProblem(opt.state)
  control = getOptProblemControl(opt.problem)
  opt.path = getOptStateOptPath(opt.state)
  if (control$n.objectives == 1L) {
    tasks = list(makeTaskSingleObj(opt.path, control))
  } else {
    if (control$multiobj.method == "parego")
      tasks = makeTasksParEGO(opt.state)
    else
      tasks = makeTasksMultiObj(opt.path, control)
  }
  return(tasks)
}
mlr-org/mlrMBO documentation built on Oct. 13, 2022, 2:39 p.m.