GrUMPy
GrUMPy copied to clipboard
wrong expressions for the calculating pseduocost score
Line 369-370 in the BranchAndBound.py
scores[i] = min(pseudo_u[i][0]*(1-var[i].varValue),
pseudo_d[i][0]*var[i].varValue)
should be updated to
scores[i] = min(pseudo_u[i][0]*(math.ceil(var[i].varValue)-var[i].varValue),
pseudo_d[i][0]*(var[i].varValue- math.floor(var[i].varValue))
to accommodate for non-binary problems.