Abstract
The paper deals with optimal control problems whose behavior is described by an elliptic equations with Bitsadze-Samarski nonlocal boundary conditions. The theorem about a necessary and sufficient optimality condition is given. The existence and uniqueness of a solution of the conjugate problem are proved. A numerical method of the solution of an optimal problem by means of the Mathcad package is presented.