Method for non-negativity constraint
Set all negative values in the matrix to 0
constraintNonNegativity(x, d)
x
d
Useful links