Skip to contents

Define `calculateSensitivity` task and its settings

Usage

loadCalculateSensitivityTask(workflow, active = FALSE, settings = NULL)

Arguments

workflow

`Workflow` object or derived class

active

logical defining if `Task` will be run by workflow. Default value is `FALSE`

settings

specific settings for `calculateSensitivity` task

Value

A `PopulationSensitivityAnalysisTask` for `PopulationWorkflow` objects. A `SensitivityAnalysisTask` object otherwise

Examples

if (FALSE) { # \dontrun{

# A workflow object needs to be created first
myWorkflow <- MeanModelWorkflow$new(workflowFolder, simulationSets)

# (Re)load a default calculateSensitivity task for workflow
myWorkflow$calculateSensitivity <- loadCalculateSensitivityTask(
  workflow = myWorkflow,
  active = TRUE
)

# Load a user-defined simulation task for workflow
myWorkflow$userDefinedTasks[["sensitivity"]] <- loadCalculateSensitivityTask(
  workflow = myWorkflow,
  active = TRUE
)
} # }