'Test large number of variables summed.'

def test_large_sum(self):

    for n in [10, 20, 30, 40, 50]:
        A = np.arange((n * n))
        A = np.reshape(A, (n, n))
        x = Variable(n, n)
        p = Problem(Minimize(at.sum_entries(x)), [(x >= A)])
        result = p.solve()
        answer = ((((n * n) * ((n * n) + 1)) / 2) - (n * n))
        print (result - answer)
        self.assertAlmostEqual(result, answer)
