Thank you for your rapid reply and your contribution to yalmip platform, which makes the modeling process in reserch work easier. To describe the problem clearly, I have uplaod a document in the attached file. In this document, when relax the constraints 2 in test3.m, the obtained value of objective function becomes worse compared with the solution of the original problem. Since this is a minimization problem, the relaxasion of constraints will lead to a better solution. So I think the CPLEX solver must not find the optimal solution.
After changing the first element in vector Pg0 (replace 0.44 by 0.33), it seems that the optimal soluton is obtained. And the final solution of the relaxed problem is better than the orignal problem.
If the objective function of QP is formulated as X’ *Q*X+B*X+C, the changing of Pg0 only influence the value of matrix B, but it seems that wheather the the final optimal solution can be found is also influenced.
By the way, can you tell me some other method to judge wheather the final solution is optimal directly?
Thank you!