OpenMDAO-Plugins / pyopt_driver

Driver wrapper for the open-source optimization package pyOpt
Other
9 stars 10 forks source link

pyopt_driver's snopt is not working. #8

Open daylee opened 10 years ago

daylee commented 10 years ago

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 commented 6 years ago

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

hassan-shehawy commented 6 years ago

I have the same issue