Hi all,

I'm wondering is it possible to modulo an mpvar.

I have a set of mpvars Xs which are binary and I want to have Sum(i in set) Xi mod 2 = 0 (in other words), the sum of the binary variable are even. However, I get the typical error saying that mpvar mod integer is not defined.

Is there anyway around this?

Thanks,

Cian

Enclosed you find a full example (just for the sake of completeness):