Hi,
I have a MIQP with the following objective function
Obj_quad = LinExpr()
for i in I:
for k in J:
Obj_quad += (x[i, k] - quicksum(Beta[j, k] * x[i, j] for j in G.neighbors(k))) * (
x[i, k] - quicksum(Beta[j, k] * x[i, j] for j in G.neighbors(k)))
where x's are parameters (input) and beta's are decision variables. All my constraints are linear.
I can run this model for small instances with no issues. However, when I increase the size of my instances, I get this error "Objective Q not PSD (diagonal adjustment would be required)".
I believe my objective function is quadratic and convex. In addition, I do not have any quadratic constraints in my model. Further, my model has a feasible solution. Can anyone give shed light on why I get this error?
Thank you!