Hello everyone. I am trying a problem related to graph traversal over graph G=(V, E), where a matrix X composing of xij (i, j belong to V) of BoolVar type denoting whether edge (i, j) are being traversed or not.
I added a bunch of constraints and printed the X matrix. The funny thing is that values in X are not Boolean, but rather floats between 0 and 1. I understand that this is because I am using the GLOP_LINEAR_PROGRAMMER.
So, my question, any way to cleverly constraint xij to be either 0 or 1, or any modification I can make without turning my code upside down?
Details: Python3 (3.6.9) and OR-Tools (9.2.9972)