AnsweredAssumed Answered

MPVAR mod integer

Question asked by cian.mcleod on Mar 4, 2017
Latest reply on Mar 10, 2017 by Johannes Müller


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

Outcomes