I wrote different constraints for a problem and some people say that these constraints are not-linear.
My own feeling is that my constraints are linear. Can you help me to prove that?
My first constraint: $$ \sum_{i=1}^{g} \prod_{k=1}^{n} X_{ijk} = 1 ;\forall j=1\dots m $$ with this boolean variable: $$ X_{ijk} = \begin{cases} 1 & \text{ if true } \\ 0 & \text{ otherwise} \end{cases} $$
My second constraint: $$ \sum_{i=1}^{g} \sum_{j=1}^{m} \prod_{k=1}^{n} X_{ijk} = 1 $$
Like these constraints are based on boolean variable {0;1}, then these constraints are linear because each member of the multiplications can not have a value greater than 1. Is that proof is correct?
In the worst case i can have that : 1 + 1 + ... + 1 with number of additions = g.
For my second constraint that is more complex :
– AkrogAmes Sep 10 '16 at 08:44No, celtschk, the sum can be greater than 1 if you make an addition. Just variable X is boolean, then if you take $X_1 + X_2 = 2 $.
– AkrogAmes Sep 10 '16 at 08:54