Test if the expression only has the constant term
(&self)
| 34 | impl LinearExpression { |
| 35 | /// Test if the expression only has the constant term |
| 36 | pub fn is_constant(&self) -> bool { |
| 37 | self.cof_map.is_empty() |
| 38 | } |
| 39 | |
| 40 | /// Returns the constant term |
| 41 | pub fn constant(&self) -> Integer { |
no test coverage detected