Synthesis of Four-Bar Mechanisms using Pattern Matching Approach and GA search

Course: Computer Aided Engineering Design

Instructor: Dr. Amitabha Mukherjee

Team: Shorya Awtar and Vipul Gupta

Duration: Fall 1997, IIT Kanpur

 

 

Objective  

The goal of this CAED project was to develop a software tool that can assist an engineer in the process of mechanism design. Path generation is a commonly encountered problem in machine design. In general, a certain point on a link/component in a machine may be required to follow a some desired path for optimal machine performance. Using classical kinematic synthesis theory, such a path generation exercise can be analytically carried out for a maximum of six precision points. We propose an algorithm that shall make use of soft computational techniques and enable a user to specify as many precision points as desired, and ultimately generate a four-bar linakge that produces the desired path.

 

Keywords: Four-bar mechanism, linkage synthesis, pattern-matching, genetic algorithms

 

Project Discussion

 

Four-bar linkage

 

 

 

The four-bar mechanism is a very versatile linkage, which has been used extensively in a variety of machines, e.g. the Ackerman steering mechanism in automobiles, sewing machines, earth movers, packaging machines, automobile suspensions etc.

 

Points on the coupler of a four-bar mechanism follow fascinating paths of order six (6 degree curves). This property is exploited to materialize designs pertaining to path generation. Given any arbitrary closed path, the objective then is to come up with a four-bar mechanism that can generate this path as a coupler curve. As indicated earlier, it is not an easy task to design a mechanism with any desired coupler curve analytically. Hence, we present a computational approach to solve this problem.

 

We shall deal with a special class of four-bar mechanisms which satisfy the Grashoff's criterion. Crank-rocker type and crank-crank type mechanisms that fall in this category shall be used for the genertaion of closed coupler curves.

 

 

 

 

A four-bar linkage mechanism is characterized by the following five parameters: L2, L3, L4, r and f. All lengths are normalized with respected to the fixed link. This set of parameter completely characterizes the four-bar and can be used to represent it.

 

Genetic Algorithms

One such set of parameters that uniquely describe a mechanism is called a PHENO_TYPE. Corresponding to each PHENO_TYPE there exists a GENE or GENO_TYPE, which contains all the information of the PHENO_TYPE in a binary-coded form. This coded string of binary bits is the GENE of the mechanism.

 

A GA program randomly generates an initial population (100 in our case) of Genes. Each of these is decoded to the Phenotype. For each Phenotype the program computes the coupler curve. Now, this coupler curve is matched with the input required curve (using the pattern matching algorithm explained below) and is accordingly allotted a fitness value. Based on these fitness values, a random group of 50 genes is selected from the population. This is called the tournament selection. Of these 50, the best fitting genes are made the parents, they are mutated and crossed in a controlled fashion, thereby generating a new population. Subsequently, this process is repeated many times. After each generation the best genes are retained. The Law of Natural Selection and Survival of the Fittest work and finally  a GENE with a very high fitness value evolves. This gene is decoded to give the corresponding Phenotype, which is the final SOLUTION.

 

Pattern Matching

To determine the fitness of a gene, a pattern-matching algorithm is employed. Any closed curve is uniquely represented by it curvature signature, which is a record of the variation of the local curvature with the arc length.’ This is a very useful piece of information which we exploit for the purpose of pattern matching.

 

Starting from the left most point on the curve and moving along the arc length, we record the local slope. The variation of theta with arc-length s, at a given point on the curve, is the local curvature. The curvature, dq /ds, is plotted vs. s to obtain a curvature plot. We note the following properties about the curvature plot, 

  • The curvature plot is free of any discontinuities. This makes the curve convenient to use.

  • The curvature plot is independent of the initial theta and the initial point taken on the curve

  • Size of the curve manifests itself only on the s-axis. This can be easily non-dimensionalized. 

  • Orientation of the plot is manifested in a translation of the plot along the s-axis.

The most critical property of this plot is that it uniquely represents the shape of any given curve and hence is termed as the ‘signature plot’. All these properties make this particular signature plot an ideal means for pattern matching. If the signature plots corresponding to two curves match, this straightaway implies that the two physical curves match. Using this pattern-matching strategy, any combination of the following configurations will give a successful match  

 

Two similar curves with different sizes

Two similar curves that are translated in space

Two similar curves that are relatively rotated in the space

 

To tie up all the aspects of approach, a summary of the entire procedure is illustrated in the following flow-chart

 

 

 

 

Conclusions and Results

The procedure outlines above worked encouragingly well. It was limited by number of computer iterations that we could run. Due to a coding bug that couldn’t be eliminated, we could run only 50 iterations. For good results, it is necessary to run the code at least 500 times. The results that were obtained after 50 iterations are presented here.

 

Case I                                                                        Case II

 

                 

 

Green: Desired Coupler Curve

Red: Coupler curve generated by resulting four-bar mechanism

 

 

                   

 

Comparison of the signature plots for desired curve (green) and generated coupler curve (red)

 

 

 

 

 

 

Top

Main Page

Previous: Stair Climbing Mechanism

Next: Boat Design