Fixed solveWeights - had to do with extra equality constraints that forced variables to be only 0 and a typo