Typo in commented formula in from dimod.generators.constraints import combinations
Can you please check this line in the contsraints.py file?
line 92 # = \sum_i,j x_ix_j + (1 - 2k)\sim_i x_i + k^2
I think there is a missing _ and sim-sum typo in line 92 and that should be \sum_i,_j x_ix_j + (1 - 2k)\sum_i x_i + k^2.
\sum_i\sum_j x_ix_j + (1 - 2k)\sum_i x_i + k^2?
Can you please update the formula? For beginners like me these typos like this can be really confusing.