Corrected typo in subgradient formulation
The distance between a port and itself should be 0, not 1