# NOT RUN {
#create a 8 by 3 maximin distance LHD, with # of population and iterations = 10,
#the probability of mutation is 1/(k-1)
tryGA1=GA(n=8,k=3,m=10,N=10,pmut=1/(3-1),p=15,q=1)
tryGA1
phi_p(tryGA1,p=15,q=1) #calculate the phi_p of "tryGA1".
#Another example with different n and k.
tryGA2=GA(n=12,k=2,m=10,N=10,pmut=1/(3-1),p=15,q=1)
tryGA2
phi_p(tryGA2,p=15,q=1) #calculate the phi_p of "tryGA2".
# }
Run the code above in your browser using DataLab