On Feb 6, 2012, at 23:15 , Steven G. Johnson wrote:

>> 
>> opt.add_equality_constraint(lambda x: x[25] - 1)
>> # [...]
> 
> Your lambda takes one argument, but it should take two, just like the 
> objective function.  See:
> 
>       
> http://ab-initio.mit.edu/wiki/index.php/NLopt_Python_Reference#Nonlinear_constraints
> 


That was exactly the problem (reading too fast the reference…), my bad.

Thank you :)


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

Reply via email to