lmfit is a C library for Levenberg-Marquardt minimization and least-squares fitting.