> 
> 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


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

Reply via email to