Skip to content

pyopt_driver's snopt is not working. #8

@daylee

Description

@daylee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions