'Test log_sum_exp function that failed in Github issue.'

def test_log_sum_exp(self):

    import cvxpy as cp
    import numpy as np
    np.random.seed(1)
    m = 5
    n = 2
    X = np.matrix(np.ones((m, n)))
    w = cp.Variable(n)
    expr2 = [cp.log_sum_exp(cp.vstack(0, (X[i, :] * w))) for i in range(m)]
    expr3 = sum(expr2)
    obj = cp.Minimize(expr3)
    p = cp.Problem(obj)
    p.solve(solver=SCS, max_iters=1)
