# argmin-rs/argmin

Numerical optimization in pure Rust

Repository: https://github.com/argmin-rs/argmin
Canonical: https://ross.abutalabs.com/products/argmin
Homepage: http://argmin-rs.org
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: optimization-algorithms, optimization, rust, numerical-optimization, optimization-methods, optimizer
Last push: 2025-11-07T04:06:43+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 51, release rhythm 50, longevity 100
- inputs: {"age_days": 2964, "days_push": 299, "days_rel": 335, "gap_med": 0, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1275, forks 116 (observed 2026-08-28T04:04:12.963977+00:00)

## What it is
argmin is a numerical optimization library written entirely in pure Rust, offering a wide range of optimization algorithms behind a consistent, type-agnostic interface. It supports pluggable math backends like ndarray and nalgebra, observers for tracking iteration progress, and optional checkpointing for resilience.

## Use cases
- minimize a cost function in Rust
- run gradient descent or Newton-type solvers
- fit a model by numerical optimization
- implement a custom optimization solver with a consistent framework
- swap between ndarray and nalgebra math backends
- resume long optimization runs after crashes via checkpointing

## When to choose
- you need optimization algorithms in pure Rust without C/Fortran dependencies
- you want a consistent interface to try multiple solvers on the same problem
- you need type-agnostic math with your own types or backend
- you want observers and checkpointing for long-running optimizations

## When to avoid
- you need a batteries-included scientific computing stack like SciPy
- you work primarily in Python or another language
- you need symbolic or mixed-integer optimization rather than numerical continuous optimization

## Facets
- artifact type: library
- maturity: active
- function: math, machine-learning
- domain: mathematics, data-science, performance
- platform: rust, cross-platform
- tags: numerical-optimization, optimization-algorithms, solvers, gradient-descent, type-agnostic, checkpointing, algorithms

## Member repositories
- argmin-rs/argmin (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:12.963977+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:00.540474+00:00, confidence not recorded.
  - readme: https://github.com/argmin-rs/argmin (fetched 2026-08-28T04:04:12.963977+00:00, sha 1c70d1546c3f)
  - homepage: http://argmin-rs.org (fetched 2026-08-29T12:14:01.295529+00:00, sha e13e51230084)
  - registry_crates: https://crates.io/api/v1/crates/argmin (fetched 2026-08-29T12:14:01.298033+00:00, sha 8046366512d4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
