Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyopt_driver's snopt is not working. #8

Open
daylee opened this issue Jun 13, 2014 · 2 comments
Open

pyopt_driver's snopt is not working. #8

daylee opened this issue Jun 13, 2014 · 2 comments

Comments

@daylee
Copy link

daylee commented Jun 13, 2014

Hello
My name is Dae Young Lee and Ph.D student of University of Michigan.
I am trying to add new discipline in CADRE mdo.

Currently, John Hwang's CADRE code is working with pyopt and snopt environment.
I have installed OpenMDAO, pyopt_driver and CADRE plug in.

However, following error happens.

(openmdao-0.9.7)daylee@ubuntu:~/openmdao-0.9.7/CADRE$ python example.py
setting up
Traceback (most recent call last):
File "example.py", line 5, in
top = CADRE_Optimization(n=1500, m=300)
File "/home/daylee/openmdao-0.9.7/local/lib/python2.7/site-packages/CADRE-0.5-py2.7.egg/CADRE/CADRE_mdp.py", line 24, in init
self.driver.optimizer = "SNOPT"
File "/home/daylee/openmdao-0.9.7/local/lib/python2.7/site-packages/openmdao.main-0.9.7-py2.7.egg/openmdao/main/datatypes/enum.py", line 118, in validate
self.error(obj, name, value)
File "/home/daylee/openmdao-0.9.7/local/lib/python2.7/site-packages/openmdao.main-0.9.7-py2.7.egg/openmdao/main/datatypes/enum.py", line 138, in error
obj.raise_exception(msg, ValueError)
File "/home/daylee/openmdao-0.9.7/local/lib/python2.7/site-packages/openmdao.main-0.9.7-py2.7.egg/openmdao/main/container.py", line 1644, in raise_exception
raise exception_class(full_msg)
ValueError: driver: Variable 'optimizer' must be in ['ALHSO', 'ALPSO', 'COBYLA', 'CONMIN', 'GCMMA', 'KSOPT', 'MIDACO', 'MMFD', 'NSGA2', 'PSQP', 'SLSQP', 'SOLVOPT'], but a value of SNOPT <type 'str'> was specified.

@SamAct
Copy link

SamAct commented Jun 27, 2018

Any idea on why this is happening, i got it too.

@hassan-shehawy
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants