When conducting a batch of analyses in OpenMDAO it seems one should use either the DOEDriver
or the new AnalysisDriver
. Do either of these options support discrete inputs? Does it depend on the type of generator that is used for them?
I have some components that take formatted nested dictionaries as inputs, similar to the following:
my_discrete_input = {"wing": {"n_span": 24, "n_chord": 8, "mirror": True}, "htail": {"n_span": 16, "n_chord": 8, "mirror": True}, "vtail": {"n_span": 16, "n_chord": 8, "mirror": False}}
I want to be able to sweep over a set of values for a subset of these keys (e.g. n_span
or n_chord
). Breaking up this nested dictionary into a set of individual discrete inputs is a bit cumbersome; it would be very convenient to keep it all together as a single dict. Is there a recommended way of handling this?