As explained in the manual, only some of the algorithms (e.g. COBYLA) support nonlinear constraints, although you can combine unconstrained algorithms with AUGLAG to get a constrained algorithm.
> On Dec 2, 2014, at 9:31 PM, 陈文瀚 <[email protected]> wrote: > > Hi, > > Seems to me constraint opt only works for some of the algorithm not including > NLOPT_GN_DIRECT_L > NLOPT_LN_BOBYQA > NLOPT_LN_NELDERMEAD, any of which I am using for the moment. > > Is there a way to get this function, so that the opt only searches on > restricted space? > > > Cheers, > Wenhan > > > _________________________________ > Wenhan Chen, PHD Candidate > Institute for Molecular Biosciences (IMB) > The University of Queensland > > _______________________________________________ > NLopt-discuss mailing list > [email protected] > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
_______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
