I use Ipopt to solve a problem with sparse hessian and jacobian matrices.
If I provide the hessian matrix: its structure, and the non zeros elements in the hessian matrix, it will be really fast.
If I do not define the hessian structure but provide the whole hessian matrix, which is almost zeros, the solver will be slow but converges to a better solution!
Does that mean the zeros help the solver find a better solution?