term = cp.norm(x- Y,2)-D
cost = 10*cp.quad_form(term,1)
# constraints not shown, but correctly in place
problem = cp.Problem(cp.Minimize(cost),constraints)
problem.solve(verbose = True,solver='OSQP')
raise ValueError("Invalid dimensions for arguments.")
ValueError: Invalid dimensions for arguments.
Is this formulation correct, allowed? If not, how can I change this? In the second argument of quad_form instead of 1, I tried np.eye(1) but it doesn't help. Can someone kindly guide me?
Thank you
Sandeep