“…, N t }. On the other hand, all terms involving time-derivative go through a time discretization equivalent to a classical implicit Euler approach [3,23,46,50,51,52]. The backward Euler method is used to discretize the state equation forward in time, instead the adjoint equation is discretized backward in time using the forward Euler method, which is equivalent to the backward Euler with respect to time T − t, for t ∈ (0, T ) [16,50].…”