'Test a problem with log.'

def test_log(self):

    for n in [5, 10, 25]:
        print n
        x = Variable(n)
        obj = Maximize(sum_entries(log(x)))
        p = Problem(obj, [(sum_entries(x) == 1)])
        p.solve(solver=SCS, verbose=True)
        self.assertItemsAlmostEqual(x.value, (n * [(1.0 / n)]))
