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

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -