# NOT RUN {
## Definition of input variables
parms_fix <- c(temp_ref = 57.5)
parms <- c(delta_ref = 3.9,
z = 4.2,
p = 1,
N0 = 1e6
)
temp_profile <- data.frame(time = c(0, 60), temperature = c(30, 60))
n_points <- 5
time_min <- 10
# }
# NOT RUN {
## OED with local optimization
set.seed(0123182)
local_OED <- inactivation_OED_penalty("Mafart", parms, temp_profile, parms_fix,
n_points, criteria = "E-mod", sensvar = "logN",
optim_algorithm = "local", time_min = time_min)
print(local_OED$optim_times)
plot(local_OED)
## OED with global optimization
opts_global <- list(maxeval=500, local_solver=0,
local_finish="DHC", local_iterprint=1)
global_OED <- inactivation_OED_penalty("Mafart", parms, temp_profile, parms_fix,
n_points, criteria = "E-mod", opts_global = opts_global,
time_min = time_min)
print(global_OED$optim_times)
plot(global_OED)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab