'Test a problem with convolution.'

def test_conv_prob(self):

    import cvxpy as cvx
    import numpy as np
    N = 5
    y = np.asmatrix(np.random.randn(N, 1))
    h = np.asmatrix(np.random.randn(2, 1))
    x = cvx.Variable(N)
    v = cvx.conv(h, x)
    obj = cvx.Minimize(cvx.sum_entries(cvx.mul_elemwise(y, v[0:N])))
    print cvx.Problem(obj, []).solve()
