Non-smooth dynamical systems. Solving the contact problem with friction using methods derived from large-scale optimisation (Version intégrée)