# NOT RUN {
#create a 8 by 3 maximin distance LHD, with # of particles and iterations = 10, when SameNumG is 0
tryLaPSO1=LaPSO(n=8,k=3,m=10,N=10,SameNumP=8/2,SameNumG=0,p0=1/(3-1),p=15,q=1)
tryLaPSO1
phi_p(tryLaPSO1,p=15,q=1) #calculate the phi_p of "tryLaPSO1".
#create a 8 by 3 maximin distance LHD, with # of particles and iterations = 10, when SameNumP is 0
tryLaPSO2=LaPSO(n=8,k=3,m=10,N=10,SameNumP=0,SameNumG=8/4,p0=1/(3-1),p=15,q=1)
tryLaPSO2
phi_p(tryLaPSO2,p=14,q=1) #calculate the phi_p of "tryLaPSO2".
# }
Run the code above in your browser using DataLab