I have a list beta_list, where each entry in the list is a vector. I want to minimize the following function
def two_norm(this_beta, beta):
cp.Pnorm(beta - this_beta, p = 2)**2
def obj_fn(beta_list, beta):
sum(map(two_norm, beta_list, itertools.repeat(beta, len(beta_list))))
Can cvxpy handle objective function of this form, where a function is applied to a list using map
in python?