Summary (translated from the Russian): "Well-known dynamic analogues enable us to use the equations of motion of mechanical systems with program constraints to model the dynamics of systems containing elements of various physical types and also to model the recognition process and processes in economic systems. Following N.~G. Chetaev, we introduce redundant variables to estimate deviations from the constraint equations. The stabilization of constraints is ensured by additional forces, which are determined by a modification of the Lagrange multipliers. We obtain a solution of the problem of modeling the dynamics of an electromagnetic system and a solution of inverse problems of the dynamics of a rigid body of variable mass with a gyroscope."