Abstract
A numerical framework is presented for geometric path synthesis of planar four-bar mechanisms under rigid fixture-pose and discrete cyclic-start ambiguity. The method combines closed-form kinematics, feasibility checks, embedded rigid registration, global search, and local least-squares refinement. Five optimizers are evaluated using 20 seeds on each of four closed numerical targets, including two curves defined independently of the linkage model. A corrected registration comparison uses identical intrinsic bounds and global budgets. For differential evolution (DE), the median aligned root-mean-square (RMS) error on the model-compatible target after refinement is 0.0824 mm. Independent-target errors and across-run variability limit generalization beyond model-compatible trajectories. Additional checks quantify objective changes during local refinement, correspondence and sample-resolution sensitivity, coordinate noise, and fixed-fixture parameter perturbations. The work demonstrates numerical geometric fitting and does not establish physical welding positioning accuracy or manufacturing capability; no physical welding experiment is reported.
1. Introduction
A planar four-bar linkage can trace a closed coupler curve with one actuated degree of freedom. Recovering the link dimensions from a prescribed curve is nonlinear and can yield multiple geometrically distinct solutions. Classical precision-point design establishes the kinematic foundations [1,2]. Continuation and homotopy methods compute candidate solutions and help explain why inverse synthesis can yield multiple geometries [3,4,5,6]. Pathak et al. [7] review the broader development of computational mechanism synthesis. In a fixture-mounted application, a further distinction matters: the prescribed geometric seam can have an arbitrary planar pose relative to the linkage and an arbitrary sampled start index. A fixed-frame fit can therefore trade changes in linkage dimensions against a mismatch in fixture pose or correspondence.
Friction stir welding studies have optimized process parameters for joint properties and surface quality [8,9,10]. Here the design variables are linkage dimensions, and the response is geometric path error. Prior four-bar studies have reformulated the path error [11,12], compared alternate error functions for motion generation [13], and used circular proximity, tracking control, or a feature coupler circle to formulate the synthesis problem [14,15,16].
Population-based approaches include genetic algorithms and Pareto optimization [17,18], hybrid GA–DE and modified krill herd algorithms [19,20], and methods based on teaching–learning-based optimization and repellency [21,22]. Other studies compare metaheuristics or focus on constraint treatment [23,24,25]. Shape matching and timing ambiguity have been addressed with orthogonal Procrustes alignment [26,27], curve descriptors and Fourier representations [28,29,30,31], and Procrustes-based curve synthesis [32]. The present problem retains absolute scale and the ordered samples of a closed curve. It allows proper rigid pose and an integer cyclic start offset. This is a particular correspondence model, rather than a claim to remove arbitrary timing differences or to introduce a new registration or search algorithm.
The study asks how registration affects bounded inverse synthesis when it is evaluated within the four-bar search rather than fixed in advance. It compares absolute-frame, partial-registration, complete-registration and explicit pose/phase searches using verified common intrinsic limits and evaluation budgets. A separate optimizer experiment compares five methods on four numerical targets, including two curves prescribed independently of the linkage model. Global composite cost and local aligned RMS are evaluated separately, and sensitivity studies examine sample resolution, correspondence, coordinate noise, and dimensional perturbations with and without fixture recalibration.
The reported errors describe geometric fitting. Treating pose and phase as free variables is appropriate only when placement and starting index can be chosen independently of the required path shape. Installed torch orientation, accessibility, travel speed, transmission, and process constraints can remove that freedom. No physical welding experiment or manufacturing capability is inferred from the numerical fits.
2. Materials and Methods
2.1. Forward Kinematic Model
2.1.1. Geometry
Figure 1 defines the linkage notation. The fixed pivots are A and D, the link lengths are (ground), (input crank), (coupler), and (output link). The coupler point P is represented in the local coupler frame by polar coordinates . The design vector is
Figure 1.
Four-bar geometry, fixed pivots, coupler point, and branch-continuous closure convention. The input angle is measured from the ground link to the crank .
For a prescribed input angle ,
The point C is obtained as the intersection of the two circles centered at and with radii and . If and , closure feasibility requires
At each sample, the branch closest to the previous valid configuration is selected. This avoids artificial jumps between assembly modes.
2.1.2. Coupler Point and Singularity Indicator
Let and let . The coupler point is
Differentiating the loop equations gives a linear system for the passive angular velocities,
and the determinant is monitored along the cycle. Because is built from link-position components, has units of length squared; with lengths expressed in centimeters, the reported determinant margins are in . Small indicates proximity to a singular transmission condition.
2.2. Fixture-Invariant Inverse Synthesis
2.2.1. Rigid Alignment and Cyclic Phase Shift
Let , , be the target welding trajectory. The generated path is compared to the target after minimizing over a cyclic shift s and a rigid planar transformation , with :
For each discrete shift, the optimal rigid transformation is obtained with the orthogonal Procrustes solution. In the supplied implementation, the centered cross-covariance defines and , and the rotation angle is . The resulting planar rotation has determinant , so reflection and scale changes are excluded. All integer shifts are tested. The generated samples are uniform in input-crank angle; discrete shift registration does not remove arbitrary timing or sampling-density differences. Pose and starting phase are treated as free only for this geometric comparison; fixture accessibility, prescribed torch orientation, and process timing can make them constrained in an installed system. The shift giving the smallest RMS is selected. Figure 2 illustrates the two extrinsic operations.
Figure 2.
Fixture-invariant comparison: generated and target paths are compared after rigid alignment and cyclic phase shift s.
Figure 3 makes explicit the two local definitions used in the residual: the coupler-point coordinates are measured in the moving frame attached to link , and the integer shift s changes the discrete correspondence between generated and target samples before the Procrustes transformation is solved.
Figure 3.
Coupler-point local frame and cyclic phase-shift correspondence used in the fixture-invariant residual. The illustrated shift pairs generated sample 0 with target sample 3.
The peak error is also reported:
2.2.2. Feasibility Constraints
The following constraints are imposed during evaluation:
- Positivity and box bounds for all link lengths and the coupler radius.
- Closure feasibility, Equation (3), at all sampled input angles.
- Branch continuity by nearest-neighbor assembly-mode selection.
- A determinant margin, monitored through , to avoid near-singular transmission.
- A soft size penalty to discourage unrealistically large link scaling.
The sampled full-cycle closure check is used because the prescribed input crank is required to traverse the complete welding cycle. A separate Grashof inequality is therefore not used as a substitute for closure; instead, closure and branch continuity are verified directly over the sampled input range. Figure 4 summarizes how these checks enter the synthesis workflow.
Figure 4.
Workflow and constraints used by the synthesis protocol. The superscript asterisk in denotes the prescribed target point at sample k. All compared optimizers use the same feasibility checks before LM refinement.
2.2.3. Scalar Objective
The welding-oriented scalar objective is
where are in centimeters. The default constants are unchanged across the controlled baseline and optimizer benchmark; explicitly labeled sensitivity experiments vary them. Their role is summarized in Table 1. They were selected by a short preliminary screening so that RMS remained the dominant term, maximum error still affected local outliers, near-toggle closures were penalized in global search, and size inflation was weakly discouraged. No claim of optimality is attached to these weights.
Table 1.
Default objective constants; sensitivity experiments vary one coefficient at a time.
2.2.4. Non-Invariant Baseline
To describe absolute-frame matching, a non-invariant baseline is defined by comparing synchronized samples directly in the absolute frame:
The corrected baseline uses the same forward kinematic equations, sampled closure checks, and intrinsic bounds as the new registered runs. It does not optimize over , , or s.
2.3. Optimization and Benchmark Protocol
2.3.1. Search Domain and Implementation Audit
The original implementation and the new default protocol use , , , , and cm, and rad. These are computational search bounds, not experimentally established manufacturing constraints. Initialization draws uniform normalized candidates and checks closure at the sampled angles, with a 10,000-attempt limit. The original script had an unscreened fallback; the new protocol instead raises an error at this limit. Closure-invalid objective evaluations receive cost . The determinant contribution is a soft penalty below , not a hard exclusion. The archived design provides a reference geometry for the kinematic diagnostics. The optimizer comparisons rely on the controlled runs with documented budgets and seeds.
Table 2 lists the bounds used in these runs.
Table 2.
Intrinsic variable bounds used in the controlled comparisons. Bound sensitivity is explicitly marked separately.
2.3.2. Different Objectives in the Global and Local Stages
The global scalar cost uses RMS and MAX in mm, a determinant deficit in , and a size sum in cm. Its weights therefore carry the conversion units needed to express the cost in mm; the terms are not dimensionless or normalized. The local implementation instead accepts steps on reduced aligned RMS alone, with bound clipping and sampled closure checking. MAX, determinant, and size penalties are not retained in that acceptance test. Accordingly, local least-squares refinement is not claimed to monotonically reduce the composite objective. The archived designs before and after refinement permit separate reporting of both costs and feasibility indicators.
2.3.3. PSO–TASS + LM
We use PSO–TASS as a label for the particle swarm optimization variant defined below. Its social learning term is constructed from a performance-ranked topological neighborhood and is weighted toward lateral directions relative to the current best direction, to encourage exploration of disconnected feasible regions. Three auxiliary steering terms are also used: cohesion moves particles mildly toward the swarm centroid, separation discourages crowding among nearby particles, and alignment damps velocities toward the swarm-average velocity. In normalized design coordinates , the implemented update is
where is the personal best, is a weighted sum of ranked-neighborhood directions with weights proportional to their lateral component relative to the current global-best direction, is the mean normalized repulsion from particles within radius 0.18, and is the late-stage jitter term listed in Table 3. This definition is included for reproducibility; no external PSO–TASS algorithmic novelty is claimed. The global stage supplies a feasible basin, and LM then minimizes the stacked aligned residual vector using finite-difference Jacobians and adaptive damping [33,34]. This global–local structure follows a common pattern in mechanism synthesis and nonlinear least squares: stochastic exploration is used to avoid poor basins, and deterministic local refinement is used to recover precision.
Table 3.
Optimizer and LM settings used in the common-budget benchmark. Variables were optimized in normalized coordinates over the numerical search bounds stated in the text.
2.3.4. Common-Budget Optimizer Comparison
Five global optimizers are compared as alternative synthesis routes: canonical PSO [35,36,37], DE [38], GA [39,40], TLBO [41], and PSO–TASS. Each optimizer was run with 20 random seeds on each of four targets, the same bounds, the same feasibility-aware initialization, the same death penalty for infeasible closure, and a compact budget of 3000 objective evaluations. To keep the comparison computationally controlled, every third target sample was used in the global stage; all final reported errors were recomputed on the full 240-point trajectory after the same LM refinement. The benchmark script and generated tables are provided in the Supplementary Materials and in the archived reproducibility release [42]. The settings are given in Table 3 to make the comparison reproducible.
3. Results
3.1. Target Welding Trajectory
The target path used for inverse synthesis is shown in Figure 5. Coordinates are reported in millimeters.
Figure 5.
Target welding trajectory used for fixture-invariant inverse dimensional synthesis.
3.2. Recovered Mechanism
The archived PSO–TASS + LM design is the following design vector, with lengths in cm and angle in rad:
After phase and rigid fixture alignment, the resulting errors were
with optimal shift samples and . Figure 6 shows the aligned Case A paths, Figure 7 shows the pointwise error, Figure 8 shows four linkage configurations, and Figure 9 shows the determinant magnitude over the cycle.
Figure 6.
Case A target trajectory and generated coupler path after cyclic phase shift and rigid fixture alignment. Coordinates are shown in the aligned fixture frame after the optimal transformation. The target is drawn as a solid curve and the generated path as a dashed curve with sampled markers.
Figure 7.
Pointwise Euclidean error after fixture-invariant alignment.
Figure 8.
Representative four-bar configurations along the optimized motion. Gray denotes the ground link , blue the input crank , brown the coupler , green the output link , and dashed purple the offset to the coupler point. Dashed blue marks the crank where it coincides with the ground link.
Figure 9.
Determinant magnitude along the cycle for the final mechanism.
3.3. Additional High-Curvature Trajectory
To reduce dependence on a single smooth test curve, a second closed trajectory was generated with a different local curvature structure. This target was obtained from a feasible four-bar coupler curve, followed by a small fifth-harmonic normal perturbation of amplitude mm. The perturbation prevents exact recovery by the generating mechanism while preserving a smooth, fixture-alignable welding path. The DE+LM global–local route was used for this additional case because DE was the most reliable optimizer in the common-budget comparison of Section 3.5. The archived selected design is retained here; the new expanded comparison also benchmarks all five optimizers on Case B. The same objective constants, bounds, feasibility filters, and LM settings were retained; three DE seeds were evaluated, and the best full-trajectory result is reported in Table 4.
Table 4.
Numerical validation on two target geometries. Case B adds a high-curvature perturbed path that is not exactly reproducible by the unperturbed generating linkage.
The four sampled curvature sign changes in Case B indicate local reversals of bending direction, whereas none is detected for Case A at the adopted sampling. This descriptor does not by itself quantify industrial seam difficulty or force requirements. The lower determinant margin in Case B is not interpreted as a complete force-transmission guarantee. In the determinant scale used by the feasibility filter, remains well above the near-toggle penalty threshold of cm2. Hardware acceptance would still require explicit transmission-angle, torque, speed, and clearance constraints.
Figure 10.
Case B reconstruction after fixture-invariant alignment. The target is drawn as a solid curve and the generated path as a dashed curve with sampled markers.
Figure 11.
Pointwise Euclidean error for the high-curvature perturbed target.
3.4. Controlled Registration Comparisons
The historical non-invariant design was found to violate the declared lower bounds on and and has been excluded from the controlled comparison. Table 5 reports new DE runs with identical intrinsic bounds, population 36, 3000 global evaluations, seeds 101–120, and at most 38 local iterations for each registration treatment. The same soft penalties apply. Each row uses the corresponding matching rule. The reported differences therefore reflect both the correspondence model and the difficulty of the finite-budget search.
Table 5.
New Case A registration comparison over 20 seeds. RMS is measured in mm; IQR describes across-run variation. All six intrinsic variables remain within the same declared bounds.
The absolute-frame median is 7.1153 mm and the full-registration median is 0.0824 mm. Rigid-only registration gives a near-zero median ( mm) for this stored target and its original index. The full-registration objective includes zero shift and cannot raise the minimum RMS at a fixed design, but it does not guarantee a better finite-budget search result: changing the admissible shifts changes both the correspondence landscape and the composite cost evaluated by the optimizer. Known rigid transforms and index rolls preserve the full-registration RMS at the fixed archived design (Section 3.7); the supplementary table records the other treatments for the same transforms.
For explicit pose optimization, four additional normalized variables encode rotation in , each translation in mm, and the discrete cyclic index via a unit-interval variable. Its 10-variable global search receives the same 3000 evaluations. Local differences cannot differentiate the integer phase variable, which remains fixed locally. Both formulations represent rigid/cyclic correspondence over the stated pose domain, but the analytic route chooses pose and shift by RMS before scoring the composite cost, whereas the explicit route searches pose and dimensions jointly under the composite cost. Thus the comparison includes both the higher-dimensional search and a difference in the way nuisance variables enter the global criterion; it is not an isolated timing comparison or a proof of different geometric expressiveness. Initialization screening is outside the counted objective budget in every method. The raw designs, pose variables, budgets, and histories are supplied.
3.5. Expanded Optimizer Comparison
The new experiment contains 20 seeds per optimizer and target, for 400 runs across five algorithms and four fixed numerical targets. Case C is defined independently of four-bar kinematics by and mm; Case D uses and mm, with . All targets use 240 samples, every third sample for global search, and all samples for local refinement. These extra targets test model mismatch and are not measured weld seams.
All algorithms retain their documented update equations and use the same intrinsic bounds and penalty weights. The best evaluated global candidate is archived and returned for every method, including a partially completed final generation; this corrects possible loss of the best candidate at budget termination. Local refinement retains RMS-only acceptance and the original damped Gauss–Newton settings. At an active upper bound, a backward rather than zero finite-difference column is used. This is a fresh experiment and its execution times should not be compared directly with the old five-run implementation. The revised vectorized kinematics retain the original greedy branch rule. FFT circular correlation computes exactly the same discrete proper-rotation registration, within floating-point precision. Randomized checks covered 400 designs, including 186 feasible ones; the largest RMS discrepancy against the original evaluator was mm.
On target A, DE and GA have the numerically tied lowest medians (0.0824 mm). On target B, the lowest observed median RMS is obtained by DE (0.1709 mm; bootstrap 95% median interval [0.1709, 0.1709] mm). On target C, the lowest observed median RMS is obtained by DE (2.6590 mm; bootstrap 95% median interval [2.6303, 2.6799] mm). On target D, the lowest observed median RMS is obtained by GA (4.1709 mm; bootstrap 95% median interval [4.0704, 4.2338] mm). These descriptive minima do not alone establish significant pairwise differences. Table 6 summarizes the results across all five optimizers, and Table 7 gives the exploratory paired comparisons of DE and PSO–TASS.
Table 6.
Expanded common-budget benchmark. Entries are median RMS [IQR] in mm after local refinement, over 20 seeds per cell. Scientific notation preserves small finite residuals.
Table 7.
Exploratory paired DE minus PSO–TASS comparison across 20 seeds per target. Negative RMS differences and rank-biserial effects favor DE. Holm correction includes all 40 optimizer-pair tests, not only these four.
We retain the original mm cutoff for continuity with the initial benchmark. It serves as a descriptive numerical criterion. The continuous RMS distributions are the primary comparison. Success fractions, pre-refinement errors, global and local times, median confidence intervals, and all individual outcomes are provided in the supplementary CSV files. Paired Wilcoxon tests compare algorithms by seed separately for each target, with Holm adjustment across all 40 pairwise tests; absolute RMS differences below mm are treated as numerical ties. Percentile bootstrap intervals use 10,000 resamples. These exploratory comparisons concern four prescribed geometries and do not establish superiority across a population of welding tasks. Figure 12 shows every run. Figure 13 shows convergence during the global search. Figure 14 shows the analytic targets and their best numerical fits.
Figure 12.
Across-run distributions after local refinement for all 400 benchmark runs. Each point is one seeded run. Point colors identify the optimizer on the horizontal axis. Box edges mark the first and third quartiles, and the orange line marks the median. The logarithmic plot floors errors at mm for display only; raw finite values are retained in the tables.
Figure 13.
Best-so-far global composite objective by evaluation count. For each optimizer, the colored line shows the median over 20 seeds and the matching shaded band spans the first to third quartile. The histories cover the global search stage.
Figure 14.
Two independently prescribed analytic targets and their best fits among the 100 compact-budget runs per target. The displayed best outcome is not the across-run median.
3.6. Practical Effect of Two-Decimal Dimensional Reporting
The final design in Equation (11) is reported with six decimals for reproducibility, as a numerical reporting convention; no manufacturing capability is established. Table 8 quantifies numerical reporting sensitivity. Rounding all variables to two decimals, i.e.,
increases the RMS from mm to only mm. If only the dimensional quantities are rounded to cm while is kept exact, the RMS is mm. Even a coarser one-decimal length rounding gives RMS mm. A Monte Carlo test of half-digit parameter perturbations around the two-decimal design, using uniform perturbations of for lengths and rad for , gave median RMS mm and 95th percentile RMS mm. Figure 15 shows the increase in RMS across the rounding and perturbation cases.
Table 8.
Effect of dimensional rounding and half-digit parameter perturbations on the aligned path error. Values in parentheses are 95th percentiles for the Monte Carlo row.
Figure 15.
RMS error increase caused by dimensional rounding and half-digit perturbations.
3.7. Additional Implementation Verification
Re-evaluation of the archived Case A design reproduces RMS mm. Applying three known combinations of planar rotation, translation, and integer cyclic roll to the target preserves that RMS to floating-point precision. This verifies registration invariance at the selected design; it is not an optimizer ablation.
For this design, has minimum , giving a minimum acute transmission angle of . Evaluations at 240, 960, and 3840 configurations give the same minimum. The complete crank cycle has . The strict inner and outer circle-intersection margins are and cm, respectively; hence tangency is excluded throughout this revolution and a fixed-sign continuous assembly branch exists. This argument applies to the selected design, not to every candidate screened by the nearest-neighbor implementation.
Forward-difference relative steps of , , and give rank six at the original absolute singular-value threshold. The physical-coordinate condition numbers are , , and ; after multiplying each Jacobian column by its search-domain width, they are , , and . This is a local step-sensitivity check, not a noisy identification experiment.
The supplied registration routine tests N shifts, each involving covariance work, and thus takes time per candidate; the forward kinematic sampling takes . Separate timing profiles remain necessary to assess practical scaling.
3.8. Additional Numerical Comparisons
All new global searches use uniform normalized initialization and the same intrinsic search domain unless explicitly identified as bounds sensitivity. Initialization requires sampled closure with a 10,000-draw cap and raises an error if the population cannot be completed, instead of silently inserting unscreened candidates. Global evaluations include invalid candidates but exclude initialization screening and local residual evaluations; both global and local times and counts are archived. Execution times were measured with four main-suite worker processes and two additional workers, each with one BLAS thread; they are implementation- and contention-dependent.
3.8.1. Different Local and Global Objectives
Across the 400 fresh benchmark runs, local refinement increased RMS in 0 cases, MAX in 186 cases, and the recomputed full-grid composite cost in 107 cases. The determinant margin decreased in 277 cases. These checks compare both stages on the same full target and therefore distinguish a change in objective from a change in evaluation resolution. No monotonic composite-cost guarantee is claimed. Table 9 summarizes the full-grid results before and after local refinement.
Table 9.
Full-grid median errors and costs before and after local refinement, 20 runs per target and method. Composite cost is expressed in the mm convention of the global objective.
The full-grid determinant was below the numerical soft-penalty threshold in 0 global and 14 locally refined designs. The smallest sampled normalized determinant among the final designs was . A small residual or a sampled closure pass therefore does not imply an acceptable transmission margin.
Table 10 compares the 3000- and 15,000-evaluation runs for the same ten seeds per method and target.
Table 10.
New 15,000-evaluation global runs versus 3000-evaluation runs on the same ten seeds per method and target, each followed by the same local refinement. Times refer to the 15,000-evaluation runs. These are not reconstructions of the original historical run.
3.8.2. Resolution and Correspondence
Resolution experiments use five paired DE seeds at , with unchanged global evaluation counts and every third sample used globally. Values above 240 interpolate the supplied target periodically and linearly; no extra measured information is introduced. Common-grid error re-evaluates all recovered designs against the original 240-point target. A normalized dimension change is the Euclidean difference from the same-seed default design divided componentwise by the original search widths and by . Differences include finite-budget search effects, so they are not attributed solely to discretization. Table 11 reports the resolution results on Case A.
Table 11.
Resolution sensitivity for Case A over the same five seeds. Phase is expressed as a signed fraction of one cycle. All entries are medians.
A matched local least-squares test from the historical Case A design gives RMS 0.0325 mm with integer registration and mm when a continuous crank offset is added. The offset reaches −1.0000 sample; the resulting dimensions also give mm with integer registration. This is evidence of leaving the initial local basin, rather than an irreducible integer-grid error. On Case B the corresponding discrete and continuous errors are 0.1709 and 0.1704 mm, with fractional offset −0.1067 sample. These are local comparisons from specified starts, not global guarantees.
Arc-length resampling of both curves, followed by cyclic rigid registration and DE search over five seeds, gives median RMS mm on Case A. Because arc-length correspondence changes the residual definition, it is reported as a different matching problem rather than ranked directly against uniform-crank RMS.
3.8.3. Coordinate Noise and Parameter Sensitivity
Independent zero-mean Gaussian coordinate perturbations with standard deviation are introduced in mm per coordinate, with independent noise and optimizer random streams. Twenty DE runs per level use the compact budget. Clean-target error compares the fitted dimensions with the unperturbed trajectory; dimension changes compare against the same-seed noiseless fit rather than an assumed unique ground-truth linkage. The noise levels are illustrative numerical scenarios, not measurement uncertainty inferred from an instrument. Table 12 summarizes the coordinate-noise results.
Table 12.
Controlled coordinate-noise sensitivity on Case A, twenty runs per level.
Removing the determinant soft penalty is an ablation of that penalty, not of kinematic closure: undefined circle intersections still receive the common invalid-candidate cost. Turning off closure would define no valid coupler trajectory and is not treated as a meaningful comparator. Local RMS-only refinement can reduce differences introduced by global penalty weights. Table 13 reports the results of varying one objective weight at a time.
Table 13.
One-at-a-time objective weight changes on Case A, five DE seeds per setting. Tuples denote MAX, determinant-deficit, and size coefficients.
Table 14 shows the effect of changing the widths of the length and radius bounds.
Table 14.
Bound sensitivity: original interval widths multiplied about their midpoints, while the angular interval remains . Five DE seeds per setting.
3.8.4. Recalibrated Versus Fixed Installation
For 1000 independent half-digit perturbations around the two-decimal design, the same parameter draws are evaluated with re-optimized registration and with the nominal rounded-design pose and phase held fixed. Length perturbations are uniform within cm and the angular perturbation within rad. These distributions represent a reporting-resolution scenario, not joint clearance, elastic compliance, or measured manufacturing capability. Table 15 compares errors under the two fixture treatments.
Table 15.
Paired parameter-perturbation scenario. Values are median and 95th percentile over 1000 draws.
For the historical Case A design, a 3840-point periodic derivative calculation gives a coupler speed per unit crank rate from 12.9876 to 37.4632 mm/rad, a ratio of 2.8845. The maximum second derivative is 49.2879 mm/rad2. For constant input rate , speed and acceleration scale by and , respectively. With variable crank rate, the acceleration also includes the first derivative multiplied by crank angular acceleration. These are kinematic diagnostics, not evidence of an acceptable welding travel speed.
Table 16 gives three distinct approximate Case A solutions.
Table 16.
Distinct approximate Case A solutions from the new compact-budget runs. Designs are examples selected for separation, not an exhaustive cognate set.
All six dimensions and source run identifiers for these examples are supplied in alternative_solutions.json. Their local fit does not establish uniqueness, and no exact cognate construction is claimed. Figure 16 shows the transmission angle and the path derivatives for the historical Case A design over the full crank cycle.
Figure 16.
Transmission-angle variation and magnitudes of the first and second derivatives of the coupler path with respect to crank angle for the archived Case A design. A prescribed input-rate law is required to convert the derivatives to physical velocity and acceleration.
3.8.5. Registration Scaling
The original direct implementation tests N cyclic shifts with covariance work each, or per candidate. The new implementation uses complex circular correlations computed by FFT in , followed by residual formation; target Fourier coefficients are cached. Both implementations enforce proper rotation, fixed scale, and the same discrete shift set. Median process-CPU timings from three batches per size separate forward kinematics and registration; these small timings are illustrative and depend on timer resolution and hardware. Table 17 reports the timings for each sample count.
Table 17.
CPU time per candidate in milliseconds. These serial component checks are distinct from contended global-run wall times.
4. Discussion
4.1. Identifiability, Non-Uniqueness, and Limitations
Identifiability Under Fixture Invariance
The design vector has six intrinsic variables. The alignment variables represent three continuous extrinsic degrees of freedom in , and the cyclic shift adds a finite discrete equivalence class with possible sampled start points. These variables are intentionally not identified, because they are properties of fixture placement and cycle start, not of the linkage dimensions. As a result, the inverse problem identifies mechanism shape only up to the imposed fixture equivalence class.
The invariance also affects conditioning. A rigid translation or rotation of all generated points produces no change in the aligned residual, so the residual Jacobian after alignment has no sensitivity to these extrinsic directions. This is desirable for fixture-invariant welding, but it means that absolute base pose cannot be recovered from the aligned objective. Quantitatively, the continuous fixture-pose tangent space has rank 3, corresponding to two translations and one rotation, while the phase shift contributes one additional discrete equivalence. The finite-difference Jacobian of the aligned residual with respect to the six intrinsic design variables has numerical rank 6 at the selected solution, with the singular spectrum reported in Table 18. The reported full rank is local numerical evidence of residual sensitivity, rather than proof of robust parameter recovery under noise. The moderate condition number and the known existence of cognate solutions still preclude a uniqueness claim.
Table 18.
Local rank and conditioning information for Case A at the selected solution. The aligned residual Jacobian is computed after re-solving phase and Procrustes alignment under finite differences.
The archived Jacobian uses forward differences in physical coordinates and counts singular values above an absolute threshold of . Its condition number therefore depends on the mixed cm/rad parameter scaling. The step-size and bound-scaled checks are reported above; noisy recovery is assessed separately in Section 3.8.
Additional non-uniqueness remains intrinsic to four-bar synthesis. The classical Roberts–Chebyshev cognate result implies that, together with a given four-bar, two cognate linkages can generate the same coupler curve. Under the fixture-invariant objective, those cognates and their rigid-body variants belong to the same equivalence class of path solutions. Near-cognate solutions and multiple local minima can also have similar RMS but different determinant margins or size characteristics [4,6,43]. Hence the condition number in Table 18 is not interpreted as proof of a unique mechanism; the objective should instead be interpreted as an engineering selection rule within a family of feasible mechanisms.
4.2. Practical Interpretation
The new registration comparison keeps the intrinsic search domain and budgets fixed. Absolute-frame and registered rows still solve different correspondence problems; the difference is interpreted within those definitions rather than as physical positioning accuracy. The rounding study further shows that six-decimal reporting is only a reproducibility convention: the rounded parameters retain sub- mm aligned RMS error for this target. Registration is re-solved for each perturbation in the supplied implementation, so these errors describe recalibrated shape fitting rather than a fixed installed assembly. The uniform half-digit perturbations represent reporting resolution and are not measured distributions of manufacturing or joint-clearance uncertainty.
4.3. Limitations
For an open seam, a natural extension would replace cyclic correspondence with an ordered match over a bounded crank interval. The fit would preserve endpoint correspondence and could allow a monotone reparameterization between endpoints. If fixture pose or the starting configuration is prescribed, the corresponding variables should be fixed or constrained during registration.
A process-specific extension would prescribe a crank motion law and enforce travel-speed and acceleration limits on the resulting tool motion. Torch orientation requires an additional orientation model and allowable pose envelope. Actuator torque requires a dynamic model with inertia, loads, and friction. Joint clearance and thermal distortion require a mechanical or experimental characterization of the installed assembly. These extensions define the evidence needed to assess a welding application.
The validation remains numerical. Four numerical target geometries are included, but no physical welding testbed has yet been used. The present model also does not constrain actuator torque, speed, acceleration, thermal distortion, joint clearance, or bead-process limits. Joint clearance can measurably distort four-bar coupler curves and has recently been studied from the viewpoint of clearance prediction using coupler-curve deviations [44]; therefore, clearance is treated here as an important experimental and tolerance-propagation topic rather than as a solved part of the current model. Partial open paths and non-periodic welding seams would require either a segment-based registration strategy or an open-curve phase parameter rather than the full cyclic shift used here. These limitations define the next experimental stage: fixture calibration, measured seam data, dimensional tolerance propagation with joint clearance, and velocity/acceleration constraints in the objective. Adjustable mechanisms can cover multiple prescribed paths through slider or linkage adjustments [45,46,47]. Nonlinear regression and neural networks offer additional routes for estimating linkage dimensions from path information [48,49]. Han et al. [50] review machine-learning methods for mechanism kinematics and synthesis.
5. Conclusions
The demonstrated contribution is a numerical geometric synthesis workflow that separates rigid fixture pose and discrete starting index from intrinsic four-bar dimensions. The corrected baseline and registration ablations use identical intrinsic limits and evaluation budgets. Their errors describe different matching formulations and must not be interpreted as measured welding gains.
The expanded 400-run experiment reports variability across five optimizers and four targets. Two independent analytic curves broaden numerical testing but do not constitute validation on measured weld seams. The full raw results, pre/post-refinement metrics, exploratory paired statistics, and convergence histories are supplied. The title therefore emphasizes the registration-based framework rather than an optimizer novelty or universal optimizer ranking.
The local stage minimizes aligned RMS rather than the global composite cost. Discretization, correspondence, noise, and parameter bounds can affect the selected dimensions and errors; the additional studies quantify these effects without claiming unique or noise-free parameter identification. Parameter rounding and perturbations with re-registration underestimate errors that remain when fixture calibration is fixed. No manufacturing acceptance, joint-clearance compensation, torch-orientation control, torque capability, or welding-process stability is established. Measured seam data and a calibrated physical mechanism are required for that next validation stage.
Supplementary Materials
The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/inventions11060137/s1.
Author Contributions
All authors contributed equally to the following roles (R.S.F., C.P.P.M. and G.L.V.F.): Conceptualization, methodology, software, validation, formal analysis, investigation, resources, data curation, writing—original draft preparation, writing—review and editing, visualization, supervision, and project administration. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The original data presented in the study are openly available in GitHub release v1.0.0 (https://github.com/romusan/inventions-11-00137-reproducibility/releases/tag/v1.0.0, accessed on 11 November 2026) [42].
Acknowledgments
Rómulo Sandoval Flórez acknowledges Universidad ECCI for its technical support. Claudia Patricia Parra Medina and Germán Leandro Vargas Fonseca thank Universidad Militar Nueva Granada for its institutional support and for providing the academic environment that made this work possible. During the preparation of this work, ChatGPT (OpenAI, GPT-6) was used to improve language and readability. The authors reviewed and edited the content as needed and take full responsibility for the final manuscript.
Conflicts of Interest
The authors declare no conflicts of interest.
Nomenclature
| Fixed pivots of the four-bar linkage | |
| Moving joints of the coupler link | |
| Ground length | |
| Input crank length | |
| Coupler length | |
| Output link length | |
| P | Coupler point that traces the welding path |
| Radial coordinate of P in the coupler frame | |
| Angular coordinate of P in the coupler frame | |
| Design vector | |
| Prescribed input crank angle | |
| Unit vectors of the moving coupler frame | |
| d | Distance used in the closure test |
| Coefficient matrix of the velocity system | |
| Determinant , singularity indicator () | |
| Passive angular velocities | |
| Target welding trajectory, | |
| N | Number of trajectory samples |
| s | Cyclic phase shift between generated and target samples |
| Rigid planar rotation, | |
| Rigid planar translation | |
| Root-mean-square path error after alignment | |
| Aligned intrinsic Jacobian of the residual | |
| Normalized position of particle i | |
| Velocity of particle i | |
| Personal best of particle i | |
| Weighted sum of ranked-neighborhood directions | |
| Mean normalized repulsion from nearby particles | |
| Late-stage jitter term | |
| Inertia weight |
Abbreviations
DE, differential evolution; GA, genetic algorithm; LM, Levenberg–Marquardt; PSO, particle
swarm optimization; PSO–TASS, the implementation-level PSO variant defined in Section 2.3; TLBO,
teaching–learning-based optimization.
References
- Hartenberg, R.; Denavit, J. Kinematic Synthesis of Linkages; McGraw–Hill: New York, NY, USA, 1964. [Google Scholar]
- Erdman, A.G.; Sandor, G.N. Mechanism Design: Analysis and Synthesis, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 1997; Volume 1. [Google Scholar]
- Subbian, T.; Flugrad, D. Four-bar path generation synthesis by a continuation method. J. Mech. Des. 1991, 113, 63–69. [Google Scholar] [CrossRef] [Scilit]
- Wampler, C.; Morgan, A.; Sommese, A. Complete solution of the nine-point path synthesis problem for four-bar linkages. J. Mech. Des. 1992, 114, 153–159. [Google Scholar] [CrossRef] [Scilit]
- Tari, H.; Su, H.; Li, T. A constrained homotopy technique for excluding unwanted solutions from polynomial equations arising in kinematics problems. Mech. Mach. Theory 2010, 45, 898–910. [Google Scholar] [CrossRef] [Scilit]
- Hills, C.; Baskar, A.; Plecnik, M.; Hauenstein, J. Computing complete solution sets for approximate four-bar path synthesis. Mech. Mach. Theory 2024, 196, 105628. [Google Scholar] [CrossRef] [Scilit]
- Pathak, V.; Singh, R.; Sharma, A.; Kumar, R.; Chakraborty, D. A historical review on the computational techniques for mechanism synthesis: Developments up to 2022. Arch. Comput. Methods Eng. 2023, 30, 1131–1156. [Google Scholar] [CrossRef] [Scilit]
- Sabry, I.; Mourad, A.H.I.; ElWakil, M. Multi-response optimization of friction stir welding parameters for AA6063-T6 using hybrid RSM–ANN–GRA–TOPSIS. Mater. Today Commun. 2026, 51, 114524. [Google Scholar] [CrossRef] [Scilit]
- Sabry, I.; ElWakil, M. Hybrid FEM–ML framework for multi-objective optimization of mechanical properties and surface quality in dissimilar AA6061-T6/AA6082-T6 friction stir welding. Mater. Today Commun. 2026, 52, 115197. [Google Scholar] [CrossRef] [Scilit]
- El-Zathry, N.E.; Akinlabi, S.; Woo, W.L.; Patel, V.; Mahamood, R.M.; Sabry, I. Enhancing friction stir-based techniques with machine learning: A comprehensive review. Mach. Learn. Sci. Technol. 2025, 6, 021001. [Google Scholar] [CrossRef] [Scilit]
- Hernández, A.; Muñoyerro, A.; Urízar, M.; Amezua, E. Comprehensive approach for the dimensional synthesis of a four-bar linkage based on path assessment and reformulating the error function. Mech. Mach. Theory 2021, 156, 104126. [Google Scholar] [CrossRef] [Scilit]
- Matekar, S.; Gogate, G. Optimum synthesis of path generating four-bar mechanisms using differential evolution and a modified error function. Mech. Mach. Theory 2012, 52, 158–179. [Google Scholar] [CrossRef] [Scilit]
- Gogate, G.; Matekar, S. Optimum synthesis of motion generating four-bar mechanisms using alternate error functions. Mech. Mach. Theory 2012, 54, 41–61. [Google Scholar] [CrossRef] [Scilit]
- Hadizadeh Kafash, S.; Nahvi, A. Optimal synthesis of four-bar path generator linkages using Circular Proximity Function. Mech. Mach. Theory 2017, 115, 18–34. [Google Scholar] [CrossRef] [Scilit]
- Sabaapour, M.; Yoon, J. A novel method for optimal path synthesis of mechanisms based on tracking control of shadow robot. Mech. Mach. Theory 2019, 131, 218–233. [Google Scholar] [CrossRef] [Scilit]
- Liu, W.; Cao, J.; Qu, X.; Qin, T.; Li, B.; Sun, J. A unified synthesis method for path generation of planar four-bar mechanisms using feature coupler circle. Mech. Mach. Theory 2026, 228, 106528. [Google Scholar] [CrossRef] [Scilit]
- Cabrera, J.; Simón, A.; Prado, M. Optimal synthesis of mechanisms with genetic algorithms. Mech. Mach. Theory 2002, 37, 1165–1177. [Google Scholar] [CrossRef] [Scilit]
- Nariman-Zadeh, N.; Felezi, M.; Jamali, A.; Ganji, M. Pareto optimal synthesis of four-bar mechanisms for path generation. Mech. Mach. Theory 2009, 44, 180–191. [Google Scholar] [CrossRef] [Scilit]
- Lin, W.Y. A GA–DE hybrid evolutionary algorithm for path synthesis of four-bar linkage. Mech. Mach. Theory 2010, 45, 1096–1107. [Google Scholar] [CrossRef] [Scilit]
- Bulatović, R.; Miodragović, G.; Bošković, M. Modified Krill Herd algorithm and its application in dimensional synthesis of a four-bar linkage. Mech. Mach. Theory 2016, 95, 1–21. [Google Scholar] [CrossRef] [Scilit]
- Bureerat, S.; Sleesongsom, S. Constraint handling technique for four-bar linkage path generation using self-adaptive teaching–learning-based optimization with a diversity archive. Eng. Optim. 2021, 53, 513–530. [Google Scholar] [CrossRef] [Scilit]
- Huang, Q.; Yu, Y.; Zhang, K.; Li, S.; Lu, H.; Li, J.; Zhang, A.; Mei, T. Optimal synthesis of mechanisms using repellency evolutionary algorithm. Knowl.-Based Syst. 2022, 239, 107928. [Google Scholar] [CrossRef] [Scilit]
- Kang, Y.H.; Lin, J.W.; You, W.C. Comparative study on the synthesis of path-generating four-bar linkages using metaheuristic optimization algorithms. Appl. Sci. 2022, 12, 7368. [Google Scholar] [CrossRef] [Scilit]
- Rao, R.; Pawar, R. Dimensional synthesis of four-bar mechanisms using Rao algorithms and their variants. Appl. Soft Comput. 2023, 132, 109839. [Google Scholar] [CrossRef] [Scilit]
- Zhang, K.; Yang, M.; Zhang, Y.; Huang, Q. Error feedback method based dimension synthesis optimisation for four-bar linkage mechanism. Appl. Soft Comput. 2023, 144, 110424. [Google Scholar] [CrossRef] [Scilit]
- Schönemann, P. A generalized solution of the orthogonal Procrustes problem. Psychometrika 1966, 31, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Gower, J.; Dijksterhuis, G. Procrustes Problems; Oxford University Press: Oxford, UK, 2004. [Google Scholar] [CrossRef] [Scilit]
- Torres-Moreno, J.; Cruz, N.; Álvarez, J.; Redondo, J.; Giménez-Fernandez, A. An open-source tool for path synthesis of four-bar mechanisms. Mech. Mach. Theory 2022, 169, 104604. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Wei, S.; Liao, Q.; Zhang, Y. A novel analytical method for four-bar path generation synthesis based on Fourier series. Mech. Mach. Theory 2020, 144, 103671. [Google Scholar] [CrossRef] [Scilit]
- Qian, Y.; Zhong, H.; Wang, T.; Wang, L. An improved Fourier-based method for path generation of planar four-bar linkages without prescribed timing. Machines 2024, 12, 299. [Google Scholar] [CrossRef] [Scilit]
- Chang, Y.; Chang, J.L.; Lee, J.J. Path synthesis of planar four-bar linkages for closed and open curves using elliptical Fourier descriptors. J. Mech. Sci. Technol. 2024, 38, 2579–2590. [Google Scholar] [CrossRef] [Scilit]
- Yuan, J.; Sun, W.; Zhang, J.; Li, Y. Study of segmental scale synthesis algorithms for Procrustes curves in linkage mechanisms. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2026, 240, 4246–4260. [Google Scholar] [CrossRef] [Scilit]
- Levenberg, K. A method for the solution of certain non-linear problems in least squares. Q. Appl. Math. 1944, 2, 164–168. [Google Scholar] [CrossRef] [Scilit]
- Marquardt, D. An algorithm for least-squares estimation of nonlinear parameters. J. Soc. Ind. Appl. Math. 1963, 11, 431–441. [Google Scholar] [CrossRef] [Scilit]
- Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of ICNN’95–International Conference on Neural Networks; IEEE: Piscataway, NJ, USA, 1995; pp. 1942–1948. [Google Scholar] [CrossRef] [Scilit]
- Shi, Y.; Eberhart, R. A modified particle swarm optimizer. In Proceedings of IEEE International Conference on Evolutionary Computation; IEEE: Piscataway, NJ, USA, 1998; pp. 69–73. [Google Scholar] [CrossRef] [Scilit]
- Clerc, M.; Kennedy, J. The particle swarm–explosion, stability, and convergence in a multidimensional complex space. IEEE Trans. Evol. Comput. 2002, 6, 58–73. [Google Scholar] [CrossRef] [Scilit]
- Storn, R.; Price, K. Differential evolution–a simple and efficient heuristic for global optimization over continuous spaces. J. Glob. Optim. 1997, 11, 341–359. [Google Scholar] [CrossRef] [Scilit]
- Holland, J. Adaptation in Natural and Artificial Systems; University of Michigan Press: Ann Arbor, MI, USA, 1975. [Google Scholar]
- Eiben, A.; Smith, J. Introduction to Evolutionary Computing, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2015. [Google Scholar] [CrossRef] [Scilit]
- Rao, R.; Savsani, V.; Vakharia, D. Teaching–learning-based optimization: A novel method for constrained mechanical design optimization problems. Comput.-Aided Des. 2011, 43, 303–315. [Google Scholar] [CrossRef] [Scilit]
- Sandoval Flórez, R.; Parra Medina, C.P.; Vargas Fonseca, G.L. Reproducibility Supplement for Fixture-Invariant Geometric Path Synthesis of Four-Bar Mechanisms. GitHub, Version 1.0.0. 2026. Available online: https://github.com/romusan/inventions-11-00137-reproducibility/releases/tag/v1.0.0 (accessed on 11 November 2026).
- Soriano-Heras, E.; Pérez-Carrera, C.; Rubio, H. Mathematical dimensional synthesis of four-bar linkages based on cognate mechanisms. Mathematics 2025, 13, 11. [Google Scholar] [CrossRef] [Scilit]
- Gohil, D.; Guha, A.; Kulkarni, M. Machine learning-based joint clearance prediction from coupler curve deviations in planar four bar mechanism. Int. J. Dyn. Control 2026, 14, 169, Correction in Int. J. Dyn. Control 2026, 14, 274. [Google Scholar] [CrossRef] [Scilit]
- Zhou, H. Dimensional synthesis of adjustable path generation linkages using the optimal slider adjustment. Mech. Mach. Theory 2009, 44, 1866–1876. [Google Scholar] [CrossRef] [Scilit]
- Peng, C.; Sodhi, R. Optimal synthesis of adjustable mechanisms generating multi-phase approximate paths. Mech. Mach. Theory 2010, 45, 989–996. [Google Scholar] [CrossRef] [Scilit]
- Chanekar, P.; Ghosal, A. Optimal synthesis of adjustable planar four-bar crank-rocker type mechanisms for approximate multi-path generation. Mech. Mach. Theory 2013, 69, 263–277. [Google Scholar] [CrossRef] [Scilit]
- Akay, O.; Catalkaya, M. Synthesis of a four-bar mechanism using nonlinear regression analysis. J. Mech. Sci. Technol. 2025, 39, 1427–1434. [Google Scholar] [CrossRef] [Scilit]
- Liu, W.; Liu, J.; Qin, T.; Li, B.; Sun, J. Dimensional synthesis of path generation of a planar four-bar mechanism using a neural network. J. Braz. Soc. Mech. Sci. Eng. 2026, 48, 52. [Google Scholar] [CrossRef] [Scilit]
- Han, X.; Zhao, P.; Zhao, X.; Zi, B. Review on machine learning-based approaches for the kinematic analysis and synthesis of mechanisms. Front. Mech. Eng. 2025, 20, 11. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















