Hi! Before I discovered nlopt, I've been using built-in optimizers in SciPy and if one wanted to specify box constraints in this case one had to feed the optimizer with a list, where None stands for no bound in this direction and a finite number means that there is a bound.
In nlopt reference [1] it is suggested to use +/-HUGE_VAL in order to omit certain bounds, however this suggestion seems to be specific to C, since there is no such constant in Python. What would be the right way to omit certain bounds? Is using numpy.inf OK in such a case instead of +/-HUGE_VAL ? Alternatively, maybe it makes sense to add such a constant to the Python bindings... Thanks! [1]: http://ab-initio.mit.edu/wiki/index.php/NLopt_Reference#Bound_constraints -- Sincerely yours, Yury V. Zaytsev _______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
