Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

I cannot import any solver - For example SLSQP or NSGA2. Attribute does not exists #10

@tapajyoti-ghosh

Description

@tapajyoti-ghosh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions