# Number of dimensions to be optimised
nparam <- 5
# Running the Latin-Hypercube One-factor-At-a-Time sensitivity analysis.
# Dummy case, because for this test function all the parameters have the
# same sensitivity
lhoat(
fn="sphere",
lower=rep(-100,nparam),
upper=rep(100,nparam),
control=list(N=10, f=0.1, write2disk=TRUE)
)
# Plotting dotty plots
read_params(file="LH_OAT-gof.txt", header=TRUE, skip=0, param.cols=2:(nparam+1), of.col=1, of.name="sphere", ptype="dottyplot")
Run the code above in your browser using DataLab