Registry / utility / minilp

minilp

JSON →
library0.2.2rscratesunverified

A fast linear programming solver library.

# Cargo.toml [dependencies] minilp = "0.2.2"
INSTALL
IMPORT
SIG · MINILP
M
minilp
utilityrustv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Problem
use minilp::Problem;

Solves a simple linear programming problem with two variables.

use minilp::Problem; fn main() { let mut problem = Problem::new(); let x = problem.add_var(1.0, (0.0, 10.0)); let y = problem.add_var(2.0, (0.0, 10.0)); problem.add_constraint(&[(x, 1.0), (y, 1.0)], "<=", 5.0); let solution = problem.solve(); println!("Solution: {:?}", solution); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
minilp — cargo add minilp · libregistry