Replaceing Component in OpenMDAO Group -


in openmdao 0.x there 'replace' method let swap components, not clear can in 1.x. have problem outer loop algorithm has run multiple times, , in cases want swap computationally expensive custom mda component out metamodel component has same i/o. there quick , dirty way @ runtime?

i define custom group class takes argument telling 1 use. rather use replace suggest re-instantiating whole problem , calling setup again.

if, reason don't want call setup more once (maybe big model , setup slow), suggest create 2 problem instances. 1 have mmda , other have meta-model. in outer loop can call whichever 1 appropriate.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -