Hi, I'm starting with nlopt and I've got this error calling opt.optimize
(I've been following the NLopt Python Reference):

Traceback (most recent call last):
  File "./toy_all_nlopt.py", line 42, in <module>
    variables_values = opt.optimize(numpy.array([0]*36, dtype=numpy.double))
  File "/Library/Python/2.7/site-packages/nlopt.py", line 254, in optimize
    def optimize(self, *args): return _nlopt.opt_optimize(self, *args)
TypeError: <lambda>() takes exactly 1 argument (2 given)


On a side note, when installing in MacOSX, the configure script was unable to 
detect python_pythondir  (and python_pyexecdir). As I'm using the default 
python 
installation, I've just removed ,prefix='$PYTHON_EXEC_PREFIX' and 
,prefix='$PYTHON_PREFIX' from the calls to get_python_lib, but I'm  sure there 
should be a robust solution.


Thanks in advance for your help.


_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to