good_lp
A Linear Programming modeler that is easy to use, performant with large problems, and well-typed.
use ;
Usage examples
You can find a resource allocation problem example in
resource_allocation_problem.rs.
Solvers
This library offers an abstraction over multiple solvers. By default, it uses cbc, but you can also activate other solvers using cargo features.
cbc
Used by default, performant, but requires to have a C compiler and the cbc C library installed.
minilp
minilp is a pure rust solver, which means it works out of the box without installing anything else.
You can activate it with :
[]
= "0.1.0"
= false
= ["minilp"]
Then use minilp instead of coin_cbc in your code:
use good_lp::minilp and then vars.maximise(objective).using(minilp).