A variational approach to plasticity. Numerical experiments