cobyla-argmin

Crates.iocobyla-argmin
lib.rscobyla-argmin
version1.0.0
created_at2026-01-15 14:05:19.553499+00
updated_at2026-01-15 14:05:19.553499+00
descriptionCOBYLA optimizer for Rust as an argmin solver
homepage
repositoryhttps://github.com/relf/cobyla-argmin/
max_upload_size
id2045619
size629,165
Rémi Lafage (relf)

documentation

https://docs.rs/cobyla-argmin

README

cobyla - a pure Rust implementation

tests crates.io docs

COBYLA is an algorithm for minimizing a function of many variables. The method is derivatives-free (only the function values are needed) and take into account constraints on the variables. The algorithm is described in:

M.J.D. Powell, "A direct search optimization method that models the objective and constraint functions by linear interpolation," in Advances in Optimization and Numerical Analysis Mathematics and Its Applications, vol. 275 (eds. Susana Gomez and Jean-Pierre Hennart), Kluwer Academic Publishers, pp. 51-67 (1994).

The algorithm comes as an argmin solver, CobylaSolver: the Rust code was generated from the C code from here

An initial transpilation was done with c2rust then the code was manually edited to make it work. The callback mechanismn is inspired from the Rust binding of NLopt, namely rust-nlopt

Example

cargo run --example paraboloid

Related projects

  • rust-nlopt: the Rust binding of the NLopt project
  • argmin: the pure-Rust optimization framework
  • cobyla: a pure Rust implementation of the COBYLA algorithm.
  • slsqp: a pure Rust implementation of the SLSQP algorithm.

License

The project is released under MIT License.

Commit count: 0

cargo fmt