2 releases

0.1.1 Jul 26, 2025
0.1.0 May 16, 2022

#873 in Algorithms

Download history

86 downloads per month
Used in gosh-optim

MIT/Apache

310KB
718 lines

FIRE: fast inertial relaxation engine algorithm

Build Status GPL3 licensed

Features

  • Fast & Reliable Rust implementation.
  • MD integration schemes: Velocity Verlet and Semi-implicit Euler methods
  • line search for optimal step size.

Usage

use fire::*;

let mut x = [0.0];
fire().minimize(&mut x, |x, gx| {
    let fx = (x[0] - 1.).powi(2);
    gx[0] = 2.0 * (x[0] - 1.0);
    fx
});

References

Dependencies

~13–30MB
~431K SLoC