Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Next Article in Journal
The Structural Design, Kinematics, and Workspace Analysis of a Novel Rod–Cable Hybrid Cable-Driven Parallel Robot
Previous Article in Journal
Exploring Adhesive Performance in Horseshoe Bonding Through Advanced Mechanical and Numerical Analysis
Previous Article in Special Issue
Predictive Modeling of Hospital Readmission of Schizophrenic Patients in a Spanish Region Combining Particle Swarm Optimization and Machine Learning Algorithms
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Ameliorated Chameleon Algorithm-Based Shape Optimization of Disk Wang–Ball Curves

1
School of Technology, Xi’an Siyuan University, Xi’an 710038, China
2
Xi’an Mingde Institute of Technology, College of General Education, Xi’an 710600, China
3
Division of Informationize Management, Xi’an University of Technology, Xi’an 710048, China
4
School of Computer Science and Engineering, Xi’an University of Technology, Xi’an 710048, China
*
Author to whom correspondence should be addressed.
Biomimetics 2025, 10(1), 3; https://doi.org/10.3390/biomimetics10010003
Submission received: 7 October 2024 / Revised: 12 December 2024 / Accepted: 16 December 2024 / Published: 24 December 2024

Abstract

:
The shape design and optimization of complex disk curves is a crucial and intractable technique in computer-aided design and manufacturing (CAD/CAM). Based on disk Wang–Ball (DWB) curves, this paper defines a novel combined disk Wang–Ball (CDWB) curve with constrained parameters and investigates the shape optimization of CDWB curves by using the multi-strategy ameliorated chameleon swarm algorithm (MCSA). Firstly, in order to meet the various shape design requirements, the CDWB curves consisting of n DWB curves are defined, and the G1 and G2 geometric continuity conditions for the curves are derived. Secondly, the shape optimization of CDWB curves is considered as a minimization problem with curve energy as the objective, and an optimization model is developed under the constraints of the splicing conditions. Finally, the meta-heuristic algorithm MCSA is introduced to solve the established optimization model to obtain the minimum energy value, and its performance is verified by comparison with other algorithms. The results of representative numerical examples confirm the effectiveness and competitiveness of the MCSA for the CDWB curve shape optimization problems.

1. Introduction

The cubic Ball basis function was first established for the CONSURF fuselage surface modeling tool [1,2,3]. Later on, Wang [4] and Said [5,6,7], respectively, promoted higher-order forms of the Ball basis functions. With an additional study by Hu et al., these two types of generalized Ball curves were, respectively, called Wang–Ball (WB) curves and Said–Ball (SB) curves [8]. At the same time, the paper points out that Wang–Ball curves not only have properties that are analogous to Bézier curves such as stability, symmetry, endpoint interpolation, and geometric invariance, but also significantly outperform SB curves and Bézier curves with respect to the recursive valuation, on the one hand, and degree elevation and reduction techniques on the other.

1.1. Relevant Research Objectives

The modeling of curves is an important research component in CAGD and has significant applications across a wide range of fields such as CAD/CAM, aerospace, and artificial intelligence. Geometry-based modeling is currently the main method used in CAD/CAM; however, in a floating-point environment only approximate results are usually obtained. In order to ensure computational accuracy and algorithmic robustness, Sederberg et al. introduced the interval approach to CAGD and proposed the concept of interval Bézier curves [9]. Later on, concepts such as interval Ball curves and interval B-spline curves were introduced, and their boundary representations and degree reductions were also studied [10,11,12]. Although the interval control capstone contains error information, the rectangular interval will expand during the calculation, and it will not have rotational symmetry in a two-dimensional space [13]. To this end, Lin et al. suggested that disks be used instead of control vertices, and proposed disk Bézier (DB) curves [14]. Subsequently, Chen [15] investigated the reduced degree of DB curves, employing both linear programming and optimization methods; the isometric approximation of DB curves was researched by Chen et al. [16]; and Seah et al. [17] showed the use of disk B-spline curves in artistic strokes and 2D animation. Hu et al. [18] constructed disk Wang–Ball (DWB) curves and investigated their respective degree reduction problem.
Unlike conventional curves, a disk curve is represented by control vertices, with real numbers representing the radius. When the radius of the control disk takes different values, the curve will have different thicknesses. Given the flexible presentation of the disk curve and good properties regarding the WB curve, the DWB curve has certain advantages in shaping design issues. However, in complex styling designs, multiple curve splices can better satisfy the design requirements than single curves. Therefore, part of the aim of this paper consists of defining the combined disk Wang–Ball (CDWB) curves and deriving the geometric continuity conditions for their G1 and G2 smooth splices.
In the shape design of curves, the smoothness of the curve is an important criterion for judging the quality of the shape. To obtain a smoother curve, the energy of the curve is often used as the objective function to constrain the curve shape, which is called the energy method [19]. The energy method is a physics-based modeling idea that treats the curve as an elastic spline and the strain energy of the elastic spline as the energy function of the curve. Due to the good smoothing effect of the energy method, Juhász adjusted the curve shape dictated by the mixture of control points and mixing functions through the energy function [20], and Hu et al. constructed a combined cubic generalized Ball (CCG-Ball) curve/surface and studied its shape optimization using minimized energy as the evaluation criterion [21,22]. Based on this, this paper will use the energy of the CDWB curves as the objective function and the relative G1, G2 geometric continuity of the smooth curve splice as the constraint to build an optimization model and solve it so that the resulting curve has the best shape. In light of the fact that the objective function in the optimizing model is complex and inspired by the literature [21], the meta-heuristic algorithm (MA) will be adopted to solve the established model in this paper.

1.2. Literature Survey of the Meta-Heuristic Algorithm

As one of the more popular optimization methods in recent years, most MAs are inspired by evolutionary laws, physical rules, and the population behavior of social organisms. For example, the genetic algorithm (GA) based on Darwin’s laws of evolution [23], the Newton–Raphson-based optimizer (NRBO) inspired by Newton–Raphson’s approach [24], the black widow optimization (BWO) algorithm derived from the evolutionary process of spider populations [25], and Coyote and Badger Optimization (CBO), which is associated with the cooperative behaviors observed in honey badgers and coyotes [26]. Optimization problems with different levels of complexity and different types have different demands on the performance of optimization algorithms, and therefore more novel algorithms and variants are constantly being developed. The football team training algorithm (FTTA) opens up new options for solving optimization problems that stem from the training methods of football teams [27]. Hu et al. modified the marine predators algorithm and adapted it for optimizing approximate developable surfaces [28]. The poplar optimization algorithm (POA) simulates the sexual and asexual reproduction mechanisms of poplar trees and has shown competitive performance for image segmentation [29]. HGWODE was proposed as a hybrid algorithm based on differential evolutionary (DE) [30] algorithms and GWO and applied to UAV path planning [31]. Atom search optimization (ASO), which takes its inspiration from fundamental molecular dynamics, has been successfully performed for hydrogeologic parameter estimation [32]. Motivated by the reduced order of SB curve, an enhanced chimp optimization algorithm has been proposed called SOCSCHOA [33].
The chameleon swarm algorithm (CSA) [34] is one new MA that models the predatory behavior of chameleons. The performance demonstrated on the test functions and engineering applications of CSA illustrates its competitiveness, and the combination of the two search methods gives it a strong exploratory capability. And, its demonstrated performance on test functions and engineering applications illustrates its competitiveness. Currently, CSA has been introduced successfully for short-term wind speed prediction [35], 3D CNN networks for volume segmentation [36], optimal configuration design for stand-alone microgrid systems [37], and medical image fusion [38], as well as for problems. However, the over-reliance on optimal values in the optimization search process makes CSA suffer from the problem of lack of population diversity and that of premature convergence. In addition, like most MAs, being caught in a local optimum when faced with difficult optimization questions is a major drawback that affects its ability to find an optimum. For this reason, Hu et al. proposed an enhanced hybrid algorithm called CCECSA by mixing CSA with the crisscross optimization algorithm in finding the amount of degree reduction in DWB curves [18]; R. Mostafa et al. exploited the consumption operator to boost the global search capability of CSA and used it for feature selection [39]. A hybrid method CSMO in which CSA and mayfly optimization (MO) are built has also been proposed to face the problem of economic scheduling of CHP [40]. Also, as an improved version of CSA, MCSA [41] introduces several strategies to boost its population diversity and local exploration capabilities, like fractional-order (FO) calculus, sinusoidal adjustment, and a crossover-based comprehensive learning (CCL) strategy. Extensive experiments in the literature have demonstrated that MCSA exhibits highly advantageous performance compared to some of the advanced MAs and other improved versions of CSA.

1.3. Paper Contribution and Organization

This paper will employ MCSA as a means of solving the shape optimization problem of CDWB curves. The main problems and methods studied in this paper are shown in Figure 1. And chief contributions are summarized as follows:
  • The CDWB curve is defined on the basis of the concept of the DWB curve, together with a discussion of overall G1 and G2 continuity on the combined curve.
  • The shape optimization models of CDWB curves are established using the energy method. In order to seek a better optimization effect, the model is solved by introducing MCSA.
  • Three numerical examples are designed using CDWB curves, through which the optimization capability of MCSA is demonstrated.
The remaining sections of the arrangement are listed below. Section 2 introduces the definitions of DWB and CDWB curves, and discusses the geometric continuity conditions for CDWB curves. Section 3 first establishes the shape optimization models for CDWB curves, followed by a detailed introduction of MCSA, and finally proposes a method for solving CDWB curve shape optimization based on the MCSA and gives three numerical examples. The conclusion is presented in Section 4.

2. CDWB Curves

2.1. DWB Curves

Definition 1.
In R2, given n + 1 control disks  ( P i ) = ( p i , r i ) , ( i = 0 , 1 , , n ) , the DWB curve with degree n is specifically given by
( W ) ( t ) = i = 0 n W i , n ( t ) ( P i ) = i = 0 n W i , n ( t ) ( p i , r i ) , ( 0 t 1 ) ,
where p i = ( x i , y i ) represents the control vertexes and ri is the control radius, and { W i , n ( t ) } i = 0 n indicates the Wang–Ball basis functions, in which
W i , n ( t ) = ( 2 t ) i ( 1 t ) i + 2 , 0 i n / 2 1 , ( 2 t ) n / 2 ( 1 t ) n / 2 , i = n / 2 , ( 2 ( 1 t ) ) n / 2 t n / 2 , i = n / 2 , W n i n ( 1 t ) , n / 2 + 1 i n ,
where x and x , respectively, refer to maximum integers less than or equal to x and a minimum integer greater than or equal to x.
Moreover, the form of Equation (1) can be formulated as follows:
( W ) ( t ) = ( C ( t ) , R ( t ) ) = ( i = 0 n W i n ( t ) p i , i = 0 n W i n ( t ) r i ) , ( 0 t 1 ) ,
where C(t) and R(t), respectively, imply the center curve and radius function.
Theorem 1.
The DWB curve defined by Equation (1) shall satisfy the following endpoint properties:
( W ) ( 0 ) = ( p 0 , r 0 ) , ( W ) ( 1 ) = ( p n , r n ) , ( W ) ( 0 ) = 2 ( ( p 1 , r 1 ) ( p 0 , r 0 ) ) , ( W ) ( 1 ) = 2 ( ( p n , r n ) ( p n 1 , r n 1 ) ) , ( W ) ( 0 ) = 2 ( ( p 0 , r 0 ) 6 ( p 1 , r 1 ) + 4 ( p 2 , r 2 ) + ( p n , r n ) ) ( n 4 ) , ( W ) ( 1 ) = 2 ( ( p 0 , r 0 ) + 4 ( p n 2 , r n 2 ) 6 ( p n 1 , r n 1 ) + ( p n , r n ) ) ( n 4 ) .
Proof. 
A simple calculation of the Wang–Ball basis function with order n given in Equation (2) results in
W i , n ( 0 ) = 1 , ( i = 0 ) 0 , ( i 0 ) , W i , n ( 1 ) = 1 , ( i = n ) 0 , ( i n ) , W i , n ( 0 ) = 2 , ( i = 0 ) 2 , ( i = 1 ) 0 , ( i = 2 , , n ) , W i , n ( 1 ) = 0 , ( i = 0 , , n 2 ) 2 , ( i = n 1 ) 2 , ( i = n ) , W i , n ( 0 ) = 2 , ( i = 0 ) 12 , ( i = 1 ) 8 , ( i = 2 ) 0 , ( i = 3 , , n 1 ) 2 , ( i = n ) , ( n 4 ) , W i , n ( 1 ) = 2 , ( i = 0 ) 0 , ( i = 1 , , n 3 ) 8 , ( i = n 2 ) 12 , ( i = n 1 ) 2 , ( i = n ) , ( n 4 ) .
With the combined Equation (1), the conclusion in Equation (4) can be deduced, and thus Theorem 1 is proved. □

2.2. Construction of CDWB Curves

Complex designs are often difficult to achieve with a single DWB curve, and the splicing of multiple curves can meet more of the design requirements. This section, therefore, defines the CDWB curve generated by stitching multiple DWB curves and discusses the stitching conditions.
Definition 2.
Provided the following m + 1 nodes,
τ 0 < τ 1 < τ 2 < < τ j < τ j + 1 < < τ m 1 < τ m ,
then the CDWB curve is expressed as
( W ¯ ) ( τ ) = ( W ) 1 ( τ τ 0 h 1 ) , τ [ τ 0 , τ 1 ] , ( W ) j ( τ τ j 1 h j ) , τ [ τ j 1 , τ j ] ( W ) m ( τ τ m 1 h m ) , τ [ τ m 1 , τ m ] , ,
where  h j = τ j τ j 1 .
The CDWB curve in Equation (5) as well can be abbreviated as
Π ˜ : ( W ) j ( τ τ j 1 h j ) = i = 0 n ( P i , j ) W i , n ( τ τ j 1 h j ) , ( i = 0 , , n , j = 1 , , m )
where ( P i , j ) represents the i + 1th control disk of the jth DWB curve segment.
According to the representation of the DWB curve in Equation (3), the CDWB could also be shown as
( W ¯ ) ( τ ) = ( C ¯ ( τ ) , R ¯ ( τ ) ) ,
where
C ¯ ( τ ) = C 1 ( τ τ 0 h 1 ) , τ τ 0 , τ 1 , C j ( τ τ j 1 h j ) , τ τ j 1 , τ j , C m ( τ τ m 1 h m ) , τ τ m 1 , τ m ,
R ¯ ( τ ) = R 1 ( τ τ 0 h 1 ) , τ τ 0 , τ 1 , R j ( τ τ j 1 h j ) , τ τ j 1 , τ j , R m ( τ τ m 1 h m ) , τ τ m 1 , τ m .

2.2.1. CDWB Curves with G1 Geometric Continuity

Theorem 2.
For a CDWB curve consisting of a combination of m DWB curves, when the control disks of the jth and j + 1th (j = 1, 2, ..., m − 1) curves satisfy the following constraint:
( p 0 , j + 1 , , r 0 , j + 1 ) = ( p n , j , , r n , j ) , ( p 1 , j + 1 , r 1 , j + 1 ) = ( h j + 1 α 1 h j ( p n , j p n 1 , j ) + p 0 , j + 1 , h j + 1 α 2 h j ( r n , j r n 1 , j ) + r 0 , j + 1 ) ,
then the CDWB curve achieves G1 smooth continuity at the nodes  τ j , where  α 1  and  α 2  are arbitrary constants, and α 1 > 0 , α 2 > 0 . If the CDWB curve reaches G1 smooth continuity at any node, then the CDWB curve is G1 smoothly continuous.
Proof. 
To make the jth and j + 1th DWB curves of ( W ¯ ) ( τ ) = ( C ¯ ( τ ) , R ¯ ( τ ) ) achieve G1 smooth continuity at the node τ j , they should first be guaranteed to be G0 continuous. This means that the last control disk of the jth DWB curve is equal to the first one of the j + 1th DWB curve, as follows:
( p n , j , r n , j ) = ( p 0 , j + 1 , r 0 , j + 1 ) .
Secondly, the G1 continuity should be satisfied at the junction τ j of the CDWB curve, meaning that the jth and j + 1th curves should have a common tangent vector at τ j ,
( C ¯ ( τ j ) , R ¯ ( τ j ) ) = ( α 1 C ¯ ( τ j + ) , α 2 R ¯ ( τ j + ) ) ,
where α 1 and α 2 are arbitrary constants and α 1 > 0 , α 2 > 0 .
By the endpoint property of the DWB curve, it follows that
( C ¯ ( τ j ) , R ¯ ( τ j ) ) = ( 2 h j ( p n , j p n 1 , j ) , 2 h j ( r n , j r n 1 , j ) ) , ( C ¯ ( τ j + ) , R ¯ ( τ j + ) ) = ( 2 h j + 1 ( p 1 , j + 1 p 0 , j + 1 ) , 2 h j + 1 ( r 1 , j + 1 r 0 , j + 1 ) ) .
Integrating Equation (13) and Equation (12) results in
( p 1 , j + 1 , r 1 , j + 1 ) = ( h j + 1 α 1 h j ( p n , j p n 1 , j ) + p 0 , j + 1 , h j + 1 α 2 h j ( r n , j r n 1 , j ) + r 0 , j + 1 ) .
Thus, when the CDWB curve satisfies both Equations (11) and (14) at the node τ j , it is possible to make the splicing of the jth and the j + 1th curves achieve G1 smooth continuity, and Theorem 2 is proved. □
Note 1.
In Theorem 1, the CDWB curve reaches the G1 smooth continuity condition in Equation (10), which is equivalent to
p 0 , j + 1 = p n , j , p 1 , j + 1 = h j + 1 α 1 h j ( p n , j p n 1 , j ) + p 0 , j + 1 ,
r 0 , j + 1 = r n , j , r 1 , j + 1 = h j + 1 α 2 h j ( r n , j r n 1 , j ) + r 0 , j + 1 .
Figure 2 and Figure 3 show the design of the letter ‘S’ based on a CDWB curve, which is a combination of two DWB curves and satisfies the G1 smooth continuum as a whole. The difference between the two figures is in the values of the parameters α 1 and α 2 . As can be observed from the graphs, there is also a significant difference in the effect produced when α 1 and α 2 are set to different values.

2.2.2. CDWB Curves with G2 Geometric Continuity

Theorem 3.
If the control disks of the jth and j + 1th adjacent curves (j = 1, 2, ..., m − 1) of the CDWB curve satisfies the following constraint:
( p 0 , j + 1 , r 0 , j + 1 ) = ( p n , j , r n , j ) , ( p 1 , j + 1 , r 1 , j + 1 ) = ( h j + 1 α 1 h j ( p n , j p n 1 , j ) + p 0 , j + 1 , h j + 1 α 2 h j ( r n , j r n 1 , j ) + r 0 , j + 1 ) , ( p 2 , j + 1 , r 2 , j + 1 ) = ( h j + 1 2 4 α 1 2 h j 2 ( p 0 , j + 4 p n 2 , j 6 p n 1 , j + p n , j ) 1 4 ( p 0 , j + 1 6 p 1 , j + 1 + p n , j + 1 ) β 1 h j + 1 4 α 1 2 ( p 1 , j + 1 p 0 , j + 1 ) , h j + 1 2 4 α 2 2 h j 2 ( r 0 , j + 4 r n 2 , j 6 r n 1 , j + r n , j ) 1 4 ( r 0 , j + 1 6 r 1 , j + 1 + r n , j + 1 ) β 2 h j + 1 4 α 2 2 ( r 1 , j + 1 r 0 , j + 1 ) ) ,
then the CDWB curve is G2 continuity at knot  τ j , where  α 1 , α 2 , β 1 , β 2  are arbitrary constants and  α 1 > 0 , α 2 > 0 . If the CDWB curve reaches G2 continuity at any node  τ j ( j = 1 , 2 , , m ) , it will be G2 continuity for the CDWB curve as a whole.
Proof. 
For CDWB curves, they should first satisfy G1 smooth continuity at the nodes if they are to achieve G2 continuity, i.e., Equation (10).
Second, respectively, denote by D1 and D2 as the binormal vectors of the jth and the j + 1th DWB curves; then, it follows that
D 1 = ( C ¯ ( τ j ) , R ¯ ( τ j ) ) × ( C ¯ ( τ j ) , R ¯ ( τ j ) ) , D 2 = ( C ¯ ( τ j + ) , R ¯ ( τ j + ) ) × ( C ¯ ( τ j + ) , R ¯ ( τ j + ) ) .
G2 continuity further requires that D1 and D2 have the same orientation at the node τ j . According to Equations (12) and (18), it follows that the four vectors ( C ¯ ( τ j ) , R ¯ ( τ j ) ) , ( C ¯ ( τ j ) , R ¯ ( τ j ) ) , ( C ¯ ( τ j + ) , R ¯ ( τ j + ) ) , ( C ¯ ( τ j + ) , R ¯ ( τ j + ) ) are coplanar. Thus,
( C ¯ ( τ j ) , R ¯ ( τ j ) ) = ( ( u 1 C ¯ ( τ j + ) , u 2 R ¯ ( τ j + ) ) + ( β 1 C ¯ ( τ j + ) , β 2 R ¯ ( τ j + ) ) .
And, alternatively,
( C ¯ ( τ j ) , R ¯ ( τ j ) ) = ( u 1 C ¯ ( τ j + ) + β 1 C ¯ ( τ j + ) , u 2 R ¯ ( τ j + ) + β 2 R ¯ ( τ j + ) ) ,
where u1, u2, β1, β2 are arbitrary constants and u1 > 0, u2 > 0.
At node l j , supposing that the curvatures of the jth and the j + 1th center curves are κ c ( τ j ) and κ c ( τ j + ) , respectively, then
κ c ( τ j ) = C ¯ ( τ j ) × C ¯ ( τ j ) C ¯ ( τ j ) 3 , κ c ( τ j + ) = C ¯ ( τ j + ) × C ¯ ( τ j + ) C ¯ ( τ j + ) 3 .
In accordance with Equations (12) and (20), the curvature κ c ( τ j ) is given as
κ c ( τ j ) = α 1 C ¯ ( τ j + ) × [ u 1 C ¯ ( τ j + ) + β 1 C ¯ ( τ j + ) ] α 1 3 C ¯ ( τ j + ) 3 = u 1 C ¯ ( τ j + ) × C ¯ ( τ j + ) α 1 2 C ¯ ( τ j + ) 3 .
When the jth curve is G2 continuous with the j + 1th curve at the splice point, κ c ( τ j ) and κ c ( τ j + ) carries an identical value. So, it follows that u 1 = α 1 2 , according to Equations (21) and (22).
For the radius function, the same is true for u 2 = α 2 2 . Substituting them into Equation (20) gives
( C ¯ ( τ j ) , R ¯ ( τ j ) ) = ( α 1 2 C ¯ ( τ j + ) + β 1 C ¯ ( τ j + ) , α 2 2 R ¯ ( τ j + ) + β 2 R ¯ ( τ j + ) ) .
Finally, by the endpoint property of the CDWB curve, there is
( C ¯ ( τ j ) , R ¯ ( τ j ) ) = ( 2 h j 2 ( p 0 , j + 4 p n 2 , j 6 p n 1 , j + p n , j ) , 2 h j 2 ( r 0 , j + 4 r n 2 , j 6 r n 1 , j + r n , j ) ) , ( C ¯ ( τ j + ) , R ¯ ( τ j + ) ) = ( 2 h j + 1 2 ( p 0 , j + 1 6 p 1 , j + 1 + 4 p 2 , j + 1 + p n , j + 1 ) , 2 h j + 1 2 ( r 0 , j + 1 6 r 1 , j + 1 + 4 r 2 , j + 1 + r n , j + 1 ) ) .
The result of Equation (13) is combined and substituted into Equation (24) to obtain
( p 2 , j + 1 , r 2 , j + 1 ) = ( h j + 1 2 4 α 1 2 h j 2 ( p 0 , j + 4 p n 2 , j 6 p n 1 , j + p n , j ) 1 4 ( p 0 , j + 1 6 p 1 , j + 1 + p n , j + 1 ) β 1 h j + 1 4 α 1 2 ( p 1 , j + 1 p 0 , j + 1 ) , h j + 1 2 4 α 2 2 h j 2 ( r 0 , j + 4 r n 2 , j 6 r n 1 , j + r n , j ) 1 4 ( r 0 , j + 1 6 r 1 , j + 1 + r n , j + 1 ) β 2 h j + 1 4 α 2 2 ( r 1 , j + 1 r 0 , j + 1 ) ) ,
where α 1 , α 2 , β 1 , β 2 are arbitrary constants and α 1 > 0 , α 2 > 0 .
Thus, when the CDWB curve satisfies both Equations (10) and (25) at the node τ j , it is possible to make the splicing of the jth DWB curve with the j + 1th DWB curve achieve G2 smooth continuity, and Theorem 3 is proved. □
Note 2.
The G2 continuity condition in Theorem 2 is equivalent to
p 0 , j + 1 = p n , j , p 1 , j + 1 = h j + 1 α 1 h j ( p n , j p n 1 , j ) + p 0 , j + 1 , p 2 , j + 1 = h j + 1 2 4 α 1 2 h j 2 ( p 0 , j + 4 p n 2 , j 6 p n 1 , j + p n , j ) 1 4 ( p 0 , j + 1 6 p 1 , j + 1 + p n , j + 1 ) β 1 h j + 1 4 α 1 2 ( p 1 , j + 1 p 0 , j + 1 ) ,
r 0 , j + 1 = r n , j , r 1 , j + 1 = h j + 1 α 2 h j ( r n , j r n 1 , j ) + r 0 , j + 1 , r 2 , j + 1 = h j + 1 2 4 α 2 2 h j 2 ( r 0 , j + 4 r n 2 , j 6 r n 1 , j + r n , j ) 1 4 ( r 0 , j + 1 6 r 1 , j + 1 + r n , j + 1 ) β 2 h j + 1 4 α 2 2 ( r 1 , j + 1 r 0 , j + 1 ) .
Figure 4 and Figure 5 show the design “C” curve using a CDWB curve that satisfies the G2 continuum as a whole, and they show the profile shape for different parameter values.
By adjusting the control vertices and radii, multiple DWB curves combined to create CDWB curves that satisfy different continuity conditions, allowing various shapes to be designed, as shown in Figure 6.

3. Shape Optimization of CDWB Curves

3.1. Modeling of CDWB Curves Shape Optimization

Considering the curve as an elastic spline, the strain energy of the elastic spline is available as its energy function. Typically, curves with smaller energy values have better overall smoothness. As described in Section 2.1, a DWB curve consists of a center curve and radius function, and then its energy, as well, can take the form of the energy values of these two components. Therefore, the energy value E n e r g y C R of a DWB curve is defined as follows:
E n e r g y C R = E n e r g y C + E n e r g y R ,
where E n e r g y C and E n e r g y R denote the energy of C ( t ) and the energy of R(t), respectively, with the following mathematical equations:
E n e r g y C = k c 2 ( s ) d s = 0 1 ( x ( t ) y ( t ) y ( t ) x ( t ) ) 2 ( x ( t ) 2 + y ( t ) 2 ) 5 / 2 d t ,
where kc stands for the curvature of C ( t ) ,
E n e r g y R = | | R ( t ) | | 2 d t = 0 1 | | ( i = 0 n W i , n r i ) | | 2 d t .
To achieve the overall G1, G2 smooth splice of the CDWB curve, optimization models of ( W ¯ ) ( l ) = ( C ¯ ( l ) , R ¯ ( l ) ) based on the smoothest curve can be established. E ˜ n e r g y C R denotes the energy of the CDWB curve ( W ¯ ) ( l ) as a whole, and the energies of C ¯ ( l ) and R ¯ ( l ) are indicated by E ˜ n e r g y C and E ˜ n e r g y R , respectively; then the models will be as follows:
(a)
Whole G1 smooth blending:
Minimize E ˜ n e r g y C R = E ˜ n e r g y C + E ˜ n e r g y R = j = 1 m E n e r g y C j + j = 1 m E n e r g y R j = j = 1 m τ j 1 τ j ( x j ( τ τ j 1 h j ) y j ( τ τ j 1 h j ) y j ( τ τ j 1 h j ) x j ( τ τ j 1 h j ) ) 2 ( x j ( τ τ j 1 h j ) 2 + y j ( τ τ j 1 h j ) 2 ) 5 / 2 d τ + j = 1 m τ j 1 τ j | | R j ( τ τ j 1 h j ) | | 2 d τ , s . t .   ( p 0 , j + 1 , r 0 , j + 1 ) = ( p n , j , r n , j ) , ( p 1 , j + 1 , r 1 , j + 1 ) = ( h j + 1 α 1 h j ( p n , j p n 1 , j ) + p 0 , j + 1 , h j + 1 α 2 h j ( r n , j r n 1 , j ) + r 0 , j + 1 ) ,
where α 1 , α 2 are arbitrary constants and α 1 > 0 , α 2 > 0 .
(b)
Whole G2 smooth blending:
Minimize E ˜ n e r g y C R = j = 1 m τ j 1 τ j ( x j ( τ τ j 1 h j ) y j ( τ τ j 1 h j ) y j ( τ τ j 1 h j ) x j ( τ τ j 1 h j ) ) 2 ( x j ( τ τ j 1 h j ) 2 + y j ( τ τ j 1 h j ) 2 ) 5 / 2 d τ + j = 1 m τ j 1 τ j | | R j ( τ τ j 1 h j ) | | 2 d τ , s . t .   ( p 0 , j + 1 , r 0 , j + 1 ) = ( p n , j , r n , j ) , ( p 1 , j + 1 , r 1 , j + 1 ) = ( h j + 1 α 1 h j ( p n , j p n 1 , j ) + p 0 , j + 1 , h j + 1 α 2 h j ( r n , j r n 1 , j ) + r 0 , j + 1 ) , ( p 2 , j + 1 , r 2 , j + 1 ) = ( h j + 1 2 4 α 1 2 h j 2 ( p 0 , j + 4 p n 2 , j 6 p n 1 , j + p n , j ) 1 4 ( p 0 , j + 1 6 p 1 , j + 1 + p n , j + 1 ) β 1 h j + 1 4 α 1 2 ( p 1 , j + 1 p 0 , j + 1 ) , h j + 1 2 4 α 2 2 h j 2 ( r 0 , j + 4 r n 2 , j 6 r n 1 , j + r n , j ) 1 4 ( r 0 , j + 1 6 r 1 , j + 1 + r n , j + 1 ) β 2 h j + 1 4 α 2 2 ( r 1 , j + 1 r 0 , j + 1 ) ) ,
where α 1 , α 2 , β 1 , β 2 are arbitrary constants and α 1 > 0 , α 2 > 0 .

3.2. Mathematical Model of MCSA

MCSA is an improved algorithm based on CSA, which is suggested as an attempt to overcome the weaknesses of CSA, like becoming stuck in local optima, lack of population diversity, and premature convergence [41]. Three strategies are introduced in MCSA: the flexible adjustment of parameters by the sine function instead of its fixed value to balance the exploratory and exploitation better, FO calculus, using the historical iterations to accelerate global convergence, and the CCL strategy, mutating the current optimum of individuals to increase population diversity. N and d represent the population size and dimension, respectively. And y i g = [ y i , 1 g , y i , 2 g , , y i , d g ] indicates the position of chameleon i. Given a maximum number of iterations Maxg, MCSA iterates to find the optimal value based on the following model.

3.2.1. Searching Stage Guided by Sinusoidal Adjustment

The search phase of the CSA simulates the behavior of chameleons wandering around deserts, woods, and so on looking for prey. It is updated by using optimal individual guidance or random wandering under the influence of perceived probability P p . In this case, the impact of the global optimal on the current optimal of the individual depends on the value of the parameter p1. And the original paper experimentally determined a fixed value for it. It is well known that the values of the parameters taken in the face of different problems can have a significant impact.
As a periodic function, the sine function can also change the direction of exploration while adjusting the value of the parameter. The use of sinusoidal adjustment instead of a fixed value of the parameter p1 provides a degree of flexibility in the value of the parameter within the allowed range and makes full use of the search area. Thus, the combination of the two at this stage produces the following equation for the position update.
y i g + 1 = y i g + p 1 ( P i g G g ) r 2 + p 2 ( G g y i g ) r 1 r i P p , y i g + μ ( ( u b l b ) r 3 + l b ) sgn ( r a n d 0.5 ) r i < P p ,
where ub and lb denote the upper and lower bounds of the variables. P i g denotes the best position of individual i, G g denotes the global best. p 2 is a constant. r 1 , r 2 , r 3 and r i are uniformly generated in the range [0, 1]. p1 and μ are calculated using Equations (34) and (35), respectively;
p 1 = 1 2 ( sin ( 2 π × f r e q × t ) g M a x g + 1 ) ,
where freq denotes the frequency,
μ = γ e ( b g M a x g ) β ,
in which γ , b , and β are constants.

3.2.2. Rotation of Chameleon’s Eyes

With the ability to rotate independently, the two eyes of the chameleon possess a range of vision. It takes advantage of the oversized perspective to locate the prey and then rotate and move quickly to the prey’s location. The mathematical model for this phase is shown in Equation (36).
y i g + 1 = y r i g + y ¯ i g ,
where y r i t stands for the coordinates of the rotation center, as shown in the following equation:
y r i g = m × y c i g ,
where y c i t and m , respectively, represent the central coordinates and rotation matrix at the gth generation.

3.2.3. Attacking Stage in Combination with FO Calculus

The chameleon’s tongue can extend twice as far as its own body and relies on the powerful suction produced by the tip of the tongue to suck in its prey. The speed of the chameleon is calculated by the following equation:
v i g + 1 = ω v i g + c 1 ( G g y i g ) r 1 + c 2 ( P i g y i g ) r 2
where ω is the inertia weight:
ω = ( 1 g M a x g ) ( ρ g M a x g ) ,
where ρ refers to a positive value dominating the ability to exploit.
The combination of FO calculus and evolutionary methods is a way to make full use of the speed term generated by historical iterations to accelerate convergence. Thus, MCSA combines FO calculus with the velocity update formula in standard CSA to produce a hybrid form, as follows:
v i g + 1 = α v i g + 1 2 α ( 1 α ) v i g 1 + 1 6 α ( 1 α ) ( 2 α ) v i g 2 + 1 24 α ( 1 α ) ( 2 α ) ( 3 α ) v i g 3 + c 1 ( G g y i g ) r 1 + c 2 ( P i g y i g ) r 2 ,
where the order α lies between [ 0 , 1 ] .
As shown in Equation (40), the attack velocity of the chameleon is updated using the velocity term of historical iterations to accelerate the convergence trend. At the same time, it updates the position of the chameleon depending on the attack speed, which can be calculated using Equation (41):
y i g + 1 = y i g + ( ( v i g ) 2 ( v i g 1 ) 2 ) / ( 2 a ) ,
a = 2590 × ( 1 e log ( g ) ) .

3.2.4. CCL Strategy

During the iteration, the entire population’s search direction relies on the optimal individual to move forward. As the optimum is approached, the individual optimum, which lacks empirical information and the ability to learn independently, may become trapped in a local optimum. With this in mind, MCSA introduces a CCL strategy. As a variation strategy, the CCL strategy uses the information shared among different individuals and dimensions as a means of generating new individuals which can effectively improve the problem of dimensional stagnation. The mutation operation creates a new individual, N p i g , as shown in Equation (43),
N p i g = r 1 p i g + ( 1 r 1 ) p l g + c ( p i g p l g ) , if r a n d λ c , r 2 p i , j g + ( 1 r 2 ) p i , j 1 g , otherwise ,
where c belongs to [−1,1] and ri (i = 1,2) is a random number between [0,1]. j 1 is a randomly chosen integer in [1,d] and λ c is cross-probability.
Subsequently, the greedy operation is executed and the better individual goes to the next iteration. That is,
p i g = N p i g , if ( f i t ( N p i g ) < f i t ( p i g ) ) , p i g , else .
A more detailed description of the MCSA is provided in Algorithm 1.
Algorithm 1: Pseudo-code of MCSA
Input: Related parameters, such as d, N, Maxg, Pp, α , λ c , f r e q
Output: Optimal fitness value fitbest
1: Randomly initialize
2: Calculate the fitness values of each chameleon’s position, record the best value
3: while ( g < M a x g ) do
4:  Define the value of p 1 , μ according to Equations (34) and (35)
5:  Define the inertia weight ω and the acceleration rate a according to Equations (39) and (42)
6:  for i = 1 : N do
7:     y i g + 1 = y i g + p 1 ( P i g G g ) r 2 + p 2 ( G g y i g ) r 1 r i P p y i g + μ ( ( u b l b ) r 3 + l b ) sgn ( r a n d 0.5 ) r i < P p
8:     y i g + 1 = y r i g + y ¯ i g
9:    if ( g 4 ) do
10:      v i g + 1 = ω v i g + c 1 ( G g y i g ) r 1 + c 2 ( P i g y i g ) r 2
11:    else
12:      v i g + 1 = α v i g + 1 2 α ( 1 α ) v i g 1 + 1 6 α ( 1 α ) ( 2 α ) v i g 2 + 1 24 α ( 1 α ) ( 2 α ) ( 3 α ) v i g 3 + c 1 ( G g y i g ) r 1 + c 2 ( P i g y i g ) r 2
13:    end if
14:    y i g + 1 = y i g + ( ( v i g ) 2 ( v i g 1 ) 2 ) / ( 2 a )
15:  end for
16:  Compute the fitness values and update the best value
17:  Find the best position p i g for each individual so far
18:  for i = 1 : N do
19:    N p i g = r 1 p i g + ( 1 r 1 ) p l g + c ( p i g p l g ) , if r a n d λ c r 2 p i , j g + ( 1 r 2 ) p i , j 1 g , otherwise
20:    if ( f i t ( N p i g ) < f i t ( p i g ) ) do
21:      p i g = N p i g
22:   end if
23:  end for
24:    g = g + 1
25: end while

3.3. Steps for Solving the Optimization Models by MCSA

Using the minimized curve energy as the objective function, we will employ MCSA on the solution of the optimization model formulated in Section 3.1. The exact implementation steps take place along the following lines:
Step1: Set parameter values and generate the initial population with random initialization.
Step2: The energy function E of the CDWB curve is taken into account as the objective function; calculate the fitness value.
Step3: Calculate the values of p 1 , μ on the basis of Equations (34) and (35), respectively, and identify the chameleon’s position using Equation (33).
Step4: Calculate the new location of each chameleon after the rotation from Equation (36).
Step5: Calculate the inertia weights ω according to Equation (40) and the acceleration according to Equation (43). If the number of iterations g 4 , use Equation (38) to determine the speed of attack; otherwise, apply Equation (40). Then, the positional transformation after the attack is calculated in accordance with Equation (41).
Step6: Calculate the fitness value, and determine p i g and the optimal solution.
Step7: Execute the CCL strategy to generate a new individual optimum N p i g using Equation (43). If E ( N p i g ) < E ( p i g ) , replace N p i g with p i g for the next iteration. Otherwise, leave it unchanged.
Step8: Determine whether the termination condition g < M a x g holds. If it holds, g = g + 1 while switching to step 3. Alternatively, output the optimal result at the end of the iteration.
A flow chart of MCSA used to solve the CDWB curves optimized model is given in Figure 7.

3.4. Numerical Examples

In this section, the optimization models developed in Section 3.1 are solved using MAs. The validity of MCSA is verified by 3 numerical examples with different successive conditions and levels of complexity. In addition, a number of advanced algorithms are selected for comparison, including the Sine Cosine Algorithm (SCA) [42], DE, White Shark Optimizer (WSO) [43], Arithmetic Optimization Algorithm (AOA) [44], Golden jackal optimization (GJO) [45], Sooty Tern Optimization Algorithm (STOA) [46], Greywolf optimizer (GWO) [47] and Multi-verse optimizer (MVO) [48]. The population size for each algorithm in the numerical experiments is 50.
Example 1.
This is an example of optimizing the shape of a Chinese character “gong” designed from a CDWB curve with thickness to meet the overall G1 smooth continuity. This CDWB curve contains 4 DWB curves. To satisfy the overall G1 continuity, the first two control disks of curve (W)j (j = 2,3,4) satisfy Equation (41) to ensure smooth continuity at the nodes. The curve (W)1 and the ith control disk of the jth (j = 2,3,4) curve are first given (i = 2,3,4), and then the corresponding energy minimization model is built according to Equation (31).
The optimization results obtained using eight algorithms, including MCSA, GWO, and WSO, are given in Figure 8a–h, while Figure 8i shows the trend of convergence during the iterative process. The optimal values of the stochastic parameters and their corresponding minimum energies are listed in Table 1. From the control disks that can be observed in the figures, it can be seen that the optimized parameters affect the control vertices, as well as the radius, and thus the direction and thickness of the curve. More obvious is the third DWB curve after the optimization of the WSO and other algorithms. The differences between the algorithms are found to be small in terms of the final shape, and the visual data in Table 1 shows that MCSA gained the smallest energy of the eight algorithms.
Example 2.
This case uses CDWB curve to design a “snake” pattern, which consists of five DWB curves stitched together and satisfying G2 smooth continuum as a whole. An optimization model is developed with the objective of minimizing the energy of the curve, as expressed in Equation (33). According to the constraints, the optimization variables for this model are the parameters α1, α2, β1, and β2 for the jth (j = 2,3,4,5) DWB curve satisfying G2 geometric continuity condition.
The optimal parameter variables and the minimum energy obtained by the eight MAs are given in Table 2. Furthermore, the optimized results are visualized in Figure 9a–h, and Figure 9i shows the convergence curves. The results for MVO illustrate that the parameter values can significantly affect the effect of the curves and even lead to distortions in the overall shape. In combination with the energy data and the results, the curves obtained by MCSA and WSO with smaller energies are smoother at the nodes compared to the other algorithms. Based on the curve energy used to determine smoothness, MCSA achieves a minimum energy of 14.751305.
Example 3.
This example is a “Chinese knot” pattern, designed by a CDWB curve, which consists of a total of eight DWB curves combined. In order to satisfy the overall G1 smooth continuity, the jth (j = 2, ..., 8) curve should satisfy Theorem 2. Given the DWB curve (W)1 and the part of the control disks of (W)j (j = 2, ..., 8), an optimization model satisfying the smooth continuity of G1 in Section 3.1 is built with the curve energy as the objective function.
Table 3 lists the optimal values of the 14 variables and their corresponding minimum energies. Figure 10a–h show the modeling results obtained for the eight different algorithms. Furthermore, Figure 10i illustrates the convergence process in the iterations. Based on the optimal results and the convergence curves, MCSA shows a more competitive performance in the face of this example. It not only achieves the minimum curve energy, but also converges to the optimal value with a fast iteration rate.

3.5. Discussion

Section 3.4 exhibits the outcomes of numerical experiments, which cogently demonstrate that intelligent algorithms present highly efficacious and prominent approaches for resolving the shape optimization conundrums of CDWB curves. When considering G1 and G2 continuities of diverse complexity levels, a comprehensive numerical comparison among multiple algorithms, taking into account parameters such as convergence rate, convergence precision, minimum energy, and the smoothness of the CDWB curves, unequivocally validates that the introduced MCSA exhibits remarkable superiority. It not only showcases rapid convergence speed and high convergence precision, but also ensures a notably enhanced smoothness of the resultant disk Wang–Ball curves, thereby conclusively establishing their capacity to achieve an outstanding optimization effect.

4. Conclusions

This paper defines CDWB curves formed by the combination of n DWB curves and investigates the G1 and G2 continuity conditions at the splice nodes. Compared to conventional curves, disk curves remain constant during geometrical transformations such as rotations and have different widths through controlled radii, while a CDWB curve can satisfy more complex modeling designs than single curves. Based on the criterion of curve smoothness, we use the energy of the curve as the objective function, and constrain it with the G1 and G2 continuity conditions to build the optimization model, respectively. In addition, the competitive optimization algorithm MCSA is introduced to solve the previously established models. MCSA is an improved version of CSA, which not only inherits the strong search capability of CSA, but also improves the capabilities of exploiting and avoiding local optima with the combination of FO calculus, sinusoidal adjustment, and CCL strategy. Through comparison with a number of classical and novel algorithms, three examples numerically demonstrate that MCSA is superior in terms of finding solutions to CDWB curve shape optimization problems. This can also be applied in fields such as engineering design and manufacturing, computer-aided design, and animation production.
Although an optimization model using the energy method has been established, the impact of the weights of the center curve and radius function energies on the CDWB curve’s total energy and other performance indicators has not been fully studied, potentially leading to suboptimal results. Therefore, further investigating the impact of the weights of the two energy components on the total energy, how the energy weights affect other performance metrics of the curve, and more effective parameter adjustment strategies to better adapt to the shape optimization problems of CDWB curves with different levels of complexity will be the next research tasks.

Author Contributions

Conceptualization, Y.L. and X.H.; Methodology, Y.L., R.Y., X.H. and G.H.; Software, R.Y. and G.H.; Validation, Y.L. and X.H.; Formal analysis, R.Y., X.H. and G.H.; Investigation, Y.L., R.Y., X.H. and G.H.; Resources, Y.L.; Data curation, R.Y. and G.H.; Writing—original draft, Y.L., R.Y., X.H. and G.H.; Writing—review & editing, Y.L., R.Y., X.H. and G.H.; Visualization, Y.L., R.Y. and G.H.; Supervision, Y.L. and G.H.; Project administration, Y.L., X.H. and G.H.; Funding acquisition, X.H. and G.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Natural Science Foundation of China (grant Nos. 52375264 and 62376212).

Data Availability Statement

All data generated or analyzed during this study were included in this published article.

Conflicts of Interest

The authors declare that there are no conflict of interests regarding the publication of this paper.

Abbreviation

AbbreviationMeaning
CDWB curvesCombined disk Wang–Ball (CDWB) curves
MCSAMulti-strategy ameliorated chameleon swarm algorithm
FO calculusFractional-order calculus
CCL strategyCrossover-based comprehensive learning strategy
SCASine Cosine Algorithm
WSOWhite Shark Optimizer
AOAArithmetic Optimization Algorithm
STOASooty Tern Optimization Algorithm
GJOGolden jackal optimization
DEDifferential evolutionary algorithms
GWOGrey wolf optimizer
MVOMulti-verse optimizer

References

  1. Ball, A.A. CONSURF, part 1: Introduction to the conic lofting title. Comput.-Aided Des. 1974, 6, 243–249. [Google Scholar] [CrossRef]
  2. Ball, A.A. CONSURF, part 2: Description of the algorithms. Comput.-Aided Des. 1975, 7, 237–242. [Google Scholar] [CrossRef]
  3. Ball, A.A. CONSURF, part 3: How the program is used. Comput.-Aided Des. 1977, 9, 9–12. [Google Scholar] [CrossRef]
  4. Wang, G.J. Ball curve of high degree and its geometric properties. Appl. Math. J. Chin. Univ. 1987, 2, 126–140. [Google Scholar]
  5. Said, H.B. Generalized ball curve and its recursive algorithm. ACM Trans. Graph. 1989, 8, 360–371. [Google Scholar] [CrossRef]
  6. Goodman, T.N.; Said, H.B. Properties of generalized Ball curves and surfaces. Comput.-Aided Des. 1991, 23, 554–560. [Google Scholar] [CrossRef]
  7. Goodman, T.N.; Said, H.B. Shape preserving properties of the generalised Ball basis. Comput. Aided Geom. Des. 1991, 8, 115–121. [Google Scholar] [CrossRef]
  8. Hu, S.M.; Wang, G.Z.; Jin, T.G. Properties of two types of generalized ball curves. Comput.-Aided Des. 1996, 28, 125–133. [Google Scholar] [CrossRef]
  9. Sederberg, T.W.; Farouki, R.T. Approximated by interval Bézier curves. IEEE Comput. Graph. Appl. 1992, 15, 87–95. [Google Scholar] [CrossRef]
  10. Tan, J.; Jiang, P. Boundary and degree reduction of the interval Ball curves. J. Comput.-Aided Des. Comput. Graph. 2006, 18, 378–384. [Google Scholar]
  11. Chen, F.; Yang, X.; Yang, W. Degree reduction of interval B-spline curves. J. Softw. 2002, 13, 490–500. [Google Scholar]
  12. Tuohy, S.T.; Maekawa, T.; Shen, G.; Patrikalakis, N.M. Approximation of measured data with interval B-splines. Comput.-Aided Des. 1997, 29, 791–799. [Google Scholar] [CrossRef]
  13. Chen, F.; Lou, W. Degree reduction of interval Bézier curves. Comput.-Aided Des. 2000, 32, 571–582. [Google Scholar] [CrossRef]
  14. Lin, Q.; Rokne, J.G. Disk bézier curves. Comput. Aided Geom. Des. 1998, 15, 721–737. [Google Scholar] [CrossRef]
  15. Chen, F.L.; Yang, W. Degree reduction of disk Bézier curves. Comput. Aided Geom. Des. 2004, 21, 263–280. [Google Scholar] [CrossRef]
  16. Chen, X.; Wang, G. Disk Bézier approximation of equidistant curves. J. Softw. 2005, 616–624. [Google Scholar] [CrossRef]
  17. Seah, H.S.; Wu, Z.; Tian, F.; Xiao, X.; Xie, B. Artistic brushstroke representation and animation with disk b-spline curve. In Proceedings of the 2005 ACM SIGCHI International Conference on Advances in Computer Entertainment Technology, Valencia, Spain, 15–17 June 2005; pp. 88–93. [Google Scholar]
  18. Hu, G.; Yang, R.; Wei, G. Hybrid chameleon swarm algorithm with multi-strategy: A case study of degree reduction for disk Wang-Ball curves. Math. Comput. Simul. 2023, 206, 709–769. [Google Scholar] [CrossRef]
  19. Terzopoulos, D.; Platt, J.; Barr, A.; Fleischer, K. Elastically deformable models. Comput. Graph. 1987, 21, 205–214. [Google Scholar] [CrossRef]
  20. Juhász, I.; Róth, Á. Adjusting the energies of curves defined by control points. Comput.-Aided Des. 2019, 107, 77–88. [Google Scholar] [CrossRef]
  21. Hu, G.; Li, M.; Wang, X.; Wei, G.; Chang, C.-T. An enhanced manta ray foraging optimization algorithm for shape optimization of complex CCG-Ball curves. Knowl.-Based Syst. 2022, 240, 108071. [Google Scholar] [CrossRef]
  22. Hu, G.; Li, M.; Zhong, J. Combined cubic generalized Ball surfaces: Construction and shape optimization using an enhanced JS algorithm. Adv. Eng. Softw. 2022, 176, 103404. [Google Scholar] [CrossRef]
  23. Rajeev, S.; Krishnamoorthy, C.S. Discrete optimization of structures using genetic algorithms. J. Struct. Eng. 1992, 118, 1233–1250. [Google Scholar] [CrossRef]
  24. Sowmya, R.; Premkumar, M.; Jangir, P. Newton-Raphson-based optimizer: A new population-based metaheuristic algorithm for continuous optimization problems. Eng. Appl. Artif. Intell. 2024, 128, 107532. [Google Scholar] [CrossRef]
  25. Hu, G.; Du, B.; Wang, X.; Wei, G. An enhanced black widow optimization algorithm for feature selection. Knowl.-Based Syst. 2022, 235, 107638. [Google Scholar] [CrossRef]
  26. Khatab, M.; El-Gamel, M.; Saleh, A.I.; El-Shenawy, A.; Rabie, A.H. Coyote and Badger Optimization (CBO): A natural inspired meta-heuristic algorithm based on cooperative hunting. Commun. Nonlinear Sci. Numer. Simul. 2025, 140, 108333. [Google Scholar] [CrossRef]
  27. Tian, Z.; Gai, M. Football team training algorithm: A novel sport-inspired meta-heuristic optimization algorithm for global optimization. Expert Syst. Appl. 2024, 245, 123088. [Google Scholar] [CrossRef]
  28. Hu, G.; Zhu, X.; Wang, X.; Wei, G. Multi-strategy boosted marine predators algorithm for optimizing approximate developable surface. Knowl.-Based Syst. 2022, 254, 109615. [Google Scholar] [CrossRef]
  29. Chen, D.; Ge, Y.; Wan, Y.; Deng, Y.; Chen, Y.; Zou, F. Poplar optimization algorithm: A new meta-heuristic optimization technique for numerical optimization and image segmentation. Expert Syst. Appl. 2022, 200, 117118. [Google Scholar] [CrossRef]
  30. 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]
  31. Yu, X.; Jiang, N.; Wang, X.; Li, M. A hybrid algorithm based on grey wolf optimizer and differential evolution for UAV path planning. Expert Syst. Appl. 2023, 215, 119327. [Google Scholar] [CrossRef]
  32. Zhao, W.; Wang, L.; Zhang, Z. Atom search optimization and its application to solve a hydrogeologic parameter estimation problem. Knowl.-Based Syst. 2019, 163, 283–304. [Google Scholar] [CrossRef]
  33. Hu, G.; Dou, W.; Wang, X.; Abbas, M. An enhanced chimp optimization algorithm for optimal degree reduction of Said-Ball curves. Math. Comput. Simul. 2022, 197, 207–252. [Google Scholar] [CrossRef]
  34. Braik, M.S. Chameleon Swarm Algorithm: A bio-inspired optimizer for solving engineering design problems. Expert Syst. Appl. 2021, 174, 114685. [Google Scholar] [CrossRef]
  35. Wang, J.; Lv, M.; Li, Z.; Zeng, B. Multivariate selection-combination short-term wind speed forecasting system based on convolution-recurrent network and multi-objective chameleon swarm algorithm. Expert Syst. Appl. 2023, 214, 119129. [Google Scholar] [CrossRef]
  36. Rajesh, C.; Sadam, R.; Kumar, S. An evolutionary Chameleon Swarm Algorithm based network for 3D medical image segmentation. Expert Syst. Appl. 2024, 239, 122509. [Google Scholar] [CrossRef]
  37. Zhou, J.; Xu, Z. Optimal sizing design and integrated cost-benefit assessment of stand-alone microgrid system with different energy storage employing chameleon swarm algorithm: A rural case in Northeast China. Renew. Energy 2023, 202, 1110–1137. [Google Scholar] [CrossRef]
  38. Dinh, P.-H. Combining spectral total variation with dynamic threshold neural P systems for medical image fusion. Biomed. Signal Process. Control 2023, 80 Pt 2, 104343. [Google Scholar] [CrossRef]
  39. Mostafa, R.R.; Ewees, A.A.; Ghoniem, R.M.; Abualigah, L.; Hashim, F.A. Boosting chameleon swarm algorithm with consumption AEO operator for global optimization and feature selection. Knowl.-Based Syst. 2022, 246, 108743. [Google Scholar] [CrossRef]
  40. Rizk-Allah, R.M.; Hassanien, A.E.; Snášel, V. A hybrid chameleon swarm algorithm with superiority of feasible solutions for optimal combined heat and power economic dispatch problem. Energy 2022, 254 Pt C, 124340. [Google Scholar] [CrossRef]
  41. Hu, G.; Yang, R.; Qin, X.; Wei, G. MCSA: Multi-strategy boosted chameleon-inspired optimization algorithm for engineering applications. Comput. Meth. Appl. Mech. Eng. 2023, 403 Pt A, 115676. [Google Scholar] [CrossRef]
  42. Mirjalili, S. SCA: A Sine Cosine Algorithm for solving optimization problems. Knowl.-Based Syst. 2016, 96, 120–133. [Google Scholar] [CrossRef]
  43. Braik, M.; Hammouri, A.; Atwan, J.; Al-Betar, M.A.; Awadallah, M.A. White Shark Optimizer: A novel bio-inspired meta-heuristic algorithm for global optimization problems. Knowl.-Based Syst. 2022, 243, 108457. [Google Scholar] [CrossRef]
  44. Abualigah, L.; Diabat, A.; Mirjalili, S.; Elaziz, M.A.; Gandomi, A.H. The Arithmetic Optimization Algorithm. Comput. Meth. Appl. Mech. Eng. 2021, 376, 113609. [Google Scholar] [CrossRef]
  45. Chopra, N.; Ansari, M.M. Golden jackal optimization: A novel nature-inspired optimizer for engineering applications. Expert Syst. Appl. 2022, 198, 116924. [Google Scholar] [CrossRef]
  46. Dhiman, G.; Kaur, A. STOA: A bio-inspired based optimization algorithm for industrial engineering problems. Eng. Appl. Artif. Intell. 2019, 82, 148–174. [Google Scholar] [CrossRef]
  47. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
  48. Mirjalili, S.; Mirjalili, S.M.; Hatamlou, A. Multi-Verse Optimizer: A nature-inspired algorithm for global optimization. Neural Comput. Appl. 2016, 27, 495–513. [Google Scholar] [CrossRef]
Figure 1. Main problems and methods.
Figure 1. Main problems and methods.
Biomimetics 10 00003 g001
Figure 2. CDWB curve with overall G1 continuity ( α 1 = α 2 = 1 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Figure 2. CDWB curve with overall G1 continuity ( α 1 = α 2 = 1 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Biomimetics 10 00003 g002
Figure 3. CDWB curve with overall G1 continuity ( α 1 = 0.5 , α 2 = 0.6 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Figure 3. CDWB curve with overall G1 continuity ( α 1 = 0.5 , α 2 = 0.6 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Biomimetics 10 00003 g003
Figure 4. CDWB curve with overall G2 continuity ( α 1 = α 2 = β 1 = 1 , β 2 = 8 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Figure 4. CDWB curve with overall G2 continuity ( α 1 = α 2 = β 1 = 1 , β 2 = 8 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Biomimetics 10 00003 g004
Figure 5. The CDWB curve with overall G2 continuity ( α 1 = 0.6 , α 2 = 0.5 , β 1 = 0.3 , β 2 = 2 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Figure 5. The CDWB curve with overall G2 continuity ( α 1 = 0.6 , α 2 = 0.5 , β 1 = 0.3 , β 2 = 2 ). (a) The center curve; (b) the control disks; (c) the CDWB curve.
Biomimetics 10 00003 g005
Figure 6. Modeling based on CDWB curves. (a) Windmill; (b) spring; (c) Chinese character “乐”.
Figure 6. Modeling based on CDWB curves. (a) Windmill; (b) spring; (c) Chinese character “乐”.
Biomimetics 10 00003 g006
Figure 7. Flow chart for solving the energy minimum model based on MCSA.
Figure 7. Flow chart for solving the energy minimum model based on MCSA.
Biomimetics 10 00003 g007
Figure 8. Chinese character “弓” based on CDWB curve with thickness. (a) GWO, (b) STOA, (c) MVO. (d) AOA, (e) SCA, (f) DE. (g) WSO, (h) MCSA, (i) convergence curves.
Figure 8. Chinese character “弓” based on CDWB curve with thickness. (a) GWO, (b) STOA, (c) MVO. (d) AOA, (e) SCA, (f) DE. (g) WSO, (h) MCSA, (i) convergence curves.
Biomimetics 10 00003 g008
Figure 9. “Snake” pattern based on CDWB curve. (a) MVO, (b) AOA, (c) GJO. (d) STOA, (e) SCA, (f) DE. (g) WSO, (h) MCSA, (i) convergence curves.
Figure 9. “Snake” pattern based on CDWB curve. (a) MVO, (b) AOA, (c) GJO. (d) STOA, (e) SCA, (f) DE. (g) WSO, (h) MCSA, (i) convergence curves.
Biomimetics 10 00003 g009
Figure 10. “Chinese knot” pattern based on CDWB curve. (a) SCA, (b) DE, (c) GJO. (d) MVO, (e) AOA, (f) STOA. (g) WSO, (h) MCSA, (i) convergence curves.
Figure 10. “Chinese knot” pattern based on CDWB curve. (a) SCA, (b) DE, (c) GJO. (d) MVO, (e) AOA, (f) STOA. (g) WSO, (h) MCSA, (i) convergence curves.
Biomimetics 10 00003 g010
Table 1. Optimized results for Chinese character “弓” with G1 continuity.
Table 1. Optimized results for Chinese character “弓” with G1 continuity.
MethodParametersOptimal Parameter VariablesEnergy
j = 2j = 3j = 4
GWOα13.4965980.5000000.50000086.520164
α20.17012519.9969421.119740
MVOα13.4873480.5000000.50000086.528426
α20.17127417.3721591.968351
AOAα13.5338880.5000000.50000086.547738
α20.27200420.0000000.636630
SCAα13.1727020.5000000.50000086.585730
α20.20633719.3716120.347748
STOAα13.484280 0.50.586.523149
α20.162019 201.449695
DEα13.3445440.5010620.50014886.558621
α20.17952415.3559441.056753
WSOα12.9218530.9908010.50485388.799267
α23.8018098.4505652.576418
MCSAα13.502395 0.5 0.586.519192
α20.171143 19.893545 0.583494
Table 2. Optimized results for “Snake” pattern with G2 continuity.
Table 2. Optimized results for “Snake” pattern with G2 continuity.
MethodParametersOptimal Parameter VariablesEnergy
j = 2j = 3j = 4j = 5
MVOα12.1635110.5710520.2771131.60187315.737175
α24.9163152.5641523.2609734.702275
β1−2.446877−2.949739−1.8291952.964973
β2−0.9581702.242326−3.011651−4.966703
AOAα11.8439300.8846930.9322931.75961319.728070
α21.05023653.0141004.938082
β10.0032302.4879 × 10−9−0.001769−0.001434
β20.000912−0.0014780.000915−0.000947
GJOα12.1066240.6731320.7341601.15235115.532742
α23.6779852.43931252.120650
β1−0.005596−5−0.0181171.689690
β2−2.094051−0.396819−0.1669061.782403
STOAα10.6684881.2557211.6612351.44542617.143764
α24.1797064.0032174.9890044.621070
β14.5898533.480160−1.2289040.148168
β2−3.8042980.227467−2.0984052.097861
SCAα12.2497200.7175361.4959181.35988116.718694
α252.8141024.2664991.688930
β10.034051−4.179311−3.0635862.014430
β20.539825−0.0710234.2319540.781479
DEα12.9742480.6022190.9979781.46598915.881302
α21.8612213.4020693.4471104.248911
β14.584556−4.903025−4.159690−2.807080
β20.8302913.0955531.1776910.287207
WSOα12.2706190.6285420.6746761.87418715.749756
α21.1624293.6288083.9264503.904971
β1−0.265529−4.413978−2.020885−4.086349
β21.9838650.776000−4.6376941.392620
MCSAα12.7733970.5777610.4844721.50558014.751305
α23.6284152.3620794.9869701.668446
β13.687531−4.998785−2.5162660.302868
β24.481423−0.9396832.0348032.515662
Table 3. Optimized results for the “Chinese knot” pattern with G1 continuity.
Table 3. Optimized results for the “Chinese knot” pattern with G1 continuity.
MethodParametersOptimal Parameter VariablesEnergy
j = 2j = 3j = 4j = 5j = 6j = 7j = 8
SCAα11.466180.7503251.272540.51.364160.47092333.74615
α20.648643.967024.85923551.888321.16434
DEα10.744811.170403.079581.455330.721091.275450.50809333.90498
α22.118674.541453.976951.809381.996233.091090.73686
GJOα10.51.055974.010451.331080.506651.259720.46537333.51432
α20.0162254.726474.985663.4600150.56538
MVOα10.51.065944.047001.293140.51.284610.46425333.55311
α20.185624.996173.413952.714113.547353.474894.68993
AOAα10.867920.9059950.864620.51.256350.45000333.79635
α21.824862.880471.661133.603774.461274.107754.10775
STOAα10.575431.079523.911101.221690.508031.271790.47016333.53220
α20.011434.983174.1603053.398093.900831.16007
WSOα11.234031.052164.405041.542130.558721.511850.51448333.89544
α21.835822.721071.749402.008363.474651.264591.17947
MCSAα10.5000011.061414.105631.309320.506661.289520.46536333.51118
α22.050825.000004.999994.999974.317174.999394.81926
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.

Share and Cite

MDPI and ACS Style

Liang, Y.; Yang, R.; Hu, X.; Hu, G. Ameliorated Chameleon Algorithm-Based Shape Optimization of Disk Wang–Ball Curves. Biomimetics 2025, 10, 3. https://doi.org/10.3390/biomimetics10010003

AMA Style

Liang Y, Yang R, Hu X, Hu G. Ameliorated Chameleon Algorithm-Based Shape Optimization of Disk Wang–Ball Curves. Biomimetics. 2025; 10(1):3. https://doi.org/10.3390/biomimetics10010003

Chicago/Turabian Style

Liang, Yan, Rui Yang, Xianzhi Hu, and Gang Hu. 2025. "Ameliorated Chameleon Algorithm-Based Shape Optimization of Disk Wang–Ball Curves" Biomimetics 10, no. 1: 3. https://doi.org/10.3390/biomimetics10010003

APA Style

Liang, Y., Yang, R., Hu, X., & Hu, G. (2025). Ameliorated Chameleon Algorithm-Based Shape Optimization of Disk Wang–Ball Curves. Biomimetics, 10(1), 3. https://doi.org/10.3390/biomimetics10010003

Article Metrics

Back to TopTop