摘要:This paper deals with a class of optimal control problems in which the system is governed by a linear partial differential equation and the control is distributed and with constraints. The problem is posed in the framework of the theory of optimal control of systems. A numerical method is proposed: the state space as well as the convex set of admissible controls are discretized. An abstract error estimate for the optimal control problem is obtained which depends on both, the approximation of the state equation and the space of controls. This theoretical result is illustrated by some numerical examples from the literature. This work has been funded by FONDECYT No. 7070123. The first author is supported by Conicyt-Chile thought FONDECYT No. 1070276 and DGIP No. 12.05.26. The second author is supported by Ministerio de Educación y Ciencia of Spain through grant 18-08-463B-750 and partially supported by Xunta de Galicia under project PGIDIT07PXIB105257PR.