Crates.io | cobyla |
lib.rs | cobyla |
version | 0.6.0 |
source | src |
created_at | 2021-01-18 17:18:44.873735 |
updated_at | 2024-04-22 15:03:24.518976 |
description | COBYLA optimizer for Rust |
homepage | |
repository | https://github.com/relf/cobyla/ |
max_upload_size | |
id | 343584 |
size | 894,469 |
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 into two flavours :
minimize
, the Rust code was generated from the C code of the NLopt project (version 2.7.1)In both cases, 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
cargo run --example paraboloid
The project is released under MIT License.