lmfit
« Back to VersTracker
Description:
C library for Levenberg-Marquardt minimization and least-squares fitting
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: scientific-computing optimization c-library curve-fitting mathematics
Install: brew install lmfit
About:
Lmfit is a C library designed for robust non-linear least-squares minimization and curve fitting. It implements the Levenberg-Marquardt algorithm to solve complex optimization problems efficiently. The library provides a simple, self-contained API that does not require external dependencies, making it easy to integrate into various scientific and engineering applications.
Key Features:
  • Robust Levenberg-Marquardt algorithm implementation
  • Self-contained with no external dependencies
  • Simple C API for easy integration
  • Supports box constraints on parameters
  • Provides bound-aware parameter structure
Use Cases:
  • Scientific data analysis and curve fitting
  • Parameter estimation in physics and engineering models
  • Image analysis and signal processing
  • Mathematical modeling and simulation
Alternatives:
  • GSL – GNU Scientific Library includes minimization routines but is a much larger dependency.
  • scipy.optimize – Python-based alternative offering similar functionality but requires a Python runtime.
  • MINPACK – Classic Fortran library for minimization, often used as a benchmark for performance.
Version History
Detected Version Rev Change Commit
Sep 17, 2025 1:08pm 0 VERSION_BUMP eaaa9b32
Sep 11, 2025 7:08am 0 VERSION_BUMP 2949ed0f
Sep 14, 2024 2:47pm 0 VERSION_BUMP 0a755214