Wrapper for lpsolve
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:
The boolean return values represent the underlying return value from lpsolve.
false means some error occured. There is an error reporting API, although by
default it logs to standard out, and is not yet wrapped.
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!
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.
This crate and
lpsolve-sys are licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.
A linear programming problem.