\displaystyle   \Lambda = \sum_{(q,d_{+},d_{-})} \max(0, 1 - f(q,d_{+}) + f(q,d_{-}))  