Пример #1
0
 def __init__(self,
              generator,
              n_iter=1000,
              step_size=0.1,
              offset=0.5,
              verbose=False):
     DOEGenerator.__init__(self)
     self.n_iter = n_iter
     self.step_size = step_size
     self.offset = offset
     if isinstance(generator, list):
         generator = ListGenerator(generator)
     self.generator = generator
     self.verbose = verbose
Пример #2
0
 def _declare_options(self):
     """
     Declare options before kwargs are processed in the init method.
     """
     self.options.declare('generator', types=(DOEGenerator), default=DOEGenerator(),
                          desc='The case generator. If default, no cases are generated.')
     self.options.declare('run_parallel', types=bool, default=False,
                          desc='Set to True to execute cases in parallel.')
     self.options.declare('procs_per_model', types=int, default=1, lower=1,
                          desc='Number of processors to give each model under MPI.')
Пример #3
0
 def __init__(self, generator):
     DOEGenerator.__init__(self)
     if isinstance(generator, list):
         generator = ListGenerator(generator)
     self.generator = generator