How do you add a mixed-integer constraint where x is an integer and y is a continuous variable with x + y <= 10 in Pyomo?
model.x = Var(within=Integers)
model.y = Var(domain=NonNegativeReals)
model.constraint28 = Constraint(expr=model.x + model.y <= 10)