powered by
Create a parameter the objective function is minimized with respect to.
parameter(name, min_val, max_val, integer = FALSE)
parameter returns an object of class Parameter.
parameter
Parameter
name of the parameter.
minimum value the parameter is allowed to assume during minimization.
maximum value the parameter is allowed to assume during minimization.
if TRUE the parameter is constrained to be integer. Default is FALSE.
TRUE
FALSE
p1 <- parameter("x1", 18, 32, integer = TRUE)
Run the code above in your browser using DataLab