最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

openmdao - Discrete inputs for DOEDriver and AnalysisDriver - Stack Overflow

programmeradmin7浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论