Comments (6)
Hi @VinceSO,
Thanks for flagging this issue. I made a new version 0.6, which can handle Auto-IVC.
I would also recommend to turn off the include_indepvarcomps
option in write_xdsm()
to keep the diagram cleaner.
from openmdao-xdsm.
Thanks a lot. I gonna install this version very soon.
Yes, the option include_indepvarcomps is very very useful. 😁
from openmdao-xdsm.
Hi,
I tested your dev and thanks a lot for your reactivity.
The xDSM is now generated but I've detect a minor issue about the variable naming. They are called v0, v1, ... in the diagram.
from openmdao-xdsm.
I also noticed it. The reason is, that in the Auto-IVC component the outputs are names v0, v1, v2, ... I guess it is set up this way to ensure unique names. So far I was using the source names in the XDSM as the variable names. I will change this in case of the Auto-IVC for target names. Maybe it could be a user option to show the target name in case of normal components too, but might look a bit confusing (since it is not visible on the XDSM, that they are the same variable).
from openmdao-xdsm.
@VinceSO now the target names are used for Auto-IVC connections.
import openmdao.api as om
from omxdsm import write_xdsm
p = om.Problem()
p.model.add_subsystem('paraboloid', om.ExecComp('f = (x-3)**2 + x*y + (y+4)**2 - 3'), promotes_inputs=['x', 'y'])
# setup the optimization
p.driver = om.ScipyOptimizeDriver()
p.driver.options['optimizer'] = 'SLSQP'
p.model.add_design_var('x', lower=-50, upper=50)
p.model.add_design_var('y', lower=-50, upper=50)
p.model.add_objective('paraboloid.f')
p.setup()
p.final_setup()
# Write output
write_xdsm(p, filename='xdsm_auto_ivc', out_format='pdf', show_browser=True, quiet=False,
include_indepvarcomps=False) # Not showing the Auto IVC
from openmdao-xdsm.
Nice work 👍 !
from openmdao-xdsm.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmdao-xdsm.