You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
from pyOpt import NSGA2 ImportError: cannot import name 'NSGA2' from 'pyOpt' (/Users/tghosh/Downloads/pyOpt-master/pyOpt/__init__.py)
File "<ipython-input-26-0efd7093218e>", line 1, in <module> from pyOpt import SLSQP ImportError: cannot import name 'SLSQP' from 'pyOpt' (/Users/tghosh/Downloads/pyOpt-master/pyOpt/__init__.py) from pyOpt import pySLSQP
This works but object created using pySLSQP does not take an optimization problem as a parameter.
slsqp = pyOpt.pySLSQP
[fstr, xstr, inform] = slsqp(opt_prob,sens_type='FD')
TypeError: 'module' object is not callable