1: \begin{abstract}
2: In this work we propose a natural discretization of the second boundary condition for the Monge-Amp\`ere equation of geometric optics and optimal transport. It is the natural generalization of the popular Oliker-Prussner method proposed in 1988.
3: For the discretization of the differential operator, we use a discrete analogue of the subdifferential. Existence, unicity and stability of the solutions to the discrete problem are established. Convergence results to the continuous problem are given.
4: \end{abstract}
5: