Discrete Variable in CVX problem

Hello everyone,

Is there a way to define a discrete variable. I am trying to add such constraint (rem(x,0.1)==0) to the problem to ensure that the result x is multiple of 0.1, but this function is not supported by CVX.
Is there a way to define such discrete variable (multiple of specific value like 0.1 in my case)?

Many thanks in advance!

variable y integer
x = 0.1*y;
1 Like