So, my next question is, I have a lot of bags and a lot of weight, and I'm trying to resolve the bin covering problem, and so I had something like that
N0 x_0_0 + N1 x_1_0 + ... + N x_n_0 >= P0 y_0
N0 x_0_1 + N1 x_1_1 + ... + N x_n_1 >= P1 y_1
...
N0 x_0_m + N1 x_1_m + ... + N x_n_m >= Pm y_m
*other constraints*
where N0...N is the weight (it's replace by its actual value in the code), P0...P is the capacity of the bag (same as N), x_i_j a bin to know if the weight i is in the bag j and y_i a bin to know if the bag is filled.
But the problem is that with a big number of weight and bag the solver take too much time to solve it. So I was thinking as there can be no more than 5 weights by bag (according to my approximations) I wanted to do something like this
use weight 0, 1, 2, 3, 4 or 0, 1, 2, 3, 5 or ... for the bag 0 and do the same for every bag.
So as you said, should I write something like that if I have "A or B or C" ?
N0 x_0_0 + N1 x_1_0 + N2 x_2_0 + N3 x_3_0 + N4 x_4_0 + P0 b_0_0 + P0 b_1_0 >= P0 y_0
N0 x_0_0 + N1 x_1_0 + N2 x_2_0 + N3 x_3_0 + N5 x_5_0 + P0 b_0_0 >= P0 y_0 * b_1_0
N0 x_0_0 + N1 x_1_0 + N2 x_2_0 + N3 x_3_0 + N5 x_5_0 >= P0 y_0 *
b_0_0 + P0 y_0 * b_1_0