Comment Comment by ggrothendieck In R `nnls` (nonnegative least squares) does not guarantee integrality but in this case does give one solution and it happens to be integral: `library(nnls); nnls(A, b)` parent ggrothendieck 2 years ago