(self, other: Self)
| 89 | type Output = Self; |
| 90 | |
| 91 | fn add(self, other: Self) -> Self { |
| 92 | let mut res = Self { |
| 93 | cof_map: self.cof_map, |
| 94 | cst: self.cst + &other.cst, |
| 95 | }; |
| 96 | for (var, coff) in other { |
| 97 | res.add_term(var, coff); |
| 98 | } |
| 99 | res |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | impl Add<Integer> for LinearExpression { |