milp-types 0.0.1

Mixed integer linear programming types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

impl Debug for MixedLinearSolver {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        let variables = self.variables.values().collect::<Vec<_>>();
        f.debug_struct("LinearSolver")
            .field("type", &DisplayWrapper::new(&"f64"))
            .field("direct", &self.direct)
            .field("variables", &DisplayList::new(&variables))
            .field("constraints", &DisplayList::new(&self.constraints))
            .field("epsilon", &self.epsilon)
            .finish()
    }
}