Reproducing Set Packing Problem #22
-
I am trying to reproduce the results from a known set packing problem by modeling it as a QUBO problem. Essentially, we are trying to optimize the following objective function along with 2 constraints: The constraints can be written as QUBO penalties so: where the scalar penalty
The optimal solution is known to be either
I get |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Actually your matrix uses a penalty
SB is an approximation algorithm, which means that it will not always find the best values, just some "good" values. Actually there is no theoretical guarantee on how close to the optimum those values are. I ran your exemple and I also got the same result. I also ran it using another variant of SB and got the expected result ( sb.maximize(Q, input_type='binary', ballistic=True, best_only=True) |
Beta Was this translation helpful? Give feedback.
Actually your matrix uses a penalty$P = 6$ . Indeed, for some $i \neq j$ the coefficient in front of $x_i x_j$ is $Q_{i, j} + Q_{j, i}$ . However, this is not where the problem comes from.