Global nonlinear optimization with automatic differentiation gadfit-1.2.4.tar.gz View on GitHub

Brief description

GADfit is a Fortran implementation of global nonlinear curve fitting, based on a modified Levenberg-Marquardt algorithm. Global fitting refers to fitting many datasets simultaneously with some parameters shared among the datasets. The fitting procedure is very fast and accurate thanks to the use of automatic differentiation. The model curves (fitting functions) can be of essentially arbitrary complexity. This includes any nonlinear combination of elementary and special functions, single and/or double integrals, and any control flow statement allowed by the programming language. See the latest user guide.


  • Modified Levenberg-Marquardt
  • Multi-curve fitting with shared parameters
  • Automatic differentiation
  • Adaptive parallelism using coarrays


  • The official versioned releases are available here.
  • The latest stable development code is available here.
  • For importing the repository, issue git clone


  • See for quick installation instructions.
  • See the user guide for detailed instructions (recommended).


Authors and how to contact them

See the user guide, Section 1.1.


Details about theory, implementation, configuring, and compilation of GADfit, and usage are found in the user guide.


A good place to bring up any issues is


This project is distributed under the terms of the GNU General Public License, see LICENSE in the root directory of the present distribution or