create_suggestion: Create a suggestion for an experiment

View source: R/sigopt_api_wrapper.R

create_suggestionR Documentation

Create a suggestion for an experiment

Description

Create a suggestion for an experiment

Usage

create_suggestion(experiment_id, body = NULL)

Arguments

experiment_id

the id of an experiment to create an suggestion for

body

POST body of create request

Value

suggestion created by SigOpt

Examples

env <- Sys.getenv("NOT_CRAN")
if (!identical(env, "true")) {
0
} else {
experiment <- create_experiment(list(
  name="R test experiment",
  parameters=list(
    list(name="x1", type="double", bounds=list(min=0, max=100)),
    list(name="x2", type="double", bounds=list(min=0, max=100))
  )
))
create_suggestion(experiment$id)}

sigopt/SigOptR documentation built on Aug. 24, 2023, 4:29 p.m.