Check that the portfolio matrix respect the horizontal and vertical adding-up constraints
Useful links