This work considers the modeling and optimization of friction laws and energy exchange processes in multibody systems. It is proposed to control the vibration level of such systems by introducing equivalent frictional forces. The corresponding optimal vibration control problem is formulated and reduced to a constrained optimization one in order to determine the optimal friction laws dissipating the oscillating energy. Additionally, an approach is proposed to solve general control problems for optimal vibration damping. The proposed approach is illustrated using two examples