Skip to content
New issue

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

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

Already on GitHub? # to your account

Error with coord_to_kulfan.py #1

Open
zonexo opened this issue Apr 24, 2020 · 0 comments
Open

Error with coord_to_kulfan.py #1

zonexo opened this issue Apr 24, 2020 · 0 comments

Comments

@zonexo
Copy link

zonexo commented Apr 24, 2020

Hi, I have error when running coord_to_kulfan.py, as shown below. Do you have a solution? Thanks.

Optimization Problem -- CST Parameterization

    Objective Function: objfunc

Objectives:
    Name        Value        Optimum
         f               0             0

    Variables (c - continuous, i - integer, d - discrete):
    Name    Type       Value       Lower Bound  Upper Bound
         x1       c      -1.000000      -2.00e+00     2.00e+00
         x2       c      -1.000000      -2.00e+00     2.00e+00
         x3       c      -1.000000      -2.00e+00     2.00e+00
         x4       c      -1.000000      -2.00e+00     2.00e+00
         x5       c       1.000000      -2.00e+00     2.00e+00
         x6       c       1.000000      -2.00e+00     2.00e+00
         x7       c       1.000000      -2.00e+00     2.00e+00
         x8       c       1.000000      -2.00e+00     2.00e+00

Traceback (most recent call last):
File "coord_to_kulfan.py", line 75, in
slsqp(opt_prob, sens_type='FD')
File "/home/user/.local/lib/python2.7/site-packages/pyOpt/pyOpt_optimizer.py", line 160, in call
return self.solve(opt_problem, *args, **kwargs)
File "/home/user/.local/lib/python2.7/site-packages/pyOpt/pySLSQP/pySLSQP.py", line 374, in solve
gg = numpy.zeros([la], numpy.float)
TypeError: only integer scalar arrays can be converted to a scalar index

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

No branches or pull requests

1 participant