I have a question about Gurobi. How do I define a constraint that can accept multiple different values? For example, a sample constraint is shown as follows:
f = [1.0, 1.0, 1.0, 1.0] x = m.addVars(4, lb=0, ub=15, vtype=GRB.INTEGER) m.addConstr(x.prod(f) == 10 or 15, name="")
This constraint can be equal to multiple values, such as 10 or 15. Is this constraint possible in Gurobi based on the Python language? If so, how should I write the code?