modelicares.exps.doe

Functions for design of experiments (DOE)

These can be passed to the design argument of gen_experiments().

modelicares.exps.doe.aslisted(*space)

Step through all the entries together (jointly or element-wise).

The set of experiments will terminate at end of the shortest list.

Example:

>>> settings = aslisted([0, 1], [0, 1], [0, 1, 2])
>>> for s in settings:
...     print(s)
(0, 0, 0)
(1, 1, 1)
modelicares.exps.doe.fullfact(*space)

Full-factorial DOE

Example:

>>> settings = fullfact([0, 1], [0, 1], [0, 1, 2])
>>> for s in settings:
...     print(s)
(0, 0, 0)
(0, 0, 1)
(0, 0, 2)
(0, 1, 0)
(0, 1, 1)
(0, 1, 2)
(1, 0, 0)
(1, 0, 1)
(1, 0, 2)
(1, 1, 0)
(1, 1, 1)
(1, 1, 2)
modelicares.exps.doe.ofat(*space)

One-factor-at-a-time (OFAT) method

The first entry in each sublist is taken as the baseline value for that dimension.

Example:

>>> settings = ofat([0, 1], [0, 1], [0, 1, 2])
>>> for s in settings:
...     print(s)
(0, 0, 0)
(1, 0, 0)
(0, 1, 0)
(0, 0, 1)
(0, 0, 2)