cvxpy in generator