caelum0x 7a06febeb6 chore(release): inherit repository metadata on all crates
Crates inherited version/license/edition from [workspace.package] but not
`repository`, so every crate published without a repository link. Add
`repository.workspace = true` uniformly, completing the
description+version+license+repository metadata `cargo publish` and crates.io
expect. No build impact.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-06 13:08:47 +03:00
..
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00

lawsynth-opt

Deterministic small-scale optimizers for calibrating candidate laws. It exposes coordinate search, L-BFGS, Nelder–Mead, bounded affine least squares, and a mixed strategy, all with explicit termination reasons.

Use

use lawsynth_opt::{LbfgsConfig, ParameterBounds, lbfgs_minimize};

let result = lbfgs_minimize(
    &[2.0], ParameterBounds::new(-10.0, 10.0)?, LbfgsConfig::default(),
    |x| ((x[0] - 1.0).powi(2), vec![2.0 * (x[0] - 1.0)]),
)?;
assert!(result[0] > 0.9 && result[0] < 1.1);
# Ok::<(), lawsynth_opt::OptimizationError>(())

Objectives are caller-supplied and must be finite over their accepted domain. This crate reports convergence or budget termination; it does not manufacture gradients, enforce scientific identifiability, or replace model validation.