Abstract
In the process of solving differential algebraic equations of motion for constrained multi-body dynamic system, singular problems such as singular mass matrices, singular configurations, and redundant constraints may appear, which bring great difficulties to numerical simulation. The article presents a new equation of motion for multi-body dynamic system based on UK equations (explicit equations of motion proposed by Udwadia and Kalaba) and least square method, with which the dynamics problems are transformed into unconstrained optimization problems. Due to its pretty explicit and simple form, the new equation is very suitable for programming. Compared with the Lagrange method, the new equation does not require the introduction of Lagrange multipliers. Using this new equation, both the traditional optimization and modern optimization algorithms can be used in dynamics simulation for multi-body system. With the help of different optimization methods, approximate solutions can be found near the location of singular configurations to avoid instability of solution and numerical diffusion. In the end, several examples are given to illustrate that the new equation set is not only a practical modeling method for the above singular problems but also has faster solving speed and higher accuracy than the traditional methods.
Keywords
Introduction
Multi-body system dynamics provides a powerful tool for the dynamic performance evaluation and optimization design for many engineering mechanical systems in the fields of weapon, aviation, spaceflight, vehicle, robot, and precision machinery. There is an urgent need for modern engineering on the research of dynamic modeling and the control design of complex multi-body systems. In recent years, the study on dynamic modeling, design, control solving strategy, and experiment of multi-body systems has been carried out in depth by many scholars at home and abroad and more and more papers based on this topic are published.1–5
Modeling and solving are the core problems of multi-body systems dynamics. By now, different styles of multi-body system dynamics modeling methods have greatly promoted the development of modern technology and provide a variety of effective means for solving the problems of dynamics calculation of complex mechanical systems. Generally speaking, the existing modeling methods of the multi-body system dynamics are mainly based on the following basic principles and methods, such as New-Euler vector mechanics method, the mechanical analysis method derived from D’Alembert principle, the minimum extremum principle based on Gauss principle, and the transfer matrix method.6–10
The dynamic equations gained by different modeling methods are not the same, and in most cases, they can be expressed as differential algebraic equations, nonlinear differential equations, 5 and transfer equation of system boundary state.6,11Although the dynamic equations of the multi-body system modeled by different methods differ from each other, they are theoretically equivalent. Scholars at home and abroad have made outstanding contributions to solving dynamic problems, and many numerical methods come into being. Q Wang and Q Lu, 12 TM Wasfy and AK Noor, 1 W Schiehlen, 2 and G Wang 5 summarized the various computational methods of multi-body systems. The numerical solution of two-order differential equations of multi-body system dynamics based on Lagrange method is relatively mature. But the numerical solution of differential algebraic equation established based on the Newton–Euler method is still in the exploration.
In the process of solving differential algebraic equations of constrained systems, the following singular problems will be encountered such as constraint violation of speed and displacement, singular mass matrix, singular Jacobian matrix of constraints, and the redundant constraints which all may arise during numerical integration procedure. The singular mass matrix may appear when the complex mechanical system is described by redundant generalized coordinates. Generally speaking, when the system moves, it may approach some unusual locations, so-called singular configuration, which can result in acceleration mutation and simulation distortion. In these singular positions, the degree of freedom of the system has a sudden change, which leads to the singularity or redundancy of the constrained equations. The redundant problems can arise when one eagerly combines the sub-systems’ constraints together and ignores the facts whether the constraints are singular or not, although every sub-system’s constraints are independent.
In the process of finding an automatic modeling and solving method in multi-body dynamics, judging whether the constraint is singular or not brings a huge amount of work. Many theories assume that the constraint equations are independent from each other when dealing with the problems of redundant constraints.13–15 However, this premise is often difficult to meet. First, it is hard to judge whether the constraint is independent or not during numerical integration procedure for a complex multi-body system. Then, the ultimate goal of multi-body dynamics is automation of modeling and simulation. It is almost inevitable to introduce redundant constraints in the process of numerical simulation. Finally, if the system has some singular configurations, the degree of freedom of the system changes with the motion of the system, resulting in the redundancy of the constraints. In a word, it is hard to handle the dynamic problems of the multi-body system on the premise of independent constraints.
It is challenging to develop a general method for solving differential algebraic equations, and more and more scholars are attracted to the work. One of the important methods to control the constraints is to modify the velocity constraint equations and the displacement constraint equations, so that the violation degree of the constraints is within the controllable precision range. Then, given that the number of the constraint equations is smaller than the variable of the system, we should find some ways to solve a set of underdetermined equations. The methods of solving the underdetermined equations mainly include generalized inverse method,16,17 least-square method, 18 constraint method, space correction method,19,20 and so on. We can also make the constraint equation compatible with differential equations21,22 by changing the integral form. If the constraint equations of the system are redundant, the independent constraint should be selected from the redundancy constraints.19,20 There are many methods to identify independent constraints, such as the linear independence between the row vector of the Jacobi matrix of constraints or the constraint force.15,23 Augmented Lagrange formulation claims to be able to solve dynamic problems of multi-body systems with redundant constraints and even achieves good results for the system with singular configurations. 24 Z Qi et al. 25 proposed a method of violation correction to guarantee the stability of solution.
For the system with singular configurations, many methods of solving differential algebraic equations, including augmented Lagrange method, are found to fail near the locations of singular configurations. 26 Because the generalized mass matrix of the system becomes singular in singular positions, the violation degree of the system is increased.
The matrix of the system is usually full rank in unconstrained dynamic systems, but often singular in the complex multi-body dynamic systems with constraints or redundant coordinates, as generalized coordinates exceed the minimum number required to describe the configuration of the system. In general, the higher the flexibility of the modeling method, the much more likely the mass matrix of the system to be singular.27–30
UK equations were proposed by Udwadia and Kalaba to handle systems whether or not their mass matrices are singular, and they are general and explicit equations of the system motion. The UK equations are applicable to not only the holonomic systems but also the nonholonomic systems whether or not their mass matrices are symmetric and positive definite. 29 Furthermore, the generalized inverse matrix is introduced into UK equations, and the explicit expressions of the system acceleration are given without solving a set of overdeterminate equations. In this article, the application of UK equations in the multi-body mechanical systems with singular configurations or redundant constraints is discussed by several concrete examples.
Recently, some experts and scholars have studied the UK equations and have made some achievements, but there are some problems remained to be solved. Most of their concern is focused on the application of the UK equations, because the UK equations do not require the use of Lagrange multipliers or care about whether the matrices are singular or not. Some scholars applied the explicit analytic equations of motion to the flexible constraint systems, musical instruments, and dynamic control of redundant robot.31–33 De Falco et al. 34 gave a report about UK equations on numerical efficiency in multi-body dynamics simulations and on teaching effectiveness.
But this article will discuss the applications of the UK equations to singular problems of the multi-body dynamic mechanical systems, such as singular matrix, redundant constraints, and singular constraints, by comparing with other methods from the aspects of the reliability, accuracy of results, and the speed of computation.
UK equations
In this section, the article mainly introduces derivation of UK equations proposed by Udwadia and Kalaba.27–30
The motion of an unconstrained multi-body mechanical system at any time
with the initial conditions
where
Provided the system now subject to
where
Assuming that the constraint set is smooth enough, the differential relation of equation (3) with respect to time
where
The virtual work by the generalized forces of constraints can be expressed as 35
where
Solving equation (7),
where
Since each component of
By equations (5) and (9), we can get
By equations (4) and (10), we can get the following equations
Defining
we can solve equation (11) and get
where
When matrix
It is proved that equation (14) is applicable to these systems with holonomic constraints, nonholonomic constraints, or a combination of the two types.
35
However, UK equations also have some limitations. First, if
Numerical integration algorithm
Equation (14) which describes the acceleration of a complex dynamic system is general, simple, and understandable, but in the process of integrating with respect to time
In this section, the article discusses how to integrate equation (14) with respect to time
After modeling the system with equation (14), it is necessary to choose an integral method to simulate the multi-body system. There are two types of numerical algorithms for solving dynamic equations: explicit methods and implicit methods. Many explicit algorithms are available, such as Runge–Kutta algorithm, central difference algorithm, and predictor-corrector algorithm. Although the explicit algorithm has a relatively high computational efficiency, its step size is generally relatively small in order to ensure the accuracy of the solution.
There are many differences between implicit and explicit algorithms. The implicit algorithms have larger step size and better stability compared with explicit algorithms under the condition of satisfying the accuracy of the system requirement. And they are suitable for solving stiff problems in differential equations which cannot be solved by explicit algorithms.
In this article, an explicit algorithm with two-order accuracy, the Newmark method, is introduced. And a new modeling method based on the UK equations and the Newmark method is proposed.
According to Newmark method proposed in 1959 by Professor Newmark, 38 we make the following assumptions in the calculation
where
By equations (15) and (16), the following expression can be obtained
and
Substituting equations (17) and (18) in equation (13), we can obtain
Provided the matrix
And equation (19) can be transformed into the following form
Since equation (21) is overdetermined, we choose least square method and unconstrained optimization method to get the approximate solution.
Defining
then, the 2-norm of equation (23) can be written as
But if equation (20) is not satisfied, the solution of equation (23) may diverge. In order to ensure the convergence and stability of solution of the optimization, here we add a regularization item
where
Equation (24) is called UK optimization equation in this article which can be applied to the multi-body systems with singular configuration. Besides, the error of the constraint equations is given as follows
The constraint problems in complex, multi-body mechanical system are transformed into optimization problems by UK optimization equation which holds the advantages of both UK equations and Newmark method. And also the UK optimization equation has some significant advantages compared with classical modeling methods as follows:
The generalized coordinates used to describe the configuration of the system are no longer independent any more. Instead, they can exceed the minimum number required by the system, which greatly simplify the form of the equations of motion of the complex system.
Compared with Lagrange’s method, the UK optimization equation is explicit and general for constrained discrete dynamic systems. Besides, it avoids to calculate the Lagrange multipliers which are always too difficult to obtain for those complex systems with multiple degrees of freedom.
Whether the constraints are ideal or not, the UK optimization method can be used in such systems with holonomic, nonholonomic constraints, or a combination of the two types.
As the UK optimization equation is based on the Newmark method and UK equations, it is unconditionally convergent and also has a second-order accuracy. Because the inertial matrix of the system is semi-positive and equation (24) is a convex two-order programming, the global minimum point of equation (24) must exist.
The traditional optimization methods, the modern optimization algorithms, or even both kinds of methods can be used to carry out the numerical simulation for complex multi-body dynamics system modeled by the UK optimization equations, such as Lagrange multiplier method, penalty function method, genetic algorithm, and ant colony algorithm.
Baumgarte method 39 is one of the famous violation correction methods which has the following form
where
The flowchart of the program is shown in Figure 1 where

Flowchart of the program.
In this article, we use the traditional unconstrained optimization algorithm as the main method to stimulate the dynamic behavior of the multi-body system.
Numerical simulation
In this section, the article provides four different examples to discuss how UK optimization equation handles the singular problems of the multi-body dynamics. The four examples are, respectively, a skate on an inclined plane with nonholonomic constraints, a four-bar linkage with a singular mass matrix, a crank slide with singular configurations, and a rolling disk in a vertical direction under redundant constraints.
The UK optimization equations, the Routh equations, and the Lagrange method are applied to the four examples. And comparison results are given in the form of figures.
Example 1
Consider a skate on an inclined plane with Cartesian coordinates

Skate on an inclined plane.
The integral step
When
The Routh equation is a product of the combination of ordinary indefinite multipliers and Lagrange’s equation of the second kind. It can be used in nonholonomic mechanical systems.40,41
In this example, the UK optimization equations and Routh equations are, respectively, used to simulate the dynamic problem taking
Discussion 1
In example 1, the article uses genetic algorithm42,43 as the optimization method to get the global minimum point of equation (24). Figures 3 and 4 show the curves of generalized coordinates

Time histories of the displacement of

Time histories of the displacement of

The error curve of the constraint equation obtained by UK optimization equations.

The error of the constraint equation obtained by Routh method.
Example 2
The second example deals with a four-bar linkage with three rotation angles

Four-bar linkage.
The system’s kinetic energy is
And the system’s potential energy can be simply expressed as
We can use Lagrangian function
The parameters describing the system and its constraints are
Discussion 2
The simulation results modeled by UK optimization equations can be described as Figures 8 and 9, which respectively show the time histories of the displacement and the error in satisfying the constraint. The above results can be seen to be equivalent to Figures 10 and 11 simulated by Lagrange’s method of the first kind (to within the error tolerance). Both of the modeling methods have the same local tolerance level of

Time histories of the displacement of

The error in constraint equations vs time t obtained by UK optimization equations.

Time histories of the displacement of

The error curve of constraint equation obtained by Lagrange’s equations of the first kind.
Example 3
Consider a crank slider included two rods with the same quality and length, moving in the

The crank slider.
Differentiating equation (30) twice, we obtain
When
Discussion 3
Figures 13–16, respectively, show the curves of generalized coordinates and the curves of constraints error versus time

Time histories of the displacement of

The error curve of constraints vs time t modeled by UK optimization equations.

Time histories of the displacement of

The error in constraint equations vs time t modeled by Lagrange's equations of the first kind.
Compared with the traditional modeling methods, the UK optimization equations can get an approximate solution at the location of singular figurations with optimization methods and avoid instability of solution and numerical diffusion. A conclusion comes into being that the UK optimization equations can be seen as a practical simulation model in solving singular configuration problems of multi-body system from the view of accuracy and efficiency of calculation.
Example 4
Consider a rolling disk of mass

The rolling disk in vertical direction.
The parameters describing the system and its constraints are
The system’s constraints
Considering the Routh method cannot solve the dynamics problems with redundant constraints, in this example, a comparison of simulation results is carried out between UK optimization equation with redundant constraints and Routh method with independent constraints.
Discussion 4
Figures 18 and 19, respectively, describe the curves of the system generalized coordinates and the error of the constraint equation versus time

Time histories of the displacement of

The error curve of redundant constraints obtained by UK optimization equations.

Time histories of the displacement of

The error curve of the independent constraints obtained by Routh equations.

The difference curve of the displacement
Conclusion
In order to solve the differential algebraic equations of constrained systems, researchers have to be faced with singular problems such as singular mass matrix, singular configurations, and redundant constraints, which bring great difficulties to the numerical simulation work. In this article, a new UK optimization equation based on UK equations and the Newmark method is proposed. After comparing the different simulation results obtained by UK optimization equation and traditional methods, the following conclusions are drawn:
The constraint problems in complex, multi-body mechanical systems are transformed into unconstrained optimization problems by UK optimization equations which hold the advantages of both UK equations and Newmark equations. This change just opens up new ways for solving the dynamic problems of multi-body systems. Mature traditional optimization methods and modern optimization algorithm or even the combinations of both kinds of methods can be applied to the dynamic solving problems of complex multi-body systems. The UK optimization equations can get an approximate solution in the singular figuration with optimization methods to avoid the solution divergence.
The UK optimization equations can be applicable to holonomic, nonholonomic systems, or a combination of both types. And the equations do not require, nor use, the notion of Lagrange multipliers which simplify the calculation.
The UK optimization equations are explicit and general to handle the complex multi-body systems whether or not their mass matrices are singular, whether or not their constraint equations are redundant or singular, and whether or not their constraints are ideal. The example of a crank slider demonstrates that the system simulated by UK optimization equations can smoothly approach the singular configurations, and the violation degree does not exceed the permitted range without considering constraint violation correction. Finally, the article takes a rolling disk as an example to verify that the UK optimization equation can be a practical modeling method to simulate the multi-body system with redundant constraints.
In terms of computational efficiency, from the article’s examples, we can see that the UK optimization equations have the advantages of faster calculating speed and higher accuracy than traditional methods such as Lagrange’s method and Routh method when dealing with singular problems in multi-body dynamic system.
The UK optimization equation used to describe the motion of constrained discrete dynamic systems in this article is pretty explicit and general without constraint violation correction. Considering its higher computational efficiency and simpler expression than the classical modeling methods, the UK optimization equation is much suitable for programming.
Footnotes
Handling Editor: Chuanzeng Zhang
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This paper was supported by the National Natural Science Foundation of China (11272167).
