Mixed Integer Linear Programming for Rust, with an user-friendly API. This crate allows modeling LP problems, and lets you solve them with various solvers.
usecrate::{Variable,constraint::ConstraintReference};/// A trait for solvers that support cardinality constraints
pubtraitCardinalityConstraintSolver{/// Add cardinality constraint. Constrains the number of non-zero variables from `vars` to at most `rhs`.
fnadd_cardinality_constraint(&mutself, vars:&[Variable], rhs:usize)-> ConstraintReference;}