corr=matrix( c(1, 0.3508,0.3508,0.4979,
0.3508 ,1, 0.3016,0.5630,
0.3508, 0.3016,1 ,0.5630,
0.4979, 0.5630,0.5630,1),
nrow=4
)
multistageoptimal.grid(N.upper=rep(100,3), corr=corr, Budget=200, CostC=0.5, N.fs=5)
correlation=matrix(c(
1,0.2,0.3,0.5,
0.2,1,0,0,
0.3,0,1,0,
0.5,0,0,1 ),
4,4)
CostV=c(1,10,20)
multistageoptimal.grid(N.upper=c(1000,200,100)+1, corr=correlation,
Budget=2200, CostC=0, CostTv=CostV, N.fs=5)
#######
# IMPORTANT
#######
# in order to reduce the time of checking in CRAN only the first breeding scheme will be checked
# if you want to run all 5 schemes you have to change the following code,
# just simply remove the number sign.
#######
# change the code below
#######
#multistageoptimal.nlm(N.upper=c(1000,200,100), corr=correlation,
#Budget=2200, CostC=0, CostTv=CostV, N.fs=5)
#multistageoptimal.nlm(N.upper=c(1000,200,100), corr=correlation,
#Budget=2200, CostC=0, CostTv=CostV, N.fs=5,ini.value=c(701,81,31))
#multistageoptimal.grid(N.upper=c(1000,200,100)+1, corr=correlation,
#Budget=2200, CostC=0, CostTv=CostV, N.fs=5,num.grid=21)
#multistageoptimal.nlm(N.upper=c(1000,200,100), corr=correlation,
#Budget=2200, CostC=0, CostTv=CostV, N.fs=5,ini.value=c(800,100,20))Run the code above in your browser using DataLab