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)
}

Try the mlrMBO package in your browser

Any scripts or data that you put into this service are public.

mlrMBO documentation built on Jan. 13, 2021, 7:57 a.m.