Generate an NxP latin hypercube sample with bounds and linear constraints and optional exponential distribution.
X=LHSDESIGNCON(N,P,LB,UB,ISEXP) generates a latin hypercube sample X containing N values on each of P variables. For each column, if ISEXP is FALSE the N values are randomly distributed with one from each of N intervals, between LB and UB, of identical widths (UB-LB)/N, and they are randomly permuted. For columns with ISEXP=TRUE, the logarithm of the intervals have identical widths.
X=LHSDESIGNCON(...,A,b) generates a latin hypercube sample subject to the linear inequalities A*x ? b.
X=LHSDESIGNCON(...,'PARAM1',val1,'PARAM2',val2,...) specifies parameter name/value pairs to control the sample generation. See LHSDESIGN for valid parameters.
Rik Blok (2022). lhsdesigncon (https://github.com/rikblok/matlab-lhsdesigncon), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Latin Hypercube
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!