1 unstable release

Uses old Rust 2015

0.1.0 Mar 26, 2016

#25 in #linear-programming

Download history 15/week @ 2024-03-08 9/week @ 2024-03-15 16/week @ 2024-03-22 45/week @ 2024-03-29 17/week @ 2024-04-05 7/week @ 2024-04-12 7/week @ 2024-04-19 6/week @ 2024-04-26 11/week @ 2024-05-03 11/week @ 2024-05-10 7/week @ 2024-05-17 6/week @ 2024-05-24 11/week @ 2024-05-31 12/week @ 2024-06-07 18/week @ 2024-06-14 11/week @ 2024-06-21

52 downloads per month
Used in good_lp

MIT/Apache

2MB
55K SLoC

C 46K SLoC // 0.2% comments Rust 5K SLoC Visual Studio Project 3K SLoC Happy 737 SLoC Batch 243 SLoC // 0.1% comments Visual Studio Solution 155 SLoC

Wrapper for lpsolve

Build status Crates.io

Please see the documentation for more information.

License

This crate and lpsolve-sys are licensed under either of

at your option. However, please note that lpsolve itself is LGPL. The default configuration right now builds a bundled copy of lpsolve and links to it statically.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Wrapper for lpsolve

Build status Crates.io

lpsolve is a free software (LGPL) solver for mixed integer linear programming problems. The documentation here is nonexistent when it comes to understanding how to model systems or precisely what the consequences of various methods are. The upstream documentation for lpsolve is much more comprehensive.

This wrapper is mostly straightforward.

The performance of lpsolve is mediocre compared to commercial solvers and some other free software solvers. Performance here is how how long it takes to solve benchmark models.

If you need help chosing a solver, the following is an excellent report:

http://prod.sandia.gov/techlib/access-control.cgi/2013/138847.pdf

Boolean return values

The boolean return values represent the underlying return value from lpsolve. true means success and false means some error occured. There is an error reporting API, although by default it logs to standard out, and is not yet wrapped.

Status

This wrapper is not complete. In particular, none of the solver setting or debug functions are wrapped. Additionally, a few of the model building and solution extraction functions are not wrapped.

This is not fundamental, merge requests welcome!

Stability

lpsolve-sys is versioned separately from this wrapper. This wrapper is provisionally unstable, but the functions that are currently wrapped are not likely to change.

License

This crate and lpsolve-sys are licensed under either of

at your option. However, please note that lpsolve itself is LGPL. The default configuration right now builds a bundled copy of lpsolve and links to it statically.

Dependencies