We investigate the existence of solutions for the Dirichlet problem including the generalized balance of a membrane equation. We present a duality theory and variational principle for this problem. As one of the consequences of the duality we obtain some numerical results which give a measure of a duality gap between the primal and dual functional for approximate solutions.