Adiabatic quantum optimization with the wrong Hamiltonian