tidy3d.plugins.design.MethodMonteCarlo

Contents

tidy3d.plugins.design.MethodMonteCarlo#

class MethodMonteCarlo[source]#

Bases: AbstractMethodRandom

Select sampling points using Monte Carlo sampling. The sampling is done with the Latin Hypercube method from scipy.

Parameters:
  • name (Optional[str] = None) – Optional name for the sweep method.

  • num_points (PositiveInt) – The number of points to be generated for sampling.

  • seed (Optional[PositiveInt] = None) – Sets the seed used by the optimizers to set constant random number generation.

Example

>>> import tidy3d.plugins.design as tdd
>>> method = tdd.MethodMonteCarlo(num_points=20)

Attributes

num_points

seed

name