On Jul 16, 2013, at 3:33 PM, milind d <[email protected]> wrote: > I am just starting to use the very nice looking nlopt, but i have a doubt > about implementing equality nonlinear constrained,and also if I have many > different types of constrains which might not b able to club together in one > function to give a return value then what should i do, i ask this because in > tutorial it says only one constrained function is allowed. please let me knw > if I am missing something, I you have any good examples please send me i > would be very glad.
You can have as many different constraint functions as you want. The comment in the tutorial was for an older version of NLopt. (Even then, you could effectively have as many completely different functions as you want: you just put in an "if" statement that chooses which constraint function to compute based upon the data parameter. The newer version of NLopt is just a bit more user-friendly.) Steven _______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
