#Assume in a simple linear regression model, we want to find a 20-run
#D-optimal design, where the input variable takes values between 0 and 24.
#In theory, we know the optimal design is the following:
#matrix(c(rep(1,20),rep(0,10),rep(24,10)),ncol=2,nrow=20,byrow=FALSE)
#Use LA with default setting to find the optimal design for above problem.
try=LA_OptC(n=20,lb=c(1,0),ub=c(1,24))
round(try,8)
Run the code above in your browser using DataLab