gemseo / algos / doe

lib_pydoe module

PyDOE algorithms wrapper

class gemseo.algos.doe.lib_pydoe.PyDOE[source]

Bases: gemseo.algos.doe.doe_lib.DOELibrary

PyDOE optimization library interface See DOELibrary

Constructor

ALGO_LIST = ['fullfact', 'ff2n', 'pbdesign', 'bbdesign', 'ccdesign', 'lhs']
ALPHA_KEYWORD = 'alpha'
CENTER_BB_KEYWORD = 'center_bb'
CENTER_CC_KEYWORD = 'center_cc'
CRITERION_KEYWORD = 'criterion'
DESC_LIST = ['Full-Factorial implemented in pyDOE', '2-Level Full-Factorial implemented in pyDOE', 'Plackett-Burman design implemented in pyDOE', 'Box-Behnken design implemented in pyDOE', 'Central Composite implemented in pyDOE', 'Latin Hypercube Sampling implemented in pyDOE']
FACE_KEYWORD = 'face'
ITERATION_KEYWORD = 'iterations'
PYDOE_2LEVELFACT = 'ff2n'
PYDOE_2LEVELFACT_DESC = '2-Level Full-Factorial implemented in pyDOE'
PYDOE_2LEVELFACT_WEB = 'https://pythonhosted.org/pyDOE/factorial.html#level-full-factorial'
PYDOE_BBDESIGN = 'bbdesign'
PYDOE_BBDESIGN_DESC = 'Box-Behnken design implemented in pyDOE'
PYDOE_BBDESIGN_WEB = 'https://pythonhosted.org/pyDOE/rsm.html#box-behnken'
PYDOE_CCDESIGN = 'ccdesign'
PYDOE_CCDESIGN_DESC = 'Central Composite implemented in pyDOE'
PYDOE_CCDESIGN_WEB = 'https://pythonhosted.org/pyDOE/rsm.html#central-composite'
PYDOE_DOC = 'https://pythonhosted.org/pyDOE/'
PYDOE_FULLFACT = 'fullfact'
PYDOE_FULLFACT_DESC = 'Full-Factorial implemented in pyDOE'
PYDOE_FULLFACT_WEB = 'https://pythonhosted.org/pyDOE/factorial.html#general-full-factorial'
PYDOE_LHS = 'lhs'
PYDOE_LHS_DESC = 'Latin Hypercube Sampling implemented in pyDOE'
PYDOE_LHS_WEB = 'https://pythonhosted.org/pyDOE/randomized.html#latin-hypercube'
PYDOE_PBDESIGN = 'pbdesign'
PYDOE_PBDESIGN_DESC = 'Plackett-Burman design implemented in pyDOE'
PYDOE_PBDESIGN_WEB = 'https://pythonhosted.org/pyDOE/factorial.html#plackett-burman'
WEB_LIST = ['https://pythonhosted.org/pyDOE/factorial.html#general-full-factorial', 'https://pythonhosted.org/pyDOE/factorial.html#level-full-factorial', 'https://pythonhosted.org/pyDOE/factorial.html#plackett-burman', 'https://pythonhosted.org/pyDOE/rsm.html#box-behnken', 'https://pythonhosted.org/pyDOE/rsm.html#central-composite', 'https://pythonhosted.org/pyDOE/randomized.html#latin-hypercube']
static is_algorithm_suited(algo_dict, problem)[source]

Checks if the algorithm is suited to the problem according to its algo dict

Parameters
  • algo_dict – the algorithm characteristics

  • problem – the opt_problem to be solved

gemseo.algos.doe.lib_pydoe.seed(self, seed=None)

Reseed a legacy MT19937 BitGenerator

Notes

This is a convenience, legacy function.

The best practice is to not reseed a BitGenerator, rather to recreate a new one. This method is here for legacy reasons. This example demonstrates best practice.

>>> from numpy.random import MT19937
>>> from numpy.random import RandomState, SeedSequence
>>> rs = RandomState(MT19937(SeedSequence(123456789)))
# Later, you want to restart the stream
>>> rs = RandomState(MT19937(SeedSequence(987654321)))