An implementation of the numerical algorithm for the constrained shape optimization problems in structural mechanics