multistageoptimum.search (maseff=0.4, VGCAandE,
VSCA, CostProd, CostTest, Nf, Budget, N2grid,
N3grid, L2grid, L3grid, T2grid, T3grid, R2, R3, alg,
detail, fig,alpha.nursery,cost.nursery,
t2free,parallel.search)VSCA is specified, it refers to alg = GenzBretz(), which is by default, the quasi-Monte Carlo algorithm from Genz et al. (2009, 2013), will be used. If alg = Miwa(), the program will use the Miwa algorithm (Mi et al.=TRUE) or only the maximum (=FALSE).FALSE, which means no figure will be saved.CostProd =c(0.5,1,1)
CostTest = c(0.5,1,1)
Budget=1021
# Budget is very small here to save time in package checking
# for the example in Heffner's paper, please change it to Budget=10021
VCGCAandError=c(0.4,0.2,0.2,0.4,2)
VCSCA=c(0.2,0.1,0.1,0.2)
Nf=10
multistageoptimum.search (maseff=0.4, VGCAandE=VCGCAandError,
VSCA=VCSCA, CostProd = c(0.5,1,1), CostTest = c(0.5,1,1),
Nf = 10, Budget = Budget, N2grid = c(11, 1211, 30),
N3grid = c(11, 211, 5), L2grid=c(1,1,1), L3grid=c(6,6,1),
T2grid=c(1,2,1), T3grid=c(3,5,1), R2=1, R3=1, alg = Miwa(),
detail=TRUE, fig=TRUE)Run the code above in your browser using DataLab