Next Article in Journal
Electricity Evaluation and Emission Characteristics of Poultry Litter Co-Combustion Process
Next Article in Special Issue
Experimental Validation of Optimal Parameter and Uncertainty Estimation for Structural Systems Using a Shuffled Complex Evolution Metropolis Algorithm
Previous Article in Journal
Kinematic Model and Real-Time Path Generator for a Wire-Driven Surgical Robot Arm with Articulated Joint Structure
Previous Article in Special Issue
Damping Assessment of Lightweight Timber Floors Under Human Walking Excitations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Gradient Descent-Based Optimization Method of a Four-Bar Mechanism Using Fully Cartesian Coordinates

by
María T. Orvañanos-Guerrero
1,
Claudia N. Sánchez
1,2,
Mariano Rivera
3,
Mario Acevedo
4,* and
Ramiro Velázquez
1,*
1
Facultad de Ingeniería, Universidad Panamericana, Josemaría Escrivá de Balaguer 101, Aguascalientes 20290, Mexico
2
INFOTEC—Centro de Investigación e Innovación en Tecnologías de la Información y Comunicación, Aguascalientes 20313, Mexico
3
Centro de Investigación en Matemáticas, Guanajuato 36023, Mexico
4
Facultad de Ingeniería, Universidad Panamericana, Álvaro del Portillo 49, Zapopan, JAL 45010, Mexico
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2019, 9(19), 4115; https://doi.org/10.3390/app9194115
Submission received: 17 August 2019 / Revised: 25 September 2019 / Accepted: 25 September 2019 / Published: 1 October 2019
(This article belongs to the Special Issue Vibration-Based Structural Health Monitoring)

Abstract

:
Machine vibrations often occur due to dynamic unbalance inducing wear, fatigue, and noise that limit the potential of many machines. Dynamic balancing is a main concern in mechanism and machine theory as it allows designers to limit the transmission of vibrations to the frames and base of machines. This work introduces a novel method for representing a four-bar mechanism with the use of Fully Cartesian coordinates and a simple definition of the shaking force (ShF) and the shaking moment (ShM) equations. A simplified version of Projected Gradient Descent is used to minimize the ShF and ShM functions with the aim of balancing the system. The multi-objective optimization problem was solved using a linear combination of the objectives. A comprehensive analysis of the partial derivatives, volumes, and relations between area and thickness of the counterweights is used to define whether the allowed optimization boundaries should be changed in case the mechanical conditions of the mechanism permit it. A comparison between Pareto fronts is used to determine the impact that each counterweight has on the mechanism’s balancing. In this way, it is possible to determine which counterweights can be eliminated according to the importance of the static balance (ShF), dynamic balance (ShM), or both. The results of this methodology when using three counterweights reduces the ShF and ShM by 99.70% and 28.69%, respectively when importance is given to the static balancing and by 83.99% and 8.47%, respectively, when importance is focused on dynamic balancing. Even when further reducing the number of counterweights, the ShF and ShM can be decreased satisfactorily.

1. Introduction

A complete mechanical balance or dynamic balance of a mechanism consists of eliminating the dynamic reactions at the base of a mechanism produced by the movement of its structure. These dynamic reactions are the shaking force (ShF) and the shaking moment (ShM). Such balancing is desirable because the ShF and ShM cause vibrations of the supporting frame which latter turn into noise, fatigue, wear, etc. The four-bar mechanism is often taken as example in dynamic balancing because its number of applications [1,2].
Dynamic balancing can be performed in two stages. In the first one, the balancing conditions are commonly obtained using methods that involve Cartesian coordinates and the use of angles; this implies the use of trigonometric functions that derive into complex expressions [3,4,5,6]. In relation to this point, this work exploits the use of fully Cartesian coordinates (also called natural coordinates [7]) to obtain the expressions for optimizing the mechanism balance avoiding any use of angular variables [8,9] and therefore, simplifying the equations. In the second stage, dynamic balancing can be achieved by different methods. A complete review of methods can be found in [3,4,5] and more recently in [6]. All balancing methods imply the addition of masses in some or other form while trying to maintain the total mass as low as possible. Methods based on mass redistribution are very useful from a practical point of view and are very suitable to be implemented. Using optimization techniques, it is possible to minimize the dynamic reactions while maintaining the increment of mass under control. Mass redistribution can be done by optimizing the geometry of the links [10] or by optimizing the size and position of counterweights.
Traditionally, when computational resources were not available, dynamic balancing optimization was carried out using analytic or semi-analytic methods [11,12,13,14,15,16]. Nowadays, technological advances have made it easy to implement advanced numerical optimization techniques. It is usually considered that this kind of formulation is difficult to solve because of the nonlinear nature. The most common technique used to optimize mechanism balancing is meta heuristics. Some examples can be appreciated in [17,18,19]. Herein, techniques like the so-called evolutionary algorithms, Firefly Algorithm, or Differential Evolution, were used, respectively. Some references to methods that transform the objective function to make it convex [20] can also be found. However, they involve a major mathematical analysis.
The optimization algorithm proposed in this paper is a simplified version of Projected Gradient Descent [21], a deterministic and iterative algorithm based on the gradient vector direction. The optimization problem is multi-objective with bound constraints (also known as box constraints). The objective function is obtained by the linear combination of the improvement indexes of the ShF and ShM. This methodology is efficient due to the characteristics of the functions obtained by using fully Cartesian coordinates, allowing to reach a convergence at the minimum value with just few iterations.
This article presents an extension of our previous work [22] in which, with the use of Fully Cartesian coordinates, dynamic balancing optimization of a four-bar mechanism was achieved through the sole addition of counterweights [23,24]. As a novelty, this work presents a comprehensive analysis of the gradient on the optimal points obtained after the first optimization, so it is possible to know whether the proposed limits of the optimized variables can be modified (whenever possible) to obtain even better results than those originally obtained. An analysis of the volume and the relation between the area and the thickness of the counterweights completes and confirms the gradient analysis. The proposed methodology can be used in similar problems to analyze the optimization of mechanisms. In addition, Pareto Fronts are used to present a sensitivity analysis of the response of the whole mechanism when using three, two, or one counterweights. This type of analysis allows to define the importance of each counterweight and determine which ones can be dispensed, obtaining optimum results when trying to optimize the ShF, the ShM, or both.
The rest of the paper is organized as follows: Section 2 presents the mass-matrix definition and calculus of the ShF and ShM equations of a four-bar linkage using fully Cartesian coordinates. Section 3 defines the objective function for the optimization. Section 4 details the algorithm used to optimize the balance and the sensitivity analysis. Section 5 presents the numerical optimization and analysis when using three, two, and one counterweights. Section 6 concludes the paper summarizing the main findings and giving future work perspectives.

2. Mechanical Analysis

2.1. Mass-Matrix of the Four-Bar Linkage Using Fully Cartesian Coordinates

Figure 1 shows a four-bar linkage consisting of four rigid bodies located in the same plane. A motor is located at point A, so the crank AB rotates with velocity ω [ r a d s / s ] . l A B , l B D and l C D represent the length of each link. By using Fully Cartesian coordinates [9] to represent the system, it is easy to obtain the equations of the ShF and ShM. This method has been previously used in [22,25,26].
To obtain the mass-matrix M of the whole mechanism, it is necessary to define the mass-matrix M n of each n link. Those matrices can be calculated as presented in [9].
As long as the balance is carried out by adding counterweights, it is necessary to include in M the related parameters. Therefore, each link will be considered as the conjunction of one-bar and one counterweight as shown in Figure 2.
The mass m n of each link-counterweight n = 1 , 2 , 3 is defined as:
m n = m b n + m c n
where m b n is the mass of the original bar n ( n = 1 , 2 , 3 ) and m c n is the mass of each counterweight ( n = 1 , 2 , 3 ). In addition, the counterweight mass in terms of its density and size can be represented as:
m c n = π ρ c n t c n y c n 2 + x c n 2
where ρ c n is the density of the material used in each counterweight, t c n is the thickness of each counterweight, and x c n , y c n represents the position of the center of mass of the counterweight measured in relation with the local coordinate system O n .
The total inertia of each link-counterweight I n , where n = 1 , 2 , 3 , is defined as:
I n = 3 m c n y c n 2 + x c n 2 2 + I b n
where x c n is the x position of the mass center of the counterweight corresponding to the n element measured from the origin O n and y c n is the y position of the mass center of the counterweight corresponding to the n element measured from the origin O n . I b n corresponds to the inertia of each original bar.
The new x position of the mass center for each n element is defined as:
X G n = m c n x c n + m b n x b n m c n + m b n
And the new y position of the mass center for each n element is defined as:
Y G n = m c n y c n + m b n y b n m c n + m b n
where ( x c n , y c n ) is the position of the center of mass of each counterweight, and ( x b n , y b n ) is the position of the center of mass of each original bar, both measured from the origin O n .
To avoid the use of extra variables, the mass of each counterweight m c n is defined as:
m c n = π ( r c n 2 ) ( t c n ) ρ c n
where ρ c n represents the density of the counterweight, t c n is the thickness of the counterweight, and r c n represents the ratio of the counterweight.
In addition, if the counterweight is considered to be a cylinder, the radius of the counterweight can be defined as:
r c n = x c n 2 + y c n 2
By substituting Equation (7) in (6):
m c n = π ( x c n 2 + y c n 2 ) ( t c n ) ρ c n
and applying the concepts of [9], the mass-matrix representing the whole mechanism can be written as:
M = a 0 e f 0 0 0 0 0 a f e 0 0 0 0 e f b 0 0 0 g h f e 0 b 0 0 h g 0 0 0 0 c 0 i j 0 0 0 0 0 c j i 0 0 g h i j d 0 0 0 h g j i 0 d
With:
a = 3 π ρ c 1 t c 1 y c 1 2 + x c 1 2 2 + 2 I b 1 2 l 1 2 2 π ρ c 1 t c 1 x c 1 y c 1 2 + x c 1 2 + m b 1 x b 1 l 1 + π ρ c 1 t c 1 y c 1 2 + x c 1 2 + m b 1
b = 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 2 π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 + π ρ c 2 t c 2 y c 2 2 + x c 2 2 + m b 2 + 3 π ρ c 1 t c 1 y c 1 2 + x c 1 2 2 + 2 I b 1 2 l 1 2
c = 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2 2 π ρ c 3 t c 3 x c 3 y c 3 2 + x c 3 2 + m b 3 x b 3 l 3 + π ρ c 3 t c 3 y c 3 2 + x c 3 2 + m b 3
d = 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2 + 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2
e = π ρ c 1 t c 1 x c 1 y c 1 2 + x c 1 2 + m b 1 x b 1 l 1 3 π ρ c 1 t c 1 y c 1 2 + x c 1 2 2 + 2 I b 1 2 l 1 2
f = π ρ c 1 t c 1 y c 1 y c 1 2 + x c 1 2 + m b 1 y b 1 l 1
g = π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2
h = π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 l 2
i = π ρ c 3 t c 3 x c 3 y c 3 2 + x c 3 2 + m b 3 x b 3 l 3 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2
j = π ρ c 3 t c 3 y c 3 y c 3 2 + x c 3 2 + m b 3 y b 3 l 3

2.2. Linear Momentum and Shaking Force

Once the mass-matrix of the whole system is known and based on the basic points of the whole linkage, it is possible to introduce a vector of positions represented by q :
q = A X A Y B X B Y C X C Y D X D Y T
By time-deriving Equation (20), a vector of velocities can be obtained:
q ˙ = VA X VA Y VB X VB Y VC X VC Y VD X VD Y T
By introducing matrix B, it is possible to obtain the linear momentum vectors L associated to the whole system:
L i L j = BM q ˙
Where B (Equation (23)) is a matrix formed by identity matrices for each of the basic points founded in the mechanism:
B = 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 T
By solving Equation (22) and considering the velocity of the fixed points always equal to zero ( V A X = 0 , V A Y = 0 , V C X = 0 , V C Y = 0 ), the expressions of linear momentum ( L i and L j ) for the linkage are obtained.
The shaking force ShF (Equations (24) and (25)) of the linkage can be calculated from the derivation of Equations L i and L j (Equation (22)). To ensure the linkage is force balanced, these equations must be constant (usually zero) over all the analyzed period of time, thus warranting a null shaking force.
S h F i = d L i d t = π ρ c 3 t c 3 y c 3 y c 3 2 + x c 3 2 + m b 3 y b 3 l 3 π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 l 2 AD Y + π ρ c 3 t c 3 x c 3 y c 3 2 + x c 3 2 + m b 3 x b 3 l 3 + π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 AD X + π ρ c 3 t c 3 y c 3 y c 3 2 + x c 3 2 + m b 3 y b 3 AC Y l 3 + π ρ c 3 t c 3 x c 3 y c 3 2 + x c 3 2 + m b 3 x b 3 l 3 + π ρ c 3 t c 3 y c 3 2 + x c 3 2 + m b 3 AC X + π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 l 2 π ρ c 1 t c 1 y c 1 y c 1 2 + x c 1 2 + m b 1 y b 1 l 1 AB Y + ( π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 + π ρ c 2 t c 2 y c 2 2 + x c 2 2 + m b 2 + π ρ c 1 t c 1 x c 1 y c 1 2 + x c 1 2 + m b 1 x b 1 l 1 ) AB X + π ρ c 1 t c 1 y c 1 y c 1 2 + x c 1 2 + m b 1 y b 1 AA Y l 1 + π ρ c 1 t c 1 x c 1 y c 1 2 + x c 1 2 + m b 1 x b 1 l 1 + π ρ c 1 t c 1 y c 1 2 + x c 1 2 + m b 1 AA X
S h F j = d L j d t = π ρ c 3 t c 3 x c 3 y c 3 2 + x c 3 2 + m b 3 x b 3 l 3 + π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 AD Y + π ρ c 3 t c 3 y c 3 y c 3 2 + x c 3 2 + m b 3 y b 3 l 3 + π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 l 2 AD X + π ρ c 3 t c 3 x c 3 y c 3 2 + x c 3 2 + m b 3 x b 3 l 3 + π ρ c 3 t c 3 y c 3 2 + x c 3 2 + m b 3 AC Y π ρ c 3 t c 3 y c 3 y c 3 2 + x c 3 2 + m b 3 y b 3 AC X l 3 + ( π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 + π ρ c 2 t c 2 y c 2 2 + x c 2 2 + m b 2 + π ρ c 1 t c 1 x c 1 y c 1 2 + x c 1 2 + m b 1 x b 1 l 1 ) AB Y + π ρ c 1 t c 1 y c 1 y c 1 2 + x c 1 2 + m b 1 y b 1 l 1 π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 l 2 AB X + π ρ c 1 t c 1 x c 1 y c 1 2 + x c 1 2 + m b 1 x b 1 l 1 + π ρ c 1 t c 1 y c 1 2 + x c 1 2 + m b 1 AA Y π ρ c 1 t c 1 y c 1 y c 1 2 + x c 1 2 + m b 1 y b 1 AA X l 1

2.3. Angular Momentum and Shaking Moment

The use of Fully Cartesian coordinates allows to express the angular momentum H as Equation (26) with r defined as shown in Equation (27).
H = q × ( M q ˙ ) = rM q ˙
r = A Y A X B Y B X C Y C X D Y D X T
By solving Equation (26) and considering VA X = 0 , VA Y = 0 , VC X = 0 and VC Y = 0 , the expression of the angular momentum H can be obtained.
A scalar value corresponding to the shaking moment S h M of the linkage that is considered perpendicular to the plane of the 2D mechanism, can be calculated by time-deriving H:
S h M = d H d t = rM ( d ( q ˙ ) d t ) + ( d r d t ) M q ˙
S h M = d H d t = rM q ¨ + r ˙ M q ˙
where:
r ˙ = [ V A Y V A X V B Y V B X V C Y V C X V D Y V D X ] T
and q ¨ , the time-derivation of vector q ˙ , represents the acceleration vector.
To guarantee the dynamic balancing of the mechanism, S h M must be kept constant: The time-derivation of H (Equations (28) and (29)) should be zero.
By solving Equation (29) and considering VA X = 0 , VA Y = 0 , VC X = 0 and VC Y = 0 , the S h M of the four-bar linkage can be obtained:
S h M = VD X 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2 + 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 VD Y + π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 VB Y π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 VB X l 2 + VB X VB Y 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2 + 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 VD X VD Y π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 VB Y VD Y l 2 π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 VB X VD Y 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2 + 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 AD X + π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 AB Y l 2 + π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 AB X D Y + 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2 + 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 AD Y + π ρ c 2 t c 2 x c 2 y c 2 2 + x c 2 2 + m b 2 x b 2 l 2 3 π ρ c 2 t c 2 y c 2 2 + x c 2 2 2 + 2 I b 2 2 l 2 2 AB Y π ρ c 2 t c 2 y c 2 y c 2 2 + x c 2 2 + m b 2 y b 2 AB X l 2 D X + π ρ c 3 t c 3 x c 3 y c 3 2 + x c 3 2 + m b 3 x b 3 l 3 3 π ρ c 3 t c 3 y c 3 2 + x c 3 2 2 + 2 I b 3 2 l 3 2 AD Y + π ρ c 3 t c 3 y c 3 y c 3 2 + x c 3 2 + m b 3 y b 3 AD X l 3 C X B Y + B X

3. Objective Function

A dimensionless balancing index β i can be used to define the optimization’s objective function. This kind of expressions has been previously used in [14,24], and more recently in [20]. As shown in Equation (32), the first balancing index is defined by the relation of the root mean square (rms) of the reaction of the optimized linkage ( r m s ( o R e a c t i o n ) ) with respect to the rms value of the reaction of the original linkage ( r m s ( R e a c t i o n ) ), both considered over a period of time T.
Two objective indexes will be considered taking in account the reactions of the ShF and ShM. As long as they represent the ratio between the reactions of the original mechanism and the optimized one, the result will present the achieved optimization. The value is in the range (0, 1). The nearest this value is to 0, the best balance is achieved. Otherwise (a value close to 1), the result is almost the same that the one obtained without balancing.
The first balancing index β S h F is shown in Equation (32).
β S h F = r m s ( o S h F ) r m s ( S h F )
where the root mean square of the ShF ( r m s ( S h F ) ) is given by:
r m s ( S h F ) = 1 N k = 1 N ( S h F i k 2 + S h F j k 2 )
and the root mean square of the original ShF ( r m s ( o S h F ) ) is a constant value obtained from calculating the root mean square of the ShF of the four-bar linkage without any added counterweight.
r m s ( o S h F ) = 1 N k = 1 N ( o S h F i k 2 + o S h F j k 2 )
By substituting Equations (33) and (34) in Equation (32), the balancing index ( β S h F ) can be expressed as:
β S h F = k = 1 N ( S h F i k 2 + S h F j k 2 ) k = 1 N ( o S h F i k 2 + o S h F j k 2 )
Similarly, the second objective index can be calculated when the ShM is considered as the reaction. So, β S h M can be written as:
β S h M = k = 1 N S h M k 2 k = 1 N o S h M k 2
where S h M is the shaking moment of the optimized linkage when using the added counterweights and o S h M is a constant value that represents the shaking moment of the unbalanced linkage.
The optimization objective is to minimize β S h F and β S h M considering boundary limits while ensuring that the coordinates of the centers of mass ( x c n and y c n ) and the thickness ( t c n ) of each counterweight are dimensions that can be used in the mechanical context. Therefore, the boundaries for optimization are limited according to:
x c n m i n x c n x c n m a x
y c n m i n y c n y c n m a x
t c n m i n t c n t c n m a x

4. Optimization

The optimization theory deals with selecting the best alternative in the sense of the given objective function [27]. It can be applied to solve a wide variety of problems, for example: [28,29,30].
Mathematically, optimization is the process of finding the minimum or the maximum of a function f ( X ) : R n > R . X R n is the vector of variables that can be modified in order to optimize f ( X ) . When minimizing the function f, an optimal solution can be defined as X * where f ( X * ) f ( X ) for all X R n . In other words, it is a global minimum.

4.1. Simplified Version of the Projected Gradient Descent

Gradient Descent is an iterative algorithm that finds a local minimal in a function [21,27,28]. It starts in a random point and continues until the minimal is reached. This technique is based on the use of the gradient vector to update the solution. The gradient vector f ( X ) evaluated in a point X points the direction of a maximum ascent. Gradient Descent moves the point in the opposite direction to the gradient. The problem starts with the solution vector X 0 and in each iteration X k is modified according to Equation (40).
X k + 1 = X k + α k P k
where k is the current iteration, α k is the step length, and P k is the direction calculated as an unitary direction vector as shown in Equation (41).
P k = f ( X k ) | | f ( X k ) | |
The step length α k is optimized based on the approximation of the Taylor’s Theorem (Equation (42)), ensuring this way the maximum descent.
f ( X k + α k P k ) f ( X k ) + α k P k T f ( X k ) + α k 2 2 P k T 2 f ( X k ) P k
By deriving Equation (42) with respect to α and clearing α :
α k = f ( X ) T P k P k T 2 f ( X ) P k

4.2. Finite Difference

Calculating the derivatives in a symbolic way may be difficult on certain occasions. Finite Differences [21] can be used to obtain an approximation of the Gradient Vector and the Hessian matrix.
Mathematically, the Gradient vector f ( X ) is formed by the first derivatives of the function with respect to all the variables (Equation (44)) and the Hessian matrix 2 f ( X ) is composed of the second derivatives (Equation (45)).
f ( X ) = f x 1 , f x 2 , , f x n T
2 f ( X ) = 2 f x 1 2 2 f x 1 x 2 2 f x 1 x n 2 f x 2 x 1 2 f x 2 2 2 f x 2 x n 2 f x n x 1 2 f x n x 2 2 f x n 2
To approximate the first partial derivatives, Equation (46) is used. Here, ϵ is a scalar constant with a small value ( ϵ = 1 e 5 ), e i is a unitary vector with the size of X that contains 0’s in all its positions except in the position i where there is a 1.
f X i = f ( X + ϵ e i ) f ( X ) ϵ
Since the Hessian matrix will be multiplied by a vector, a finite approximation is used (Equation (47)), where V is the vector to be multiplied.
2 f ( X ) V = f ( X + ϵ V ) f ( X ) ϵ

4.3. Implementation to Optimize the ShF and ShM

The optimization problem consists of minimizing β S h F and β S h M (see Equations (35) and (36)). X is the vector that contains all the variables values that need to be calculated, this is, X = [ x c 1 , y c 1 , t c 1 , x c 2 , y c 2 , t c 2 , x c 3 , y c 3 , t c 3 ] . As two functions need to be optimized, β S h F and β S h M , it can be stated that this is a multi-objective problem. In this research, the objectives are in conflict, it means that, when optimizing the values of X for minimizing β S h F , a worse value of β S h M can be obtained and vice-versa. All the solutions X can be represented in a two dimensional plane with the pair ( β S h F ( X ) , β S h M ( X ) ) , as it can be seen in Figure 4. We say a solution is dominated X d when its two objectives are worse than at least other solution, this is, x : β S h F ( X d ) β S h F ( X ) β S h F ( X d ) β S h F ( X ) . And the non-dominated solutions X * are the ones that β S h F ( X * ) β S h F ( X ) β S h M ( X * ) β S h M ( X ) x . Figure 4b shows an example of non-dominated (dark blue) and dominated solutions (light blue). The Pareto Front [17] is conformed by the non-dominated solutions. According to the specific mechanical reaction that is more urgent to optimize, it is recommended to choose a specific solution from the Pareto Frontier.
The technique weighted sum [31], that is widely known for solving multi-objective problems, was used for defining the objective function of the optimization problem (Equation (48)).
f ( X ) = γ β S h M ( X ) + ( 1 γ ) β S h F ( X )
where γ is a scalar value that determines the importance given to each of the objectives of the optimization.
The simplified version of Projected Gradient Descent algorithm is used for solving the optimization problem (Equation (48)). It is described in Algorithm 1. R a n d o m B o x C o n s t r a i n t s ( ) calculates a vector of random variables with uniform distribution respecting the specified bounds. G r a d i e n t F i n i t e D i f f ( f , X 0 ) and H e s s i a n F i n i t e D i f f ( f , X k , P k ) calculate the approximation of the Gradient vector and the Hessian matrix based on the Equations (44), (46) and (47). . represents the vector norm. ϵ is a small scalar ( ϵ = 1 e 5 ).
To handle bound constraints, a simplified version of Projected Gradient Descent is used, so when a solution is found outside of the boundaries, it is projected to the valid region. The Boolean function i s I n v a l i d ( X k + 1 ) returns true if the obtained vector contains values inside the boundaries otherwise, it returns false. The function c l i p ( X k + 1 ) is used to clip the values of the vector if they are not valid. Clipping the values implies that if the value is smaller than the lower value allowed, then the value is converted to the minimal. In the same way, if the value is bigger than the maximum value allowed, then the value is converted to the maximum.
The algorithm implements two stop conditions: (1) | | X k + 1 X k | | < ϵ . It means that the difference between X k + 1 and X k is too small, so there is no change in the current solution, this also includes when the Gradient vector norm is close to 0. (2) k > N M a x I t e r . It means that the maximum number of iterations has been reached (In this work N M a x I t e r = 1000 ) .
Algorithm 1: Projected Gradient Descent with maximum descent.
Applsci 09 04115 i001
The objective function defined in Equation (48) is non convex, therefore it has different local minimums. For this reason, the algorithm 1 is executed 500 times, each one with a different starting point with the goal of finding the different local minimums. Based on a random search for hyperparameters presented in [32], γ is taken as a random value from a uniform distribution in the range ( 0 , 1 ) (see Equation (48)). When the optimization objective values are less than 1.0, the resultant parameters are stored.

4.4. Sensibility Analysis

This subsection shows a way to analyze the Gradient vector values and the constraints.
The optimization problem can be defined as:
min X f ( X , α ) s . t . l < = X < = h
And the constraints can be redefined as:
min X f ( X , α ) s . t . X l > = 0 h X > = 0
In this case, the Lagrangian is given by:
L ( X , δ , π ) = f ( X ) δ T ( l ) π T ( h X )
and the KKT:
f ( X ) δ + π = 0
with δ , π > = 0 , defining λ = δ π
f ( X ) λ = 0
f ( X ) = λ
Then
δ i = 0 i f λ i = 0 λ i i f λ i > 0 0 i f λ i < 0
π i = 0 i f λ i = 0 0 i f λ i > 0 λ i i f λ i < 0
In other words, if the i t h entry of the Gradient has a value equal to 0, the constraint is not affected. If the value is greater than 0, the constraint of the lower border is affected. Finally, if the value is smaller than 0, the constraint of the higher border is affected.

5. Analysis

This section presents a deep analysis that provides information on the importance of each counterweight and its influence on the balance of the mechanism. It also presents a method to determinate if the optimization limits are the most appropriate or if it is convenient to change them in case the mechanical limitations of the system allows it.

5.1. Using Three Counterweights

5.1.1. Mechanical Characteristics

Table 1 presents the parameters of a four-bar linkage (Figure 2). The material used for the links is steel with a density of 7800 kg/m 3 . The counterweights are made from brass with a density ( ρ c ) of 8500 kg/m 3 .
The mechanism is moved by a motor placed at point A, rotating at a constant speed of 500 rpm. Using direct kinematics, it is possible to obtain a sample of the positions ( A x , A y , B x , B y , C x , C y , D x , D y ), speeds ( VB x , VB y , VC x , VC y , VD x , VD y ) and accelerations AB x , AB y , AC x , AC y , AD x , AD y ) corresponding to each of the basic points considered in this system.
Figure 3 shows the results of the direct kinematics using the mechanism parameters presented in Table 1. It is important to notice that Figure 3a only presents the positions of points B and D (points A and C are fixed). The same occurs with Figure 3b,c where only the velocities and the accelerations of points B and D are presented (this parameters are always zero for points A and C).
By replacing all known parameters in Equations (35) and (36), the balancing indexes used to define the objective function (Equation (48) can be obtained.
According to the mechanical characteristics of the mechanism the boundaries considered for the optimization are:
0.40 m x c n , y c n 0.40 m
0.005 m t c n 0.04 m

5.1.2. Pareto Front Using Three Counterweights

Figure 4a shows the β S h F and β S h M values of all the solutions founded. Different colors are used to represent the value used for γ on function F ( X ) (Equation (48)). In Figure 4b, the dark points represent the Pareto front while the light ones represent the dominated solutions.

5.1.3. Numerical Results

Among the solutions found in the Pareto front, it is possible to select the one that is the most appropriate according to the specific problem that is being solved.
As an example, three solutions of the Pareto front are taken; the first one is the best result when optimizing the index corresponding to the ShM ( β S h M = 0.1600587 , β S h F = 0.9152829 ), the second one is the best result when optimizing the index corresponding to the ShF ( β S h M = 0.71311372 , β S h F = 0.00295769 ) and the last one is selected when both ShM and ShF indexes are optimized by almost 60% ( β S h M = 0.42969434 , β S h F = 0.45176319 ).
The first chosen solution is the one in the Pareto front with the minimum value in β S h M ( β S h M = 0.1600587 , β S h F = 0.9152829 ). It corresponds to the following variables values:
x c 1 = 0.306033474 y c 1 = 0.05120233 t c 1 = 0.007840031
x c 2 = 0.031811247 y c 2 = 0.09348429 t c 2 = 0.04
x c 3 = 0.115671647 y c 3 = 0.112686771 t c 3 = 0.04
Figure 5a shows the comparison between the ShF (on the x and y axes) of the original mechanism and the ShF after the optimization. In this case, the total ShF was improved only by 8.47%. But with this solution, it is possible to appreciate that the ShM of the four-bar optimized mechanism is 83.99% better than the original one (Figure 5b). It can be observed that upon the sole use of counterweights, it is not possible to eliminate the ShM, but it can be significantly reduced, reducing also the ShF a bit.
The second chosen solution is the one in the Pareto front with the minimum value in β S h F ( β S h M = 0.71311372 , β S h F = 0.00295769 ). It corresponds to the following variables values:
x c 1 = 0.15548064 y c 1 = 0.007810097 t c 1 = 0.035743454
x c 2 = 0.046683398 y c 2 = 0.068805445 t c 2 = 0.027404923
x c 3 = 0.132085338 y c 3 = 0.015127099 t c 3 = 0.037640418
In Figure 5c, it is possible to appreciate that the ShF is significantly reduced (99.70%) compared to the original mechanism. It can be considered that the ShF is almost completely eliminated by using counterweights and also that the ShM has a reduction of 28.69% (Figure 5d).
The third chosen solution is the one in the Pareto front where both indexes corresponding to ShF and ShM are optimized almost by 60% ( β S h M = 0.42969434 , β S h F = 0.45176319 ). It corresponds to the following variables values:
x c 1 = 0.233449901 y c 1 = 0.047539111 t c 1 = 0.005
x c 2 = 0.0000527 y c 2 = 0.000296052 t c 2 = 0.005000159
x c 3 = 0.125584323 y c 3 = 0.058770112 t c 3 = 0.04
By using these counterweights, the ShM is reduced by 57.03% and the ShF by 54.82% (Figure 5e,f).

5.1.4. Partial Derivatives, Volumes and Relation Area-Thickness of Three Counterweights

This subsection presents an analysis to determine if the proposed limits for optimization are the most suitable or if they should be changed (in case there is the possibility of modifying them due to mechanical constraints).
In Figure 6 the box-plots of the partial derivatives with respect to each variable x n , y n and t n for each counterweight n ( 1 n 3 ) are shown.
It is known that an optimal solution is found if all the partial derivatives values are equal to zero. In the box plots of Figure 6 it can be seen that, for the variables x n and y n of the counterweights n ( 1 n 3 ), the partial derivatives are close to zero, this means that it was possible to reach the optimal values within the proposed optimization limits.
However, for the variables t 1 and t 3 , the partial derivatives are not close to zero. In t 1 , it can be appreciated that the value tends to be greater than zero, hence, it can be deduced that the thickness of Counterweight-1 is trying to be less than the limit 0.005 m. Evidently, this is not possible due to the mechanical limitations that prevent a counterweight thickness from being too close to zero or negative because it is physically impossible. On the other hand, the value of t 3 tends to be less than 0, which means that if the limits of the optimization allowed it, Counterweight-3 would have a thickness greater than 0.04 m. This information, obtained from the partial derivatives analysis, can be very useful to decide the limits of the counterweights when there is the possibility to modify them.
In Figure 7a, the volume value histogram of the counterweights obtained on the different optimization solutions is presented. By analyzing the volume of the counterweights and the relation between their area and thickness (Figure 7b), it can be seen that Counterweight-2 has a very small volume (compared with the other counterweights) and when both area and thickness are very small, Counterweight-2 is almost disappearing from the solution. On the other hand, the relation between the area and the thickness of Counterweight-3 shows how in almost all the cases the thickness is reaching the highest allowed limit; this confirms the information given by the histogram previously analyzed and confirms the conclusion that if mechanical characteristics of the system allows it, it might be advisable to perform the optimization with a slightly larger upper limit for the variable t 3 .

5.2. Decreasing the Amount of Counterweights Used for Balancing

There could be cases when it is desirable to eliminate one or more counterweights. The reasons can be the resultant volume of the whole mechanism or the cost for implementing the solution.

Pareto Front Comparison to Eliminate One Counterweight

Figure 8 shows the Pareto front of the different optimization results when using all possible combinations (three, two, or only one counterweight). The black stars correspond to the original Pareto front when the three counterweights are used. The blue crosses correspond to the Pareto front when Counterweight-2 has been eliminated and only Counterweights 1 and 3 are being considered. Comparing these results with those obtained when using all the counterweights, it is possible to see that the Pareto fronts are very similar.
The green crosses correspond to the Pareto front when using only Counterweights-2 and 3. The yellow crosses correspond to the Pareto front when Counterweight-3 has been eliminated and Counterweights-1 and 2 are in use.
Using the information provided by the Pareto fronts (Figure 8), it is possible to conclude that, if one decides to eliminate a counterweight to simplify the balancing of the mechanism, it should be Counterweight-2, since using only Counterweights-1 and 3 produces a similar result to that obtained when all three counterweights are used.
Appendix A shows the numerical results when using only two counterweights giving importance to the optimization of the ShF, ShM, and both. A sensitivity analysis is also presented to decide which counterweight should be used if one decides to use only one counterweight. The partial derivatives, volumes and relation area-thickness is also presented giving information about the selected optimization limits, allowing to further improve the results.
Appendix B shows the numerical results when using only one counterweight and presents the sensitivity analysis and the partial derivatives, volumes and relation area-thickness using the methods previously proposed.
Table 2 shows the optimization results when using three, two, and one counterweight.

5.3. Expanding Optimization Limits for t 3

As aforementioned, using the box-plots of the partial derivatives with respect to each variable, the volume values histogram of the counterweights, and the graphics of the relation between area and thickness, it is possible to obtain valuable information about the chosen limits of the optimization. The decision of modifying these limits depends on the mechanical characteristics of the whole mechanism.
Taking the example when using only one counterweight (Appendix B) the recommendation after the analysis was to choose a higher limit of thickness t 3 , a new optimization process was executed with the limits:
0.40 m x c n , y c n 0.40 m
0.005 m t c n 0.05 m
The upper limit of t 3 could be changed from 0.04 m to 0.05 m. Using this value and giving more importance to β S h F , the physical characteristics of Counterweight-3 should be:
x c 3 = 0.141021300369708 y c 3 = 0.00665773774579448 t c 3 = 0.0207544372440781
Using this solution, allows the ShF and ShM to be reduced by 73.92 % and 14.32 % , respectively.
On the other hand, when the importance is given to β S h M , the physical characteristics of Counterweight-3 should be:
x c 3 = 0.1112378507983744 y c 3 = 0.091294702876245 t c 3 = 0.05
Using this counterweight the ShM and ShF is reduced by 80.17 % and 5.30 % , respectively.
Table 3 compares the optimization results obtained with the expanded limits and the original limits. It can be seen that expanding Counterweight-3 thickness upper limit, improves the ShM. Figure 9 shows the comparison of Pareto fronts before and after changing the optimization limits. It can be noticed that the thickness of Counterweight-3 has a greater influence on the optimization of the ShM of the mechanism. By increasing this limit, optimization results can be better.

6. Conclusions

By using fully Cartesian coordinates to represent a mechanism, the equations that define the reactions are less complex than those obtained with other methods, hence, the use of this kind of coordinates is suitable for complete balancing, minimization of reactions, and calculation of the ShF and ShM in mechanisms.
The use of fully Cartesian coordinates to represent a four-bar linkage in conjunction with the Simplified Gradient Descent algorithm is a suitable methodology to optimize the balancing of mechanisms. It allows, when using three counterweights and giving more importance to static balancing, to reduce the ShF and ShM by 99.70% and 28.69%, respectively; and when importance is given to the dynamic balancing, to reduce the ShM and the ShF by 83.99% and 8.47%, respectively.
The optimization algorithm was successfully applied to solve the problem. The use of linear combination of functions is a simple yet robust way to handle multi-objectives. The approximation of the derivatives based on Finite Difference allows guiding the algorithm and reducing human hand calculation mistakes.
Comparison between Pareto fronts proves to be an adequate methodology for the sensitivity analysis of each counterweight. This method has proved that even when using only one counterweight, the ShF can be reduced by 78.74% when giving importance to the static balancing or the ShM can be reduced by 73.61% when giving importance to dynamic balancing.
The box-plots of the partial derivatives with respect to each variable, histograms of volumes, and relations between area and thickens allow to analyze the proposed optimization limits in order to decide if they can be changed to obtain even better results.
As future work, it is expected to use these algorithms and analysis to optimize more complex mechanisms in two and three dimensions.

Author Contributions

M.A. conceived and implemented the use of Fully Cartesian coordinates to define a mechanism. M.R. design the Optimization Algorithm. M.T.O.-G., C.N.S. designed the experimental methodology and analyze the results. M.R., R.V. validated the results. M.T.O.-G., C.N.S., R.V. wrote the paper. All authors reviewed the paper.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ShFShaking Force
ShMShaking Moment

Appendix A. Analysis Using Two Counterweights

This appendix presents the analysis when using only two counterweights.

Appendix A.1. Numerical Results

After proving that the counterweight that has the less influence on the optimization is Counterweight-2, three solutions are selected from the Pareto front that use only Counterweights-1 and 3. Solutions are chosen as follows:
  • If the interest is to optimize the index related to the ShF ( β S h F ) without giving importance to the index related to the ShM ( β S h F ), the selected solution is:
    x c 1 = 0.210649187 y c 1 = 0.002597417 t c 1 = 0.005812833 x c 3 = 0.133324421 y c 3 = 7.62 E 05 t c 3 = 0.039931556
    By using this solution, the ShF can be reduced by 99.67%, while the ShM by 24.34%.
  • If the interest is to optimize the index related to the ShM ( β S h M ), without giving importance to the index related to the ShF ( β S h F ), the selected solution is:
    x c 1 = 0.273728043 y c 1 = 0.029116001 t c 1 = 0.005 x c 3 = 0.11860947 y c 3 = 0.10186805 t c 3 = 0.04
    By using this solution, the ShM can be reduced by 79.22%, while the ShF by 1.55%.
  • If the interest is to optimize both indexes, β S h F and β S h M , the selected solution is:
    x c 1 = 0.207213869 y c 1 = 0.031661306 t c 1 = 0.006993731 x c 3 = 0.126559077 y c 3 = 0.058396603 t c 3 = 0.04
    This solution reduces the ShF and the ShM by 55.05% and 57.27%, respectively.

Appendix A.2. Partial Derivatives, Volumes, and Relation Area-Thickness When Using Two Counterweights

Figure A1 shows the box-plots of the partial derivatives with respect to each variable x n , y n and t n (for counterweights n = 1 and n = 3 ), when Counterweight-2 is eliminated.
A partial derivative analysis of each optimized variable can be performed to know if it is advisable to modify the proposed optimization limits. When analyzing the box-plots for the values of x n , y n , it can be noticed that they are very close to zero, this means that the limits defined on the optimization to these variables are adequate. The variable t 1 slightly tries to be greater than zero, this means that in this some cases the thickness of Counterweight-1 it is trying to be less than the limit 0.005 m, but as aforementioned this is not mechanically possible.
On the other hand, the partial derivative box-plot of t 3 shows that this value is trying to be greater than the proposed limit, this means that the optimization is reaching the allowed upper limit and if the mechanical limitations allow, it could be interesting to increase it.
To confirm the proposed analysis, Figure A2a shows the histogram of the total volume of each counterweight. Note that Counterweight-1 is smaller than Counterweight-3, and that the relation between area and thickness of each counterweight (Figure A2b) proves that the thickness of Counterweight-3 is trying get out of the upper limit.
Figure A1. Box plots of partial derivatives with respect to each optimization variable when using two counterweights.
Figure A1. Box plots of partial derivatives with respect to each optimization variable when using two counterweights.
Applsci 09 04115 g0a1
Figure A2. Parameters used to analyze the dimension of each counterweight when using two of them.
Figure A2. Parameters used to analyze the dimension of each counterweight when using two of them.
Applsci 09 04115 g0a2

Appendix B. Analysis Using Only One Counterweight

This appendix presents the analysis when using only one counterweight.

Appendix B.1. Numerical Results

Three solutions are selected form the Pareto front using only Counterweigh-3, they are chosen as follows:
  • If the interest is to optimize the index related to the ShF ( β S h F ), without giving importance to the index related to the ShM ( β S h M ), the selected solution is:
    x c 3 = 0.11950597007297     y c 3 = 0.0984494486824036     t c 3 = 0.04
    By using this solution, the ShF can be reduced by 78.74%, while the ShM by 0.42%.
  • If the interest is to optimize the index related to the ShM ( β S h M ) without giving importance to the index related to the ShF ( β S h F ), the selected solution is:
    x c 3 = 0.240986266107467     y c 3 = 0.0012908547612233     t c 3 = 0.00715115109817927
    By using this solution, the ShM can be reduced by 73.61% while the ShF by 3.22%.
  • If the interest is to optimize both indexes ( β S h F and β S h M ) the selected solution is:
    x c 3 = 0.130165416712609     y c 3 = 0.0500126887169449     t c 3 = 0.04
    This solution reduces the ShF by 51.19% and the ShM by 53.31%.
In Table 2 the comparison between the optimization results when using three, two and only one counterweight can be observed. It is evident that the best results are obtained when using three counterweights. Still, it is interesting to notice that when using only Counterweight-3, it is possible to improve the balance of the whole mechanism and reduce the total cost of the implementation.

Appendix B.2. Partial Derivatives, Volumes, and Relation Area-Thickness When Using Only One Counterweight

Figure A3 shows the box-plots of the partial derivatives with respect to each variable x 3 , y 3 and t 3 when using only the third counterweight. It can be observed that the optimization limits for x 3 and y 3 are adequate, but as t 3 tends to be negative, it is actually trying to become even bigger. This can be confirmed by analyzing the relation between the area and the thickness of Counterweight-3 in Figure A4 where the thickness in all the cases is trying to take higher values. So, if the solution will be implemented using only one counterweight, it could be interesting to allow a higher limit on the optimization of this variable, so even better results can be achieved.
Figure A3. Box plots of partial derivatives with respect to each optimization variable when using one counterweight.
Figure A3. Box plots of partial derivatives with respect to each optimization variable when using one counterweight.
Applsci 09 04115 g0a3
Figure A4. Relation between area and thickness of each cylindrical counterweight when using only Counterweight-3.
Figure A4. Relation between area and thickness of each cylindrical counterweight when using only Counterweight-3.
Applsci 09 04115 g0a4

References

  1. Martini, A.; Troncossi, M.; Rivola, A. Elastodynamic effects of mass-balancing: Experimental investigation of a four-bar linkage. Adv. Mech. Eng. 2013, 2013. [Google Scholar] [CrossRef]
  2. Zhang, J.; McInnes, C.R. Reconfiguration of a four-bar mechanism using phase space connections. Mech. Syst. Signal Process. 2016, 81, 43–59. [Google Scholar] [CrossRef] [Green Version]
  3. Arakelian, V.; Dahan, M.; Smith, M. A Historical Review of the Evolution of the Theory on Balancing of Mechanisms. In International Symposium on History of Machines and Mechanisms Proceedings HMM 2000; Springer: Dordrecht, The Netherlands, 2000; pp. 291–300. [Google Scholar] [CrossRef]
  4. Arakelian, V.H.; Smith, M.R. Shaking Force and Shaking Moment Balancing of Mechanisms: A Historical Review With New Examples. J. Mech. Des. 2005, 127, 334. [Google Scholar] [CrossRef]
  5. Lowen, G.; Tepper, F.; Berkof, R. Balancing of linkages—An update. Mech. Mach. Theory 1983, 18, 213–220. [Google Scholar] [CrossRef]
  6. Arakelian, V.; Briot, S. Balancing of Linkages and Robot Manipulators; Mechanisms and Machine Science; Springer International Publishing: Cham, Switzerland, 2015; Volume 27, pp. XVI, 291. [Google Scholar] [CrossRef]
  7. De Jalón, J.G. Twenty-five years of natural coordinates. Multibody Syst. Dyn. 2007, 18, 15–33. [Google Scholar] [CrossRef]
  8. García de Jalón, J.; Serna, M.A.; Avilés, R. Computer method for kinematic analysis of lower-pair mechanisms—I velocities and accelerations. Mech. Mach. Theory 1981, 16, 543–556. [Google Scholar] [CrossRef]
  9. De Jalon, J.G.; Bayo, E. Kinematic and Dynamic Simulation of Multibody Systems: The Real-Time Challenge; Springer: New York, NY, USA, 1994; p. 440. [Google Scholar]
  10. Chaudhary, K.; Chaudhary, H. Optimal dynamic balancing and shape synthesis of links in planar mechanisms. Mech. Mach. Theory 2015, 93, 127–146. [Google Scholar] [CrossRef]
  11. Haines, R. Minimum RMS shaking moment or driving torque of a force-balanced 4-bar linkage using feasible counterweights. Mech. Mach. Theory 1981, 16, 185–195. [Google Scholar] [CrossRef]
  12. Elliott, J.L.; Tesar, D. The Theory of Torque, Shaking Force, and Shaking Moment Balancing of Four Link Mechanisms. J. Eng. Ind. 1977, 99, 715. [Google Scholar] [CrossRef]
  13. Wiederrich, J.L.; Roth, B. Momentum Balancing of Four-Bar Linkages. J. Eng. Ind. 1976, 98, 1289–1295. [Google Scholar] [CrossRef]
  14. Tepper, F.R.; Lowen, G.G. Shaking Force Optimization of Four-Bar Linkage With Adjustable Constraints on Ground Bearing Forces. J. Eng. Ind. 1975, 97, 643–651. [Google Scholar] [CrossRef]
  15. Lowen, G.G.; Berkof, R.S. Determination of Force-Balanced Four-Bar Linkages With Optimum Shaking Moment Characteristics. J. Eng. Ind. 1971, 93, 39–46. [Google Scholar] [CrossRef]
  16. Berkof, R.S.; Lowen, G.G. Theory of Shaking Moment Optimization of Force-Balanced Four-Bar Linkages. J. Eng. Ind. 1971, 93, 53–60. [Google Scholar] [CrossRef]
  17. Farmani, M.R.; Jaamialahmadi, A.; Babaie, M. Multiobjective optimization for force and moment balance of a four-bar linkage using evolutionary algorithms. J. Mech. Sci. Technol. 2011, 25, 2971–2977. [Google Scholar] [CrossRef]
  18. Zamuda, A.; Brest, J.; Boskovic, B.; Zumer, V. Differential evolution for multiobjective optimization with self adaptation. In Proceedings of the 2007 IEEE Congress on Evolutionary Computation, Singapore, 25–28 September 2007; pp. 3617–3624. [Google Scholar] [CrossRef]
  19. Bulatović, R.; Bošković, M.; Šalinić, S.; Miodragović, G. Multiobjective optimization for dynamic balancing of four-bar mechanism. In Proceedings of the 6th International Congress of Serbian Society of Mechanics, Mountain Tara, Serbia, 19–21 June 2017. [Google Scholar]
  20. Demeulenaere, B.; Aertbeliën, E.; Verschuure, M.; Swevers, J.; De Schutter, J. Ultimate Limits for Counterweight Balancing of Crank-Rocker Four-Bar Linkages. J. Mech. Des. 2006, 128, 1272. [Google Scholar] [CrossRef]
  21. Nocedal, J.; Wright, S.J. Numerical Optimization; Springer: Berlin/Heidelberg, Germany, 2006; p. 664. [Google Scholar]
  22. Orvananos-Guerrero, M.T.; Sanchez, C.N.; Davalos-Orozco, O.; Rivera, M.; Velazquez, R.; Acevedo, M. Using Fully Cartesian Coordinates to Calculate the Support Reactions of Multi-Scale Mechanisms. In Proceedings of the 2018 Nanotechnology for Instrumentation and Measurement, NANOfIM 2018, Mexico City, Mexico, 7–8 November 2018; Institute of Electrical and Electronics Engineers Inc.: Piscataway, NJ, USA, 2019. [Google Scholar] [CrossRef]
  23. Norton, R.L. Design of Machinery: An Introduction to the Synthesis And Analysis of Mechanisms and Machines; McGraw-Hill Higher Education: New York, NY, USA, 2004; p. 858. [Google Scholar]
  24. Lowen, G.; Tepper, F.; Berkof, R. The quantitative influence of complete force balancing on the forces and moments of certain families of four-bar linkages. Mech. Mach. Theory 1974, 9, 299–323. [Google Scholar] [CrossRef]
  25. Acevedo, M. Conditions for Dynamic Balancing of Planar Parallel Manipulators Using Natural Coordinates and their Application. In Proceedings of the 14th IFToMM World Congress, Taipei, Taiwan, 25–30 October 2015; pp. 419–427. [Google Scholar] [CrossRef]
  26. Acevedo, M.; Orvañanos, T.; Velázquez, R. Shaking Moment Balancing of a Four-Bar Mechanism Using Actuation Redundancy. In Mechanisms and Machine Science; Springer: Dordrecht, The Netherlands, 2019; Volume 73, pp. 3319–3327. [Google Scholar] [CrossRef]
  27. Chong, E.K.; Zak, S.H. An Introduction to Optimization, 2nd ed.; John Wiley & Sons: Hoboken, NJ, USA, 2013; p. 640. [Google Scholar]
  28. Khademi, G.; Mohammadi, H.; Simon, D. Gradient-Based Multi-Objective Feature Selection for Gait Mode Recognition of Transfemoral Amputees. Sensors 2019, 19, 253. [Google Scholar] [CrossRef]
  29. Wang, Q.; Yin, J.; Noureldin, A.; Iqbal, U.; Wang, Q.; Yin, J.; Noureldin, A.; Iqbal, U. Research on an Improved Method for Foot-Mounted Inertial/Magnetometer Pedestrian-Positioning Based on the Adaptive Gradient Descent Algorithm. Sensors 2018, 18, 4105. [Google Scholar] [CrossRef]
  30. Domingo-Perez, F.; Lazaro-Galilea, J.L.; Bravo, I.; Gardel, A.; Rodriguez, D. Optimization of the Coverage and Accuracy of an Indoor Positioning System with a Variable Number of Sensors. Sensors 2016, 16, 934. [Google Scholar] [CrossRef]
  31. Emmerich, M.T.; Deutz, A.H. A tutorial on multiobjective optimization: Fundamentals and evolutionary methods. Nat. Comput. 2018, 17, 585–609. [Google Scholar] [CrossRef]
  32. Bergstra, J.; Bengio, Y. Random Search for Hyper-Parameter Optimization. J. Mach. Learn. Res. 2012, 13, 281–305. [Google Scholar]
Figure 1. Original Four-bar linkage.
Figure 1. Original Four-bar linkage.
Applsci 09 04115 g001
Figure 2. Four-bar linkage with counterweights.
Figure 2. Four-bar linkage with counterweights.
Applsci 09 04115 g002
Figure 3. Direct kinematic results of the four-bar mechanism.
Figure 3. Direct kinematic results of the four-bar mechanism.
Applsci 09 04115 g003
Figure 4. Pareto analysis of optimization objectives: β S h M and β S h F .
Figure 4. Pareto analysis of optimization objectives: β S h M and β S h F .
Applsci 09 04115 g004
Figure 5. Shaking Force and Shaking Moment comparison.
Figure 5. Shaking Force and Shaking Moment comparison.
Applsci 09 04115 g005
Figure 6. Box plots of partial derivatives with respect to each optimization variable when using three counterweights.
Figure 6. Box plots of partial derivatives with respect to each optimization variable when using three counterweights.
Applsci 09 04115 g006
Figure 7. Parameters used to analyze the dimension of each counterweight when using three of them.
Figure 7. Parameters used to analyze the dimension of each counterweight when using three of them.
Applsci 09 04115 g007
Figure 8. Pareto front comparison.
Figure 8. Pareto front comparison.
Applsci 09 04115 g008
Figure 9. Pareto comparison when changing Counterweight-3 thickness upper limits.
Figure 9. Pareto comparison when changing Counterweight-3 thickness upper limits.
Applsci 09 04115 g009
Table 1. Parameters of the four-bar mechanism used in the example.
Table 1. Parameters of the four-bar mechanism used in the example.
Body
n
123
Mass
m b n
[kg]
2.519469014.738669013.68746901
Lenght
l n
[m]
0.400.780.60
Inertia
I b n
[ kg m / s 2 ]
0.140235280.981464600.45494271
Center
of mass
x b n
[m]
0.200.390.30
Center
of mass
y b n
[m]
0.000.000.00
Table 2. Comparison between optimization results.
Table 2. Comparison between optimization results.
ShF OptimizationShM Optimization
Using
three
counterweights
Optimizing
ShF
99.70%28.69%
Optimizing
ShM
8.47%83.99%
Optimizing both
ShF and ShM
54.82%57.03%
Using
counterweights
1 and 3
Optimizing
ShF
99.67%24.34%
Optimizing
ShM
1.55%79.22%
Optimizing both
ShF and ShM
55.05%57.27%
Using only
counterweight 3
Optimizing
ShF
78.74%0.42%
Optimizing
ShM
3.22%73.61%
Optimizing both
ShF and ShM
51.19%53.31%
Table 3. Comparison between optimization results when expanding the thickness upper limit of Counterweight-3.
Table 3. Comparison between optimization results when expanding the thickness upper limit of Counterweight-3.
ShF OptimizationShM Optimization
Using
0.05 m as
t 3 upper limit
Optimizing
ShF
73.92%14.32%
Optimizing
ShM
5.30%80.17%
Using
0.04 m as
t 3 upper limit
Optimizing
ShF
78.74%0.42%
Optimizing
ShM
3.22%73.61%

Share and Cite

MDPI and ACS Style

Orvañanos-Guerrero, M.T.; Sánchez, C.N.; Rivera, M.; Acevedo, M.; Velázquez, R. Gradient Descent-Based Optimization Method of a Four-Bar Mechanism Using Fully Cartesian Coordinates. Appl. Sci. 2019, 9, 4115. https://doi.org/10.3390/app9194115

AMA Style

Orvañanos-Guerrero MT, Sánchez CN, Rivera M, Acevedo M, Velázquez R. Gradient Descent-Based Optimization Method of a Four-Bar Mechanism Using Fully Cartesian Coordinates. Applied Sciences. 2019; 9(19):4115. https://doi.org/10.3390/app9194115

Chicago/Turabian Style

Orvañanos-Guerrero, María T., Claudia N. Sánchez, Mariano Rivera, Mario Acevedo, and Ramiro Velázquez. 2019. "Gradient Descent-Based Optimization Method of a Four-Bar Mechanism Using Fully Cartesian Coordinates" Applied Sciences 9, no. 19: 4115. https://doi.org/10.3390/app9194115

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop