Hello,
I'm solving an SOS optimization problem with an objective function and several SOS constraints with SeDuMi solver. Essentially, I'm trying to construct a polynomial function that minimizes the objective function while satisfying the SOS constraints.
The problem is successfully solved and I get the following primal residual errors:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| ID| Constraint| Primal residual| Dual residual|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| #1| SOS constraint (polynomial)| 6.2535e-07| NaN|
| #2| SOS constraint (polynomial)| 2.1316e-14| NaN|
| #3| SOS constraint (polynomial)| 1.2143e-16| NaN|
| #4| SOS constraint (polynomial)| 1.3878e-16| NaN|
| #5| SOS constraint (polynomial)| 8.6262e-07| NaN|
| #6| SOS constraint (polynomial)| 5.3776e-16| NaN|
| #7| SOS constraint (polynomial)| 2.2204e-16| NaN|
| #8| SOS constraint (polynomial)| 6.9389e-17| NaN|
| #9| SOS constraint (polynomial)| 3.9968e-15| NaN|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| A primal-dual optimal solution would show non-negative residuals. |
| In practice, many solvers converge to slightly infeasible |
| solutions, which may cause some residuals to be negative. |
| It is up to the user to judge the importance and impact of |
| slightly negative residuals (i.e. infeasibilities) |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
However, when I check for the minimum of Constraint #4 manually, I get negative values, indicating that it is not necessarily SOS. I'm trying to understand why this is the case, and if I can indeed trust the results obtained.
Any advice would be appreciated.
Thanks in advance.