1%define OT_MonteCarloLHS_doc
2"Monte Carlo LHS optimization.
3
4Performs the optimization of an LHS using Monte Carlo simulations.
5
6Available constructors:
7    MonteCarloLHS(*lhsDesign, N*)
8
9    MonteCarloLHS(*lhsDesign, N, spaceFilling*)
10
11Parameters
12----------
13lhsDesign : :class:`~openturns.LHSExperiment`
14     Factory that generate designs
15N : int
16    Number of simulations
17spaceFilling : :class:`~openturns.SpaceFilling`
18    Criterion to be optimized
19    Default spaceFilling is MinDist
20
21Notes
22-----
23MonteCarloLHS generate N designs using lhsDesign and returns the optimal one with respect to spaceFilling
24
25Examples
26--------
27>>> import openturns as ot
28>>> dimension = 3
29>>> size = 100
30>>> # Build standard randomized LHS algorithm
31>>> distribution = ot.ComposedDistribution([ot.Uniform(0.0, 1.0)]*dimension)
32>>> lhs = ot.LHSExperiment(distribution, size)
33>>> lhs.setAlwaysShuffle(True) # randomized
34>>> # Defining space fillings
35>>> spaceFilling = ot.SpaceFillingC2()
36>>> # RandomBruteForce MonteCarlo with N designs (LHS with C2 optimization)
37>>> N = 10000
38>>> optimalLHSAlgorithm = ot.MonteCarloLHS(lhs, N, spaceFilling)
39"
40%enddef
41%feature("docstring") OT::MonteCarloLHS
42OT_MonteCarloLHS_doc
43
44// ---------------------------------------------------------------------
45