5 releases

0.1.1 Oct 19, 2023
0.1.0 Oct 13, 2023
0.1.0-alpha.3 Oct 10, 2023
0.1.0-alpha.2 Oct 9, 2023

#1206 in Algorithms

Download history 5/week @ 2024-07-20 113/week @ 2024-07-27 59/week @ 2024-08-03 5/week @ 2024-08-10 12/week @ 2024-08-17 36/week @ 2024-08-24 262/week @ 2024-08-31 65/week @ 2024-09-07 8/week @ 2024-09-14 18/week @ 2024-09-21 308/week @ 2024-09-28 116/week @ 2024-10-05 197/week @ 2024-10-12 87/week @ 2024-10-19 33/week @ 2024-10-26 43/week @ 2024-11-02

361 downloads per month
Used in 2 crates (via egobox-ego)

Custom license

490KB
12K SLoC

Rust 8K SLoC // 0.0% comments C 4K SLoC // 0.3% comments

slsqp - a pure Rust implementation

tests crates.io docs

SLSQP is a sequential quadratic programming algorithm for nonlinearly constrained gradient-based optimization based on the implementation by Dieter Kraft and described in:

Dieter Kraft, "A software package for sequential quadratic programming", Technical Report DFVLR-FB 88-28, Institut für Dynamik der Flugsysteme, Oberpfaffenhofen, July 1988. Dieter Kraft, "Algorithm 733: TOMP–Fortran modules for optimal control calculations," ACM Transactions on Mathematical Software, vol. 20, no. 3, pp. 262-281 (1994).

The Rust code was generated/adapted from the C code from the NLopt project (version 2.7.1). The algorithme is available here as a minimize function. An initial transpilation was done with c2rust then the code was manually edited to make it work. The callback mechanism is inspired from the Rust binding of NLopt, namely rust-nlopt.

Example

cargo run --example paraboloid

License

The project is released under MIT License.

Dependencies