Generate the optimal Latin Hypercube Design based on the miniMax criterion.
miMLHD(n, p, num = 50, temp0 = 0, nstarts = 1, times = 300,
maxiter = 1e+06)number of runs desired
number of variables desired
Optional, default is "50". The fineness of the gridded points to divide the design space. Each dimension is evenly divided by num+1 points. Lower this parameter when dimension is high to reduce computing time.
Initial temperature for simulated annealing
Optional, default is "1". The number of random starts
Optional, default is "300". The maximum number of non-improving searches allowed before terminating the search.
Optional, default is "1e+06".The maximum total number of iterations for each random start. Lower this number if the design is prohibitively large and you want to terminate the algorithm prematurely to report the best design found
The optimal miniMax design matrix
The opproximate miniMax criterion for the chosen fineness of the grids
The total iterations
Time to complete the search
This function is to search the optimal Latin Hypercube design based on the miniMax criterion using the columnwise exchange algorithm coupled with the simulated annealing algorithm, and several computational shortcuts to improve efficiency. The approximate miniMax criterion is computed by using a set of gridded points to approximate the continuous design space, the maximum error of the value can be computed.(Can only work in relatively low dimensions)
# NOT RUN {
#Generate the optimal minimax distance LHD(20,2)
# }
# NOT RUN {
D=miMLHD(n=20,p=2)
D$design
D$criterion
# }
Run the code above in your browser using DataLab