  We consider general shape optimization problems governed by Dirichlet
boundary value problems. The proposed approach may be extended to other
boundary conditions as well. It is based on a recent representation result for
implicitly defined manifolds, due to the authors, and it is formulated as an
optimal control problem. The discretized approximating problem is introduced
and we give an explicit construction of the associated discrete gradient. Some
numerical examples are also indicated.
