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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -