Yan
unread,Aug 6, 2013, 3:18:26 PM8/6/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Hello all,
I am trying to use Gurobi to solve my quadratic constrained quadratic programming problem. Code 'qptest2.m' is attached here. I am working on fedora19(64 bits), MATLAB 2012a, and Gurobi 5.5.
The objective function is quadratic with four variables, and one quadratic equality constraint. I ran the script with preloaded data 'test1.mat' (attached also), however it said
-----------------------------------
Error using gurobi
Gurobi error 10020: Q matrix is not positive semi-definite (PSD)
-----------------------------------
I check the Q matrix with svd to see the singular values, they all are positive, I have no idea why Gurobi think it's not PSD.
By the way, how to set the constraint to be quadratic only in the better way(using parameters), now I am setting A and b to be zero, and sense = '='.
Lastly, how to provide (do I need to provide) an initial guess (starting point) to the problem. If yes, how to do it.
Thanks a lot!
Yan