Jeffrey Larson <jmlarson@...> writes: Actually, I will follow up to say how I fixed this.
If I changed the declaration of myfunc to def myfunc(x, grad): f = x[0]+x[1] return f Then everything works. I do not know why NLopt will not raise an "Invalid Argument" error with the objective function def myfunc(x, grad): f = 0*x[0] return f But will raise an error with def myfunc(x, grad): f = 0 return f _______________________________________________ NLopt-discuss mailing list NLopt-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss