  In this paper, we propose a mathematical formulation for the management of an
oil production network as a multistage optimization problem. The reservoir is
modeled as a controlled dynamical system by using material balance equations.
We use a dynamic programming algorithm to solve the optimization problem. Two
numerical applications illustrate our work: the first one consists in
optimizing the production of a gas reservoir, whereas the second one tackles an
oil reservoir with water injection.
