A numerical procedure and coupled system formulation for the adjoint approach in hyperbolic PDE-constrained optimization problems. (15th January 2019)