Computing heteroclinic orbits using adjoint-based methods. (12th November 2018)