Code Monkey home page Code Monkey logo

openmdao / openmdao1 Goto Github PK

View Code? Open in Web Editor NEW
120.0 39.0 83.0 17.21 MB

OpenMDAO is a high-performance computing platform for systems analysis and optimization that enables you to decompose your models, making them easier to build and maintain, while still solving them in a tightly-coupled manner with efficient parallel numerical methods.

Home Page: http://openmdao.org

License: Other

TeX 0.99% Python 97.59% Makefile 0.32% HTML 0.62% CSS 0.08% JavaScript 0.40%

openmdao1's Introduction

This code, now known as OpenMDAO1, is now supplanted by the OpenMDAO 2.0.x Alpha.

The OpenMDAO 1.7.3 codebase repo has been renamed to OpenMDAO1, and it resides here at https://github.com/OpenMDAO/OpenMDAO1

The OpenMDAO 2.0.x code has taken the name OpenMDAO, and it resides at https://github.com/OpenMDAO/OpenMDAO.

Installation of 2.0.x code will now work with pip install openmdao.
Installation of 1.7.3 code will now only work with a version specifier: pip install openmdao==1.7.3

To use the OpenMDAO v0.x legacy version (versions 0.13.0 and older) of the OpenMDAO-Framework, go here: https://github.com/OpenMDAO/OpenMDAO-Framework

To install OpenMDAO 1.X : Install Python, Pip, Numpy, and Scipy. (Anaconda Python, comes bundled with everything you need: http://continuum.io ).

Next, clone OpenMDAO repository:

git clone https://github.com/OpenMDAO/OpenMDAO1.git

Lastly, install it in development mode (from the parent directory):

pip install -e OpenMDAO1

For more information, visit our website at: http://openmdao.org

or read our docs at: http://openmdao.org/docs

openmdao1's People

Contributors

adamnagel avatar amoondra avatar btracey avatar dwmunster avatar erichang-ucb avatar fcapristan avatar fzahle avatar hschilling avatar jaredthomas68 avatar johnjasa avatar jonathonw avatar justinsgray avatar kenneth-t-moore avatar kilojoules avatar kmarsteller avatar ksmyth avatar naylor-b avatar pyvelepor avatar pziegfeld avatar relf avatar robfalck avatar sanbales avatar shamsheersc19 avatar swryan avatar thearn avatar timothy-thomas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openmdao1's Issues

OpenMDAO 1.7.2 and above on SSBJ test case

I noticed a difference between OpenMDAO 1.7.1 and OpenMDAO 1.7.2 on the SSBJ test case.

D:\SSBJ-OpenMDAO>pip install openmdao==1.7.1
[...]
D:\SSBJ-OpenMDAO>python ssbj_mdf.py
[...]
R_opt= 3964.01941413

That result is consistent with the reference result.

D:\SSBJ-OpenMDAO>pip install openmdao==1.7.2
[...]
D:\SSBJ-OpenMDAO>python ssbj_mdf.py
[...]
R_opt= 3664.7375274

It seems to me that 1.7.2 release introduced a glitch.

Error in scipy optimization test: "Objective function must return a scalar"

I am trying to build openmdao 1.7.3 for openSUSE, and I am getting the following error in the unit tests with scipy 0.19.0:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/testflo/test.py", line 419, in _try_call
    func()
  File "/home/abuild/rpmbuild/BUILD/openmdao-1.7.3/openmdao/drivers/test/test_scipy_optimizer.py", line 315, in test_simple_array_comp_SLSQP_scaler_unity_ineq
    prob.run()
  File "/home/abuild/rpmbuild/BUILD/openmdao-1.7.3/openmdao/core/problem.py", line 1151, in run
    self.driver.run(self)
  File "/home/abuild/rpmbuild/BUILD/openmdao-1.7.3/openmdao/drivers/scipy_optimizer.py", line 211, in run
    options=self.opt_settings)
  File "/usr/lib64/python2.7/site-packages/scipy/optimize/_minimize.py", line 458, in minimize
    constraints, callback=callback, **options)
  File "/usr/lib64/python2.7/site-packages/scipy/optimize/slsqp.py", line 370, in _minimize_slsqp
    raise ValueError("Objective function must return a scalar")
ValueError: Objective function must return a scalar

The same error happens with the following tests:

  • test_simple_array_comp_SLSQP_scaler_unity_eq
  • test_simple_array_comp_SLSQP_scaler_unity_ineq

It seems to me to be related to this commit in scipy.

Running Error

When I type " import openmdao.api" in the command window, Error happened. Can someone help me?

import openmdao.api
Traceback (most recent call last):
File "", line 1, in
File "D:\Project\Python\Python2_3\Python27\lib\site-packages\openmdao\api.py",
line 2, in
from openmdao.components.constraint import ConstraintComp
File "D:\Project\Python\Python2_3\Python27\lib\site-packages\openmdao\componen
ts\constraint.py", line 5, in
from openmdao.components.exec_comp import ExecComp
File "D:\Project\Python\Python2_3\Python27\lib\site-packages\openmdao\componen
ts\exec_comp.py", line 10, in
from six import string_types
ImportError: No module named six

Pip install -e fails

Following the installation instructions, I see

~/code/OpenMDAO$ pip install -e OpenMDAO
Directory 'OpenMDAO' is not installable. File 'setup.py' not found.

pip install openmdao seems to work fine.

Hyperloop plugin

does the hyperloop plugin works for the latest version of openmdao??

Partial derivative check fails after total derivative check

Take the paraboloid example and append this to the end. The check will fail on the partial derivatives. However, if you run it again (un-comment the 3rd line) it will succeed. So it seems that the checks leave the problem in an altered state.

    check_total=top.check_total_derivatives()
    print(check_total)
#    top.run()
    check_partial=top.check_partial_derivatives()
    print(check_partial)

__getitem__ method in system class not completed?

System class has a getitem() method defined which is to be used to access the variable present in it, but the code only raises the following runtime error : "Variable '%s' must be accessed from a containing Group".
Though there is no similar functionality in component or group classes.
Is this a feature to be added later?

pbo params breaks code in checks.py

So I had a program working great with v.1.4.0. However, I updated to the latest version from github and now my code is broken. I have tested it out and it breaks with commit 6e6e852 on Dec. 2nd, 2015 titled "added checks for src_indices out of bounds of source vec and for negative index values." I get the following error message:

File "/Users/ryanbarr/Documents/RotorSE-BYU_FLOWLab/src/rotorse/main.py", line 41, in
rotor.setup(check=False)
File "/usr/local/lib/python2.7/site-packages/openmdao/core/problem.py", line 579, in setup
check_connections(connections, params_dict, unknowns_dict, self.root._sysdata.to_prom_name)
File "/usr/local/lib/python2.7/site-packages/openmdao/core/checks.py", line 31, in check_connections
_check_shapes_match(smeta, tmeta, to_prom_name)
File "/usr/local/lib/python2.7/site-packages/openmdao/core/checks.py", line 55, in _check_shapes_match
__check_val_and_shape_match(source, target, to_prom_name)
File "/usr/local/lib/python2.7/site-packages/openmdao/core/checks.py", line 107, in __check_val_and_shape_match
if src['val'].shape != target['shape']:
AttributeError: 'int' object has no attribute 'shape'

With some investigation it seems to break in checks.py for params that are pass_by_obj. I have attached an example simple code.
test2.py.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.