Originally posted by: kreitzpa
Hi all,
I am having trouble with my quadratic objective function being seen as nonconvex/not positive semi-definite. This happens even when I enter the identity matrix. I am using Python. Below I put the tuples I enter into the function objective.set_quadratic_coefficients() . Below the tuples is the matrix it prints out when I do a nested for loop which calls get_quadratic_coeffiencts(x,y) for x in range 8, for y in range 8.
Any ideas on what is going wrong? My problem is a QP, there are no integer or binary variables involved.
Thanks in advance,
Pat
(2, 2, 1.0)
(7, 7, 1.0)
(0, 0, 1.0)
(1, 1, 1.0)
(4, 4, 1.0)
(5, 5, 1.0)
(3, 3, 1.0)
(6, 6, 1.0)
1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0
#CPLEXOptimizers#DecisionOptimization