def _objective_func(f, x, k_params, alpha, *args):
    x_arr = np.asarray(x)
    params = x_arr[:k_params].ravel()
    u = x_arr[k_params:]
    # Call the numpy version
    objective_func_arr = f(params, *args) + (alpha * u).sum()
    # Return
    return matrix(objective_func_arr)
The regularized objective function.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/base/l1_cvxopt.py/_objective_func