12 releases

0.6.0 Jun 16, 2022
0.5.4 Apr 21, 2021
0.5.3 Jan 19, 2021
0.5.2 Oct 10, 2020
0.3.2 Jul 25, 2018

#55 in Science

Download history 445/week @ 2022-11-28 516/week @ 2022-12-05 685/week @ 2022-12-12 399/week @ 2022-12-19 184/week @ 2022-12-26 257/week @ 2023-01-02 535/week @ 2023-01-09 342/week @ 2023-01-16 363/week @ 2023-01-23 547/week @ 2023-01-30 509/week @ 2023-02-06 512/week @ 2023-02-13 510/week @ 2023-02-20 381/week @ 2023-02-27 792/week @ 2023-03-06 462/week @ 2023-03-13

2,153 downloads per month
Used in 6 crates (4 directly)

MIT license

2MB
36K SLoC

C 22K SLoC // 0.2% comments FORTRAN Legacy 7K SLoC // 0.4% comments SWIG 2.5K SLoC // 0.2% comments C++ 2.5K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments Objective-C 623 SLoC FORTRAN Modern 53 SLoC Scheme 37 SLoC Python 27 SLoC Shell 22 SLoC

crates.io Build Status Documentation

nlopt

Thin wrapper around the C nlopt library.

Building

You will need cmake to build successfully. It should be easy to find on your favourite package manager.

Examples

For a basic usage examples, see the /examples directory. Run with

cargo run --example bobyqa
cargo run --example mma

See also the tests in src/lib.rs. Run them with

cargo test

Attribution

This library was originally forked from https://github.com/mithodin/rust-nlopt.

License

The Rust code is licensed under MIT.

For convenience, this crate bundles nlopt and links it statically. This may have licensing implications so I refer the user to the bundled license for more information.

No runtime deps