When I am running quadprog
with a given functional F
matlab outputs:
Warning: Your Hessian is not symmetric.
Resetting H=(H+H')/2.
However, checking the difference between the functional and it's transpose:
>> max(max(abs(F-F')))
ans =
(1,1) 7.1054e-015
Shows that they are in fact the same. Does quadprog
output this warning even if the functional is close to being symmetrical by a machine error?