问题 I'm creating a constraint (in Java) using or-tools SAT solver: IntVar x, y, z; IntVar[] variables = new IntVar{x, y, z}; int[] multiplier = new int{2, 3, 3}; LinearExpr expression = LinearExpr.scalProd(variables, multiplier); //2x + 3y + 3z model.addLessThan(expression, q); Where q is some given integer. The thing is that I need to round the expression result. Something like: if(expression < 25) { expression = 0; } else if(expression < 75) { expression = 50; } else if(expression < 125) {