RHS and LHS inconsistency in indexing over constraints

x-ref: Constraint macro RHS and LHS with length(dict[i]) command returns different values · Issue #2254 · jump-dev/JuMP.jl · GitHub

You should read: Please read: make it easier to help you - #19. In particular, it’s easier to help if you can provide a small example that we can copy-paste, rather than downloading and extracting a zip from a different site.

I’ll repeat my suggestion from the JuMP issue for posterity:

sum(x[k] for k in omega[j]) probably includes x[j] . Which would account for the extra coefficient in front of x[j] .