On Tuesday, April 21, 2015 at 6:29:11 AM UTC-4, Alexandros Theloudis wrote:
No, none of the NLopt algorithms currently have this option.
However, see NLopt issue
https://github.com/stevengj/nlopt/issues/30 ... some of the algorithms may allow you to return NaN from the objective when it is not feasible to compute it. SLSQP was just patched to allow this, although it's not in a released version of NLopt, and it should be possible to modify MMA and CCSA for that as well.
As Miles suggested, the ideal thing is to choose a coordinate system so that your "hard" inequality constraints can be expressed as simple upper/lower bound (box) constraints on one or more parameters. NLopt will never violate a box constraint.