Thin wrapper around the C
Note: Most functionality has been implemented, but not all has been tested working.
This crate depends upon
nlopt and will fail if it cannot find a library to link against. It has been tested against
nlopt v2.5.0 - it may or may not work against other versions.
The source can be downloaded from the official site, which also has provides build instructions.
Note you may find it more convenient the build
nlopt as a static library, by passing
The resulting C-lib must be on the search path at link-time. This can be set with
environment variables, the
rustc command or a
(This is a quick way to check the C-lib can be found).
For a basic usage example, see
examples/bobyqa.rs. Run with
cargo run --example bobyqa
See also the tests in
This library was originally forked from https://github.com/mithodin/rust-nlopt.