apply cvxpy functions