(self, other: Self)
| 128 | type Output = Self; |
| 129 | |
| 130 | fn sub(self, other: Self) -> Self { |
| 131 | let mut res = Self { |
| 132 | cof_map: self.cof_map, |
| 133 | cst: self.cst - &other.cst, |
| 134 | }; |
| 135 | for (var, coff) in other { |
| 136 | res.add_term(var, -coff); |
| 137 | } |
| 138 | res |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | impl Sub<Integer> for LinearExpression { |