I want to add a constraint that a variable should be divisible by a particular integer. I tried using mod operator but it cannot be used with variables:
s.t. c1 x1 mod 10 = 0
I get the following error:
operand preceding mod has invalid type
How to resolve it?