I would like to announce the release of TNC v 1.2.
TNC is a non-linear, bound constrained optimizer written in C with a Python interface.
You can get it at: http://www.jeannot.org/~js/code/tnc-1.2.tgz
The latest version is always available at: http://www.jeannot.org/~js/code/index.en.html
An example and a few test cases are provided.
# A function to minimize # Must return a tuple with the function value and the gradient # (as a list) or None to abort the minimization def function(x): f = x**2+abs(x)**3 g = [2*x, 3*abs(x)*x] return f, g
# Optimizer call rc, nf, x = tnc.minimize(function, x = [-7, 3], low = [-10, 1], up = [10, 10])
print "After", nf, "function evaluations, TNC returned:", tnc.RCSTRINGS[rc] print "x =", x print "exact value = [0, 1]"