answered Jul 22 '13
You may also want to try out the ceres-solver optimization library from google. It has some pretty nice features including automatic differentiation.