Sep-23-2020, 05:20 AM
i'm using sympy, what i needed is a way to determine a binary domain for the variables to assume only the value of 0 or 1
variables = x_12,x_13,x_14,x_15,x_16,x_18,x_28,x_38,x_48,x_58,x_68 equations = (x_12 + x_18 + x_28, x_12 - x_18 - x_28, x_12 + x_13 + x_28 - x_38, -x_13 + x_14 - x_38 - x_48 + 2, -x_14 + x_15 - x_48 - x_58 + 2, x_15 + x_16 + x_58 - x_68) solve((equations),variables)