Next Article in Journal
For Patients with Stroke, Balance Ability Affects the Leg Extension Angle on the Affected Side
Previous Article in Journal
Elderberry Concentrate Juice Industrial By-Products Characterization and Valorisation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

B-Spline Curve Fitting of Hungry Predation Optimization on Ship Line Design

Department of Mechanical Engineering, Dalian Maritime University, Dalian 116026, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(19), 9465; https://doi.org/10.3390/app12199465
Submission received: 7 August 2022 / Revised: 16 September 2022 / Accepted: 16 September 2022 / Published: 21 September 2022

Abstract

:
The ship line often describes by the offset table of discrete data points, which leads to the problems that three view coordinates may not correspond, the fitting error is large and the fitted curve cannot be easily modified. This will seriously affect the subsequent ship performance evaluation and op-timization. To solve this problem, this paper develops a B-spline curve fitting of hunger predation optimization on ship line design (HPA), which contains knot guidance technology, hungry preda-tion optimization technology and adaptive adjustment of algorithm input parameters. HPA transforms the discrete ship line into a continuous B-spline curve description, which improves the accuracy and modifiability of the ship line design. Through the real-time feedback of the results of each round of iteration, the knot vector is adaptively adjusted towards a better fitness, and then the optimal control point set that satisfies the error threshold can be obtained. The effectiveness and superiority of HPA are verified by comparing with related research and engineering software.

1. Introduction

B-spline curve approximation has been a hot research topic in the field of computer-aided geometric design in recent years. With the development of computer-aided design (CAD) and the rise of advanced manufacturing technology, B-spline is widely used in the design and manufacturing industry of free curves and surfaces [1,2,3,4,5]. In the field of shipbuilding, the design of ship lines is the basis of shipbuilding [6]. The ship lines are closely related to the dynamic characteristics and resistance characteristics of the ship. Improving the design level of ship lines and then improving the design quality of ships has become a hot research topic in the field of shipbuilding industry [7,8]. However, due to the error in the design of the ship lines or the modification in the local smoothing process, the coordinates of the corresponding points of the three views may not correspond, resulting in the reduction of the accuracy of the ship line diagram [9]. In addition, the data points in the ship line diagram are discrete, and two adjacent discrete points are connected by straight line segments, resulting in poor smoothness, which brings trouble to the subsequent ship line setting out and processing and affects the quality and efficiency of shipbuilding.
Due to the locality of B-spline, it can be more convenient to modify the curve locally. The parameter continuity of B-spline can ensure that the fitting curve has good smoothness. If the continuous B-spline method is used in the ship line design to replace the discrete offset table method, the accuracy of ship line design will be greatly improved, and the subsequent multi-disciplinary collaborative optimization and manufacturing will be facilitated.
Compared with interpolation, B-spline curve approximation can better reflect the shape of curve, but the placement of knot vector is still an urgent problem to be solved. Unreasonable knot vector arrangement may lead to unacceptable shapes [10]. Researchers put higher fitting accuracy at the same knot number [11,12], fewer knot number under the same accuracy requirements [13,14] and faster operating efficiency [15,16] as the main pursuit goals of B-spline curve fitting.
This paper develops a B-spline curve fitting of hunger predation optimization on ship line design (HPA). In the previous dynamic knot method [17,18,19,20,21,22], the initial knots are randomly selected from the interval [0, 1], so there are many unreasonable knot vectors. Therefore, large population size and iteration number are required, which leads to low efficiency of the algorithm. The knot guidance technology is designed to add knots in the area with complex model shape at the initial knot selection stage. The premature loss of population diversity in optimization algorithm leads to slow convergence and is easy to fall into local optimality. A hunger search strategy is developed to make the hungry individuals in the population approach the optimal solution more quickly, and the influence of neighbors on the position adjustment is further considered. Aiming at the problem that the previous dynamic knot method requires manual adjustment of key input parameters, such as population size and iteration number, which is troublesome and time consuming. An adaptive adjustment of key input parameters in the HPA algorithm is proposed, which can quickly adapt to the replacement of model and fitting accuracy. HPA achieves the goal of B-spline curve fitting with higher fitting accuracy at the same control points, less control points under the same accuracy requirements, faster operation efficiency and better universality; it can better solve practical engineering problems.
The rest of the paper is organized as follows. Section 2 introduces the basic B-spline theory used in HPA algorithm and research on existing B-spline curve fitting. Section 3 proposes the HPA method, including a new knot guidance technology, a hungry predation optimization technology, fitness function selection and the dimension calculation rule. Section 4 analyzes the influence of population size, iteration number and error threshold of HPA on curve fitting results, and an adaptive adjustment method of initial input parameters is proposed. Section 5 verifies the performance of HPA algorithm; we verify the superior performance of HPA algorithm in fitting accuracy and convergence speed by comparing with typical static knot method, dynamic knot method and engineering commercial software. Finally, we summarize this paper and look forward to future research directions.

2. Related Works

2.1. B-Spline Theory Knowledge

This section refers to the bibliography [23,24]. The knot vector U consists of the non-decreasing parameter ui, U: u 0   u 1   u n + ρ + 1 , where the dimensions and values of the initial knot vector are random under certain constraints. After that, they will be adjusted with each iteration. It will be introduced in detail in Section 3. So far, B-spline basis function N i , ρ ( x ) can be solved, as shown in Formula (1) and (2),
N i , 0 ( x ) = 1 ,       u i x u i + 1   ( i = 0 ,   ,   n ) 0 ,       other
                  N i , ρ ( x ) = x     u i u i + ρ     u i N i , ρ 1 ( x ) + u i + ρ + 1 x u i + ρ + 1     u i + 1 N i + 1 , ρ 1 ( x )
where the first subscript i represents the sequence number, and the second subscript ρ represents degree (order ρ + 1) of curve.
Inappropriate degree may lead to the fitting curve cannot meet the accuracy requirement. Designers prefer to use piecewise low degree curves to describe complex curves, and they do not want a curve to be divided into too many segments. Because the cubic curve is not only a plane curve with inflection point, but also the lowest degree of spatial curves, it is widely used [24].
A polynomial B-spline curve of degree ρ (or order ρ + 1) is a piecewise polynomial curve given by
  p ( x ) = i = 0 n d i N i , ρ ( x )         x [ 0 ,   1 ]  
where di is the control point of the curve and N i , ρ ( x ) is the ρ-degree-normalized B-spline basis function.
According to Formula (3), it is necessary to obtain the control point di to realize the curve fitting, and the solution of di adopts the standard least square method and endpoint constraints. Interpolate the first and last data points P 0 = p ( 0 ) , P m = p ( 1 ) , and other data points Pi (i = 1, 2, ⋯, m − 1) are approximated by the least-squares minimization method.
The given data points are parameterized by the normalized accumulation chord length, as shown in Formula (4),
  x 0   = x 0 * = 0 x i * = x i 1 * + P i 1         i = 1 ,   2 ,   · · · ,   m   x i = x i * x m *
where xi is the parameter value corresponding to the current data point, and P i     1 is the forward difference vector, P i 1   = P i P i 1 .
The objective function is the square difference between each data point and the corresponding point on the curve fitted according to the new knot vectors obtained by HPA in the previous iteration, as shown in Formula (5). Then we can get Formula (7) through the transformation of Formula (6).
  f = i = 1 m 1 [   P i     p ( x i )   ] 2
Let
r i = P i     P 0 N 0 , ρ ( x i )     P m N n , ρ ( x i )         i = 1 ,   2 , ,   m 1
Then,
  f = i = 1 m 1 [ r i j = 1 n 1 d j N j , ρ ( x i ) ] 2
The L-th derivative of it is shown in Formula (8), in order to minimize the objective function f, the derivative of n − 1 control points dj needs to be 0, and then the final least-square fitting in Formula (9) can be obtained to solve the control point dj in the current number of iterations.
  f d L = i = 1 m 1 [ 2 r i N L , ρ ( x i ) + 2 N L , ρ ( x i ) j = 1 n 1 d j N j , ρ ( x i ) ]
j = 1 n 1 ( i = 1 m 1 N L , ρ ( x i ) N j , ρ ( x i ) ) d j = i = 1 m 1 r i N L , ρ ( x i ) ]
According to the obtained basis functions N i , ρ ( x ) and control points dj, they are brought into Formula (3) to complete the curve fitting.

2.2. Research Status

At present, many companies have developed relatively mature ship CAD software systems such as AVEVA’s TRIBON Solution, DASSAULT’s Catia, NAPA’s NAPA system, etc. In addition, In-Il Kim [25], Hyeon-deok Lee [26] and Dongkon Lee et al. [27] also developed a special ship design system. The dedicated ship CAD system effectively improves the efficiency and quality of ship design. However, it has not achieved a better solution to the problem of discrete point processing in the offset table. For example, in the research on the reconstruction of the segmented outer plate of the ship surface, Yu Yong et al. [28] carried out the rapid inverse calculation of the non-uniform B-spline curve, but the inverse calculation process is to interpolate the discrete points, which cannot avoid errors. Nowadays, researchers prefer B-spline approximation. Moreover, the knot placement problem is a popular content that has been studied by many scholars in recent years [29]. The existing research methods can be divided into the static knot method and dynamic knot method according to whether the knot can be adjusted after selection. We first introduce the relevant static knot methods. Piegl L and Tiller W [23] first proposed an averaging technique and knot placement technique (KTP) in 1978, and knots are selected to reflect the distribution of data points. On this basis, Piegl L and Tiller W put forward NKTP technology [30]. Lyche T proposed a knot removal method (KRM) in 1988 [31,32]. However, this method cannot capture the internal characteristics of data points, and the amount of calculation is huge. In 1999, Razdan A [33] proposed to use the shape information of data points for knot placement. In the research method of Park H and Lee J [34], the idea of knot adaptation was proposed. Xu Jin, Ke Yinglin et al. [35] further proposed a feature point including the crease point, inflection point and curvature maximum point. The influence of curvature on fitting has also become a more concerned factor [36,37,38,39]. The static knot method is usually simple to calculate and has higher efficiency; the knot calculation comes from artificial assumptions and cannot be moved after placement. Compared with the dynamic knot method, the static knot method requires more knots under the same precision requirement. The dynamic knot method is mainly a combination of B-spline curve fitting theory and optimization algorithm, and the overall algorithm performance largely depends on the optimization algorithm. There are hundreds of existing optimization algorithms, and the nature-inspired optimization algorithm [40,41,42,43,44,45,46,47] is one of the most practical branches. According to the algorithm principle, it can be divided into three categories, as shown in Figure 1. Yoshimoto F et al. [17] and Sarfraz M [18] proposed the application of genetic algorithm. Özkan İNİK et al. [19] combined the grey wolf algorithm. He Bingpeng et al. [20] combined the differential evolution algorithm. Kübra Uyar et al. [21] combined the invasive weed optimization (IWO). Akemi Gálvez et al. [22] proposed the combination of immune algorithm and B-spline curve fitting and improved the parameter optimization and algorithm complexity. The dynamic knot method realizes the adaptive adjustment of knot dimension and position in each iteration; it does not rely on artificial assumptions and carries out forward calculation through multiple groups of initial random knots. The fitting effect of dynamic knot method is often better than the static knot method, but its operation efficiency is low.

3. A B-Spline Curve Fitting of Hungry Predation Optimization Algorithm with Knot Guidance

3.1. Knot Guidance Technology

In B-spline curve fitting, zero inner knots represent a straight line. As the shape complexity increases, so does the inner knot number. The knot guidance technology proposed in this paper mainly captures the feature points of the curve through the preprocessing of the curve data points. The feature points include jump points (position discontinuity points), sharp points (tangent discontinuity points), curvature discontinuity points, curvature extreme points and inflection points. This paper mainly focuses on the engineering application of ship line, which includes three types of feature points, as shown in the Figure 2.
According to the Formula (10) [38],
K i = 2 P i 1 P i P i + 1 l i l i + 1 l i * = sgn ( P i 1 P i P i + 1 ) sin α i l i *   ( i = 1 , 2 , , m     1 )  
where K is the curvature of the data point; P is the data point; subscript i is the serial number of the corresponding data point; P i 1 P i P i + 1 is the triangular area composed of data point Pi−1, Pi and Pi+1; sgn is the symbolic function; P i 1 P i P i + 1 is positive when the order is counterclockwise; l is the chord length between two points; and αi is the angle of the chord, as shown in the Figure 3.
After obtaining the curvature of each point, find the position of the feature point and the corresponding parameter value ui. In order to ensure the diversity of the population size, half of population still take random values in the interval [0, 1]. The other half takes values in each interval [ui − 1, ui + 0.1]; each knot has a 50% chance to mutate, and the value interval after mutation is [0, 1]. The method of finding feature points is described in reference [35].

3.2. Hungry Predation Optimization Algorithm

The adaptive adjustment of knots in HPA simulates the predator–prey behavior of animals under starvation. Distinguish individual levels in the population based on fitness function. Those with higher fitness are α, and the remaining individuals are collectively referred to as ω.
The three groups of knot vectors with the best fitness and their coordinates are:
U p α 1 = ( u p 1 , u p 2 , · · · , u p D α 1 )
  U p α 2 = ( u p 1 , u p 2 , · · · , u p D α 2 )  
  U p α 3 = ( u p 1 , u p 2 , · · · , u p D α 3 )  
Traverse the population in turn, and the corresponding position coordinate is:
U i = ( u i 1 , u i 2 , · · · , u i D )
If the individual is α, then its position remains unchanged. If the individual is ω, the next position U i + 1   is described as Formulas (11)–(13),
a = 2     Iter / Max _ iter
  U i + 1 α k = U p α k     A CU p α k     U i   k = 1 , 2 , 3
  U i + 1   = k = 1 3 U i + 1 α k / 3
where A is a random number between [−a, a], C is a random number between [0, 2] and Iter is the current number of iterations.
At this time, the initial adjustment of the population position has been achieved, and each individual has a 50% chance to become a hungry individual. The hungry individual will further hunger search and move faster to the prey position.
First, use the Euclidean distance between the current position Ui and the position Uα of the α1 to calculate the radius Ri of the neighbor range, as shown in Formula (14).
R i = | | U i U α 1 | |
Then, traverse the population size to find neighbors, as shown in Formula (15).
N i   = { U j | D i ( U i , U j )     R i }
where Ni is the set of neighbors and Uj is the location of the neighbor.
Finally, move the position, as shown in Formula (16).
  U i + 1   = U r + ( U r   U i )   ×   S   ×   cos ( Iter Max _ iter   0 . 5 )
where Ur has a 50% probability of being the location of α, and 50% is the neighbor in the population size. S is a random number between (0, 1).

3.3. Fitness Function Selection

As a key component of the algorithm, the selection of fitness function directly affects whether it can find the optimal solution and the convergence speed of HPA. In the whole process of population size search, it does not rely on external information, only based on the fitness function. Individuals in a population adjust their positions based on fitness.
This paper proposes three fitness functions that can be applied to HPA.
(a) Bayesian Information Criterion (BIC) [22]: its fitness function is described as Formula (17).
Fitness = 2 Ln ( L 1 ) + Ln ( n 1 )   ×   N p
where L1 is the likelihood function, n1 is the sample size and Np is the number of parameters.
(b) Maximum error of a single point of the curve is described as Formula (18).
Fitness = Max ( P ir     P if )
where P ir is the actual given data point, and P if is the point on the corresponding fitting curve.
(c) Overall standard deviation of curve is described as Formula (19).
  Fitness = i = 1 n ( P ir P if ) 2 N k
where Nk is the number of knot vertices.
The BIC method considers the complexity of the calculation model and avoids the over fitting problem by adding the penalty term of model complexity. When the number of knots and control points is small, the BIC value will decrease with increasing the number of knots until it reaches the minimum value. Then, as the number of knots continues to increase, the accuracy of the curve improves slowly, and the BIC value will increase. In practical engineering application, Formulas (18) and (19) are more intuitive and convenient.

3.4. Dimension Calculation Rule

In the iterative calculation of population position, different individuals have different internal knot rates λ, which causes the dimensions to be different for each individual, as shown in Figure 4. The dimension corresponds to the number of internal knots. In order to find fewer control points to complete the curve fitting, we must ensure the diversity of individuals. When ωi moves towards or away from α, its dimension remains unchanged. We deal with α whose dimension is different from ωi. Then we can get U p α 1 ,   U p α 2   a n d   U p α 3 , and all of them have the same dimensions with ωi.
First, the dimensions of α are judged. If the dimension is higher than that of the currently selected ωi, calculate the extra number of dimension N1 and the difference Mi between every two adjacent inner knots of the high-dimensional individual.
The probability pi of each point to be deleted is shown in Formula (20):
  p i = M i   i = 0 m M i ( i = 0 ,   1 ,   ,   m )
Randomly delete a knot according to the probability pi, and this process is repeated N1 times until two individuals have the same dimension.
If the dimension is lower than that of the currently selected individual, calculate the extra number of dimension N1 and the difference Mi between every two adjacent inner knots of the high-dimensional individual. Randomly add a new knot in the interval with the largest inner knot difference Mi and repeat this process to N1 times, so that the dimensions of the two individuals are the same.

3.5. Algorithm Flow

The overall algorithm flow of HPA is shown in Figure 5.
Step 1: Import the data points of the curve, order the data points and carry out the parameterization of the standard accumulation chord length to obtain the corresponding parameter values.
Step 2: Set the error threshold, population size and iteration number, which are adjusted adaptively according to the feature points and error threshold, which is introduced in Section 4. The corresponding internal knots are obtained through the knot guidance technology.
Step 3: Based on the existing knot vector, curve degrees and data point, the respective control points are obtained by using the least-squares minimization method, in which the curve degrees and data point parameters are fixed values, and the value and dimension of each individual’s knot vectors may change after each iteration.
Step 4: According to the existing knot vectors and the control points obtained in Step 3, a B-spline curve can be fitted by using Formula (3).
Step 5: Give a fitness function, calculate the fitness of each individual.
Step 6: Judge whether the curve fitted by each individual meets E. If the individual meets E, and its dimension is not the largest among the population, then go to step 7. If it does not meet E or the individual’s dimension is the largest among the population, go to step 8.
Step 7: Determine the minimum dimension D of population that satisfies the condition, remove individuals whose dimension is greater than D, supplement the population with the same number of individuals with dimension of D or D−1 and return to step 3.
Step 8: Use the hungry predation optimization technology to adjust the position of each individual.
Step 9: Judge whether the current iteration number reaches the set value Max_iter. If it reaches, output the current optimal result. If it does not reach Max_iter, return to step 3.

4. Key Parameter Settings

There are four key parameters of the HPA:
(1) Population size W, which determines how many individuals find the optimal solution in the population size at the same time.
(2) Internal knot rate λ: The range of λ depends on the number of given data points, usually select interval [0, 0.5], which can be reduced with the increase of data points. The λ is different for each individual.
(3) Error threshold E, which ensures that the error value of the final fitted curve is less than E.
(4) Iteration number Max _ iter , which determines the number of iterations of the whole optimization process, iterates to the Max _ iter time and outputs the current optimal solution.
In previous studies [17,18,19,20,21,22], the population size and iteration number have been based on different fitting models and fitting error thresholds, relying on intuitive experience or multiple attempts to give appropriate values, which is troublesome and time consuming. This section takes two continuous semicircle models with radius 1 as an example, as shown in Figure 6. We further explore the impact of population size, iteration number and error threshold on curve fitting effect, and give the setting formula of population size and iteration number.
The population size determines the number of parallel solution paths. When the iteration number Max_iter is 20 and the error threshold E is 0.1, the population size W is set to 10, 20 and 50, respectively; the fitting result is recorded as shown in Figure 7.
The inner knots of Figure 7a are 0.4328 and 0.5771, and the fitting accuracy is 0.0186. The inner knots of Figure 7b are 0.4612 and 0.5376, and the fitting accuracy is 0.0207. The inner knots of Figure 7c are 0.4076 and 0.5924, and the fitting accuracy is 0.0169. It can be seen from Figure 7 that the fitting result with W = 20 is worse than W = 10 in this experiment.
The setting of the iteration number affects the step size of each iteration. The more the iteration number, the more carefully the algorithm searches. However, when the iteration number is large enough, increasing the iteration number will have little effect on the curve fitting accuracy. Besides, a large iteration number will improve the operation time of the algorithm. When the error threshold E is 0.1, multiple experiments are carried out by changing the population size W and iteration number Max_iter. The results are shown in Figure 8.
As shown in Figure 8a, Max_iter is 20. When W is 10 and 20, the result fluctuates greatly, and the fluctuation is relatively small when W is 30. In Figure 8b, W is 20, and the fluctuation is small after 30 iterations.
The setting of the error threshold determines the fitting accuracy of the B-spline curve. The HPA algorithm can better implement the B-spline curve with the least number of control points when the error threshold is satisfied. Set W to 30, Max_iter to 20 and set E to 0.1, 0.01 and 0.001, respectively; the fitting results are shown in Figure 9.
The least-squares fitting accuracies of Figure 9a–c are 0.0207, 0.0016, and 0.0004, respectively. It can be seen from the results that as E decreases, the final curve fitting result is getting better, and more control points are required.
Adjust E from 1 to 0.0001, and the change of inner knot number required for the fitted curve, which is shown in Figure 10.
The optimization algorithm in the field of B-spline curve fitting is to solve the extremum problem, and the solution is a number of interrelated decimals arranged in ascending order from 0 to 1. The setting of population size and iteration number is mainly related to the number and distribution of solutions. It is affected by factors such as error threshold and model complexity. A small numerical setting will make it difficult to find the optimal solution, and a large numerical setting will lead to the algorithm low efficiency. Therefore, before the algorithm runs, we need to set a reasonable population size W and iteration number Max_iter. This paper gives the relational Formulas (21) and (22).
  W = In ( E L MAX ) × 1 . 2 Log 10 ( L MAX E ) + 1 . 5 × Cp
  Max _ iter = 2   ×   W
where L M A X is the maximum side length of the model, Cp is the number of model feature points and ⌊⌋ is rounded down.
The design of Formulas (21) and (22) makes the HPA algorithm only need to input the model data points and the required error threshold, and the HPA algorithm can adaptively adjust the population size and iteration number. The whole algorithm has better universality, and it is ensured that the algorithm can obtain a better fitting effect at a higher operating efficiency.

5. HPA Algorithm Test

The experiment is divided into two parts. Section 5.1 compares the static knot method and dynamic knot method, and Section 5.2 compares with the existing commercial Software Solidworks2022 (Dassault, US) and Catia2017 (Dassault, France).

5.1. Comparison with Existing Research

When we deal with the problem of knot placement, except for the method of combining optimization algorithm, B-spline curve fitting based on adaptive curve refinement using dominant points (DOM), KTP, NKTP, KRM etc. are the best representative methods, as shown in Table 1. Figure 11 is a comparison example of HPA in this paper and DOM method. Park H compared related algorithms, as shown in Figure 12. Furthermore, we add the fitting results of GWO and HPA to Figure 12. Compared with related methods, HPA uses less control points under the same accuracy.
As shown in Figure 11, the same face contour is fitted with the same 15 control points. From the fitting results, it can be seen that the HPA proposed in this paper can better represent the curve shape of face contour, especially at specially marked 1, 2 and 3 points, which are fuller at the tip of nose and more prominent at the chin compared with DOM.
Operational efficiency is an important criterion for judging the pros and cons of an algorithm. However, due to the different research periods of each algorithm, there are differences in both software and hardware. It is not objective to simply compare the running time with previous literature. The optimization algorithms of the natural heuristic class take a similar time for each iteration, and it is fairer to compare the convergence of the same number of iterations. This paper selects six representative optimization algorithms for face contour fitting: Genetic Algorithm [40], Differential Evolution Algorithm [41], Grey Wolf Algorithm [42,43], Whale Algorithm [44], Particle Swarm Algorithm [45] and Gravity Algorithm [46]. The search ability and convergence efficiency of HPA and other algorithms are compared when using 15 control points, as shown in Figure 13.
It can be seen from the above experiments that after knot guidance technology, the algorithm can find a better solution in the first generation. Compared with other algorithms, HPA tends to have higher fitting accuracy and achieve faster convergence at the same number of iterations. Besides, DE, WOA and HPA demonstrate stronger search capabilities. The DE algorithm uses a greedy algorithm, which makes the entire calculation time approach twice that of other algorithms.
The paper further selects the six models mentioned in the literature [19] for testing, as shown in Table 2, and compares them with the GWO method mentioned in the literature. The results of fitting the model are shown in Figure 14 and Table 3.
It can be seen that the fitting results of the HPA method proposed in this paper for the six models are much better than GWO method at the same population size, iteration number, data points and number of knots.
The test function f4(x) is a more challenging function in the field of B-spline fitting [22], and there is a sharp point at x = 0.5, which is a commonly used example in the B-spline curve fitting literature. Existing fitting methods based on optimization algorithm and their fitting results are shown in the Table 4; PESA, MOGA, FFA and some other methods cannot fit the f4(x) function well. BIC is a criterion for many researchers to judge the pros and cons of an algorithm. However, each scholar has a slightly different understanding of the parameters in the BIC formula. Therefore, the BIC judgment formula in the B-spline curve fitting application is different.
In the AIS [22] method, the BIC calculation method is shown in Formula (23).
BIC = N   ×   LN ( Q 1 ) + ( LN ( N ) ) ( 2 Nod     3 ρ * + 2 ) Q 1 = i = 1 N ( X 1 i     X 2 i ) 2 + ( Y 1 i     Y 2 i ) 2
where N is the number of data points, Nod is the number of knots and ρ* is the order of the curve; X1i and X2i are the X coordinate values of the i-th point on the actual curve and the fitted curve, respectively; Y1i and Y2i are the Y coordinate values of the i-th point on the actual curve and the fitted curve, respectively.
In the testing process of the AIS method, 201 data points are selected at equal distances. The degree of curve ρ is 3 (ρ* = 4). In order to further test the ability of the algorithm to withstand interference, a normal fluctuation with a mean of 0 and a variance of 1 was applied to the data points. The minimum BIC value is 1121.09 when k = 5. Under the same BIC calculation formula, the HPA algorithm obtains the smallest BIC value of 1040.57 when k = 9, as shown in Table 5.
In the Gray Wolf Optimizer (GWO) for knot placement in B-spline curve fitting [19], the BIC calculation formula is shown in Formula (24). The HPA proposed in this paper is much better than GWO in fitting the function f4(x).
  BIC = N   ×   LN ( MSE ) + ( LN ( N ) ) 2   ×   ( 2   ×   Nod + ρ * ) MSE = 1 N i = 1 N ( X 1 i     X 2 i ) 2 + ( Y 1 i     Y 2 i ) 2
where N is the number of data points, Nod is the number of knots and ρ* is the order of the curve; X1i and X2i are the X coordinate values of the i-th point on the actual curve and the fitted curve, respectively; Y1i and Y2i are the Y coordinate values of the i-th point on the actual curve and the fitted curve, respectively.
The design of the BIC value in this article refers to the mean square error. Compared with the variance, the value will be smaller under the same fitting situation and may even be negative. When the optimal solution fitted by the GWO method is 40 knots, the BIC value is 704. However, the HPA algorithm obtains a minimum BIC value of 230.31 at k = 4, as shown in Table 6. Figure 15 records the fitting results of different numbers of knots of test function f4(x).
When the number of knots is small, the increase of knots can greatly improve the curve fitting accuracy, and the BIC value will decrease accordingly. When the inner knot is 4, the shape of the curve can be better fitted. At this time, the BIC value reaches the minimum value. As the number of knots continues to increase, the improvement of fitting accuracy begins to decrease, and the BIC value begins to increase.
In the GWO method, when 40 knots are used, the minimum BIC value [19] is obtained, and the fitting result of the test function f4(x) shows that the final fitting effect is not ideal, as shown in Figure 14. It can be seen that the HPA algorithm proposed in this paper achieved an accurate fitting of data points when using 40 knots, while the GWO method still cannot solve the cusp fitting when there are 40 knots. We guess that the use of heavy knots may be ignored in GWO.

5.2. Fitting of Ship Line

Figure 16 shows the offset table and ship line diagram of a ship. The ship has a total length of 189.98 m, a shape width of 32.26 m and a shape depth of 16 m.
Solidworks and Catia are popular design softwares at present. In particular, Catia has more prominent capabilities in complex surface design and reverse engineering. They are widely used in shipbuilding, aviation and other industries. Take the complex ship line on the cross section, longitudinal section and waterline surface and fit it through the existing design software Solidworks, Catia and HPA. Figure 17 compares the maximum error of Solidworks, Catia and HPA fitting curves under the condition of the same number of control points.
Input the same data points into Solidworks and Catia and use 10 control points to fit the ship line of the cross section stern, 6 control points to fit the cross section bow, 14 control points to fit the longitudinal section and 12 control points to fit the waterline surface. From the fitting results, it can be seen that under the same number of control points, Catia’s fitting accuracy is higher than Solidworks, but both of their overall fitting results are less effective, especially in the part with continuous curvature change. Given the same data points and the same number of control points, the HPA proposed in this paper has higher precision and can better represent the shape of the curve than Solidworks and Catia.
Figure 18 records the fitting of the ship line of cross section bow, cross section stern, longitudinal section and waterline surface by Solidworks, Catia and HPA. We test the number of control points required by different methods when the fitting accuracy is similar. Figure 19 shows the fitting results with the same number of control points described in Figure 17.
Through the fitting results, it can be seen that under the input of the same data points and the approximate fitting accuracy, compared with the existing design software Solidworks and Catia, HPA can complete the fitting with the same effect with fewer control points, which better proves the superiority of the method proposed in this paper.

6. Discussion and Conclusions

This paper develops a B-spline curve fitting of hunger predation optimization on ship line design (HPA). In the previous dynamic knot method, the initial knot is randomly selected from the interval [0, 1], which causes many unreasonable knot vectors. Therefore, a large population size and iteration number are required, which leads to a decrease in the efficiency of the algorithm. The knot guidance technology is designed to add knots in the area with complex model shape at the initial knot selection stage. This aims at the problem that the population loses diversity prematurely in the optimization algorithm, which leads to slow convergence and easy to fall into local optimality. A hunger algorithm search strategy is developed to make the hungry individuals in the population size appear near the optimal solution more quickly, and the influence of the neighbors in the population size on their position adjustment is further considered. This aims at the problem that the previous dynamic knot method requires manual adjustment of key input parameters such as population size and iteration number, which is troublesome and time consuming. An adaptive adjustment of key input parameters in HPA algorithm is proposed, which can quickly adapt to the replacement of model and fitting accuracy. We compared with the typical static knot method, dynamic knot method and the existing commercial Software Solidworks and Catia, and the feasibility and superiority of HPA algorithm, are verified. HPA achieves the goal of B-spline curve fitting with higher fitting accuracy at the same control points, less control points under the same accuracy requirements, faster operation efficiency and better universality. HPA can better solve practical engineering problems.
Future work includes extending HPA to B-spline surface fitting, the application of the hunger predation algorithm in other fields and further improving the fitting accuracy and fitting efficiency of B-spline curve fitting.

Author Contributions

Conceptualization, C.S. and M.L.; methodology, C.S. and M.L.; software, M.L.; validation, M.L. and S.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Unveiling and Commanding Science and Technology Project of Liaoning Province (No.2021JH1/10400093); National Natural Science Foundation of China (51305052); Key Laboratory for Precision & Non-traditional Machining of Ministry of Education of Dalian University of Technology, China (JMTZ202001).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data will be made available on reasonable request.

Acknowledgments

This work was supported by Unveiling and Commanding Science and Technology Project of Liaoning Province (No.2021JH1/10400093); National Natural Science Foundation of China (51305052); Key Laboratory for Precision and Non-traditional Machining of Ministry of Education of Dalian University of Technology, China (JMTZ202001).

Conflicts of Interest

The authors declare no conflict of interest, and there is no copyright issue in all of figures.

References

  1. Duan, J.; Wang, B.; Cui, K.; Dai, Z. Path Planning Based on NURBS for Hyper-Redundant Manipulator Used in Narrow Space. Appl. Sci. 2022, 12, 1314. [Google Scholar] [CrossRef]
  2. Gao, X.; Zhang, S.; Qiu, L.; Liu, X.; Wang, Z.; Wang, Y. Double B-Spline Curve-Fitting and Synchronization-Integrated Feedrate Scheduling Method for Five-Axis Linear-Segment Toolpath. Appl. Sci. 2020, 10, 3158. [Google Scholar] [CrossRef]
  3. Liu, Y.; Wan, Z.; Yang, C.; Wang, X. NURBS-Enhanced Meshfree Method with an Integration Subtraction Technique for Complex Topology. Appl. Sci. 2020, 10, 2587. [Google Scholar] [CrossRef]
  4. Li, X.; He, L. Shape Optimization Design for a Centrifuge Structure with Multi Topological Configurations Based on the B-Spline FCM and GCMMA. Appl. Sci. 2020, 10, 620. [Google Scholar] [CrossRef]
  5. Ni, Y.; Liu, F.; Wu, Y.; Wang, X. Continuous-Time Fast Motion of Explosion Fragments Estimated by Bundle Adjustment and Spline Representation Using HFR Cameras. Appl. Sci. 2021, 11, 2676. [Google Scholar] [CrossRef]
  6. Son, M.J.; Kim, T.W. Implementation of an executable business process management model for the ship hull production design process. J. Mar. Sci. Technol. 2014, 19, 170–184. [Google Scholar] [CrossRef]
  7. Yi, L. Application of Web technology and non-uniform B-splines in hull line design system. Ship Sci. Technol. 2020, 42, 4–6. [Google Scholar]
  8. Ma, J.; Xie, K.; Tong, X. Research and application of hull shape design software based on non-uniform B-splines. Comput. Eng. Appl. 2004, 23, 223–225. [Google Scholar]
  9. Wang, P. Discussion on the smoothing method of hull line shape. China Water Transp. 2016, 16, 3–5+15. [Google Scholar]
  10. Ma, W.; Kruth, J.P. Parameterization of randomly measured points for least squares fitting of b-spline curves and surfaces. Comput. Aided Des. 1995, 27, 663–675. [Google Scholar] [CrossRef]
  11. Lin, H.; Chen, W.; Wang, G. Curve reconstruction based on an interval B-spline curve. Vis. Comput. 2005, 21, 418–427. [Google Scholar] [CrossRef]
  12. Yang, Z.; Deng, J.; Chen, F. Fitting unorganized point clouds with active implicit B-spline curves. Vis. Comput. 2005, 21, 831–839. [Google Scholar] [CrossRef]
  13. Jose, E.; Carlos, H.; Maria, D.; Juan, G.; Raul, E.; Horacio, R. Parallel Hierarchical Genetic Algorithm for Scattered Data Fitting through B-Splines. Appl. Sci. 2019, 9, 2336. [Google Scholar] [CrossRef] [Green Version]
  14. Zhou, H.; Wang, Y.; Liu, Z.; Lu, B. Non-Uniform Rational B-Splines Curve Fitting Based on the Least Control Points. J. Xi’an Jiaotong Univ. 2008, 42, 73–77. [Google Scholar]
  15. Zhao, D.; Guo, H. A Trajectory Planning Method for Polishing Optical Elements Based on a Non-Uniform Rational B-Spline Curve. Appl. Sci. 2018, 8, 1355. [Google Scholar] [CrossRef]
  16. Hu, M.; Feng, J.; Zheng, J. An additional branch free algebraic B-spline curve fitting method. Vis. Comput. 2010, 26, 801–811. [Google Scholar] [CrossRef]
  17. Yoshimoto, F.; Harada, T.; Yoshimoto, Y. Data fitting with a spline using a real-coded genetic algorithm. Comput. Aided Des. 2003, 35, 751–760. [Google Scholar] [CrossRef]
  18. Sarfraz, M. Representing shapes by fitting data using an evolutionary approach. Comput. Aided Des. A 2013, 1, 179–185. [Google Scholar] [CrossRef]
  19. Özkan, İ.; İsmail, K. Gray Wolf Optimizer for Knot Placement in B-Spline Curve Fitting. Gaziosmanpasa J. Sci. Res. 2017, 6, 97–109. [Google Scholar]
  20. He, B.; Feng, R.; Yv, S. B-Spline Curve and Surface Fitting Using Differential Evolution Algorithm. J. Graph. 2016, 37, 178–183. [Google Scholar] [CrossRef]
  21. Kübra, U.; Erkan, Ü. B-spline curve fitting with invasive weed optimization. Appl. Math. Model. 2017, 52, 320–340. [Google Scholar] [CrossRef]
  22. Gálvez, A.; Iglesias, A.; Avila, A.; Otero, C.; Arias, R.; Manchado, C. Elitist clonal selection algorithm for optimal choice of free knots in B-spline data fitting. Appl. Soft Comput. 2015, 26, 90–106. [Google Scholar] [CrossRef]
  23. Piegl, L.; Tiller, W. Tiller, the NURBS Book; Springer: Berlin/Heidelberg, Germany, 1997. [Google Scholar]
  24. Shi, F. CAGD&NURBS; Higher Education Press: Beijing, China, 2013; pp. 57–59. [Google Scholar]
  25. Kim, I. A development of data structure and mesh generation algorithm for whole ship analysis modeling system. Adv. Eng. Softw. 2006, 37, 85–96. [Google Scholar] [CrossRef]
  26. Lee, H.-D.; Son, M.-J.; Oh, M.-J.; Lee, H.-W.; Ki, T.-W. Development of a simple model for batch and boundary information updation for a similar ship’s block model. Sci. China Inf. Sci. 2012, 55, 1019–1031. [Google Scholar] [CrossRef]
  27. Lee, D.; Lee, K.-H. An approach to case-based system for conceptual ship design assistant. Expert Syst. Appl. 1999, 16, 97–104. [Google Scholar] [CrossRef]
  28. Yv, Y. Research on Reconstruction and Deployment Technology of Ship Curved Surface Segmented Outer Plate; Jiangsu University of Science and Technology: Jiangsu, China, 2016. [Google Scholar]
  29. Várady, T.; Martin, R.R.; Cox, J. Reverse engineering of geometric models—An introduction. Comput. Aided Des. 1997, 29, 255–268. [Google Scholar] [CrossRef]
  30. Piegl, L.; Tiller, W. Least–Square B–Spline Curve Approximation with Arbitrary End Derivatives. Eng. Comput. 2000, 16, 109–116. [Google Scholar] [CrossRef]
  31. Lyche, T.; Morken, K. Knot removal for parametric B-Spline curves and surface. Comput. Aided Geom. Des. 1987, 4, 217–230. [Google Scholar] [CrossRef]
  32. Lyche, T.; Morken, K. A date reduction strategy for splines. IMA J. Numer. Anal. 1988, 8, 185–208. [Google Scholar] [CrossRef]
  33. Razdan, A. Knot Placement for B-Spline Curve Approximation; ASU: Phoenix, AZ, USA, 1999. [Google Scholar]
  34. Park, H.; Lee, J.-H. B-spline curve fitting based on adaptive curve refinement using dominant points. Comput. Aided Des. 2007, 39, 439–451. [Google Scholar] [CrossRef]
  35. Xu, J.; Ke, Y.; Qu, W. B-spline curve approximation technology based on automatic identification of feature points. Chin. J. Mech. Eng. 2009, 45, 212–217. [Google Scholar] [CrossRef]
  36. Park, H.; Kim, K.; Lee, S.C. A method for approximate NURBS curve compatibility based on multiple curve refitting. Comput. Aided Des. 1995, 32, 237–252. [Google Scholar] [CrossRef]
  37. Hamann, B.; Chen, J. Data point selection for piecewise linear curve approximation. Comput. Aided Geom. Des. 1994, 11, 289–301. [Google Scholar] [CrossRef]
  38. Liu, G.; Wong, Y.; Zhang, Y.; Loh, H. Adaptive fairing of digitized data with discrete curvature. Comput. Aided Des. 2002, 34, 309–320. [Google Scholar] [CrossRef]
  39. Li, W.; Xu, S.; Zhao, G.; Goh, L. Adaptive knot placement in b-spline curve approximation. Comput. Aided Des. 2005, 37, 791–797. [Google Scholar] [CrossRef]
  40. Zhou, M.; Sun, S. Genetic Algorithm: Theory and Applications; National Defence Industry Press: Beijing, China, 1999. (In Chinese) [Google Scholar]
  41. 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]
  42. Seyedali, M.; Seyed, M.; Andrew, L. Grey wolf optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
  43. Zhang, X.; Wang, X. Review of Research on Grey Wolf Optimization Algorithm. Comput. Sci. 2019, 46, 30–38. [Google Scholar]
  44. Seyedali, M.; Andrew, L. The Whale Optimization Algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  45. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the IEEE International Conference, Perth, Australia, 27 November–1 December 1995; pp. 1942–1948. [Google Scholar]
  46. Rashedi, E.; Nezamabadi-Pour, H.; Saryazdi, S. GSA: A gravitational search algorithm. Inf. Sci. 2009, 179, 2232–2248. [Google Scholar] [CrossRef]
  47. Fatma, A.; Essam, H.; Mai, S.; Walid, A.; Seyedali, M. Henry gas solubility optimization: A novel physics-based algorithm. Future Gener. Comput. Syst. 2019, 101, 646–667. [Google Scholar] [CrossRef]
  48. De Boor, C.; Rice, J.R. Least Squares Cubic Spline Approximation II—Variable Knots; Computer Science Technical Report; International Mathematical Statistical Libraries: Houston, TX, USA, 1968. [Google Scholar]
  49. Ulker, E.; Arslan, A. Automatic knot adjustment using an artificial immune system for B-spline curve approximation. Inf. Sci. 2009, 179, 1483–1494. [Google Scholar] [CrossRef]
  50. Ulker, E. B-Spline curve approximation using Pareto envelope-based selection algorithm-PESA. Int. J. Comput. Commun. 2013, 2, 60–63. [Google Scholar] [CrossRef]
  51. Valenzuela, O.; Delgado-Marquez, B.; Pasadas, M. Evolutionary computation for optimal knots allocation in smoothing splines. Appl. Math. Model. 2013, 37, 5851–5863. [Google Scholar] [CrossRef]
  52. Gálvez, A.; Iglesias, A. Firefly algorithm for explicit B-spline curve fitting to data points. Math. Probl. Eng. 2013, 2013, 528215. [Google Scholar] [CrossRef]
  53. Yuan, Y.; Chen, N.; Zhou, S. Adaptive B-spline knot selection using multiresolution basis set. IIE Trans. 2013, 45, 1263–1277. [Google Scholar] [CrossRef]
Figure 1. Classification of nature-inspired optimization algorithms.
Figure 1. Classification of nature-inspired optimization algorithms.
Applsci 12 09465 g001
Figure 2. Feature points of curve.
Figure 2. Feature points of curve.
Applsci 12 09465 g002
Figure 3. Schematic diagram of Formula (9).
Figure 3. Schematic diagram of Formula (9).
Applsci 12 09465 g003
Figure 4. Dimensions of different individuals.
Figure 4. Dimensions of different individuals.
Applsci 12 09465 g004
Figure 5. Algorithm flow of HPA.
Figure 5. Algorithm flow of HPA.
Applsci 12 09465 g005
Figure 6. Two continuous semicircles. Radius: 1.
Figure 6. Two continuous semicircles. Radius: 1.
Applsci 12 09465 g006
Figure 7. Influence of population size W on curve fitting, (a) W = 10, (b) W = 20 and (c) W = 50.
Figure 7. Influence of population size W on curve fitting, (a) W = 10, (b) W = 20 and (c) W = 50.
Applsci 12 09465 g007
Figure 8. Fluctuation of curve fitting accuracy when (a) Max_iter is 20 and W varies from 10 to 100, and when (b) W is 20 and Max_iter varies from 10 to 50.
Figure 8. Fluctuation of curve fitting accuracy when (a) Max_iter is 20 and W varies from 10 to 100, and when (b) W is 20 and Max_iter varies from 10 to 50.
Applsci 12 09465 g008
Figure 9. When E is (a) 0.1, (b) 0.01 and (c) 0.001, the influence of their changes on curve fitting.
Figure 9. When E is (a) 0.1, (b) 0.01 and (c) 0.001, the influence of their changes on curve fitting.
Applsci 12 09465 g009
Figure 10. Influence of error threshold on the inner knot number.
Figure 10. Influence of error threshold on the inner knot number.
Applsci 12 09465 g010
Figure 11. Comparing (a) the face data points and the fitting results of (b) DOM and (c) HPA especially at 1–3 marked.
Figure 11. Comparing (a) the face data points and the fitting results of (b) DOM and (c) HPA especially at 1–3 marked.
Applsci 12 09465 g011
Figure 12. Comparison of control point number used at the same fitting error with DOM, KTP, NKTP, KRM, GWO and HPA.
Figure 12. Comparison of control point number used at the same fitting error with DOM, KTP, NKTP, KRM, GWO and HPA.
Applsci 12 09465 g012
Figure 13. Comparison of the effect of various optimization algorithms on face contour fitting.
Figure 13. Comparison of the effect of various optimization algorithms on face contour fitting.
Applsci 12 09465 g013
Figure 14. Comparison of GWO and HPA fitting results for six test models.
Figure 14. Comparison of GWO and HPA fitting results for six test models.
Applsci 12 09465 g014
Figure 15. Fitting results of different number of knots.
Figure 15. Fitting results of different number of knots.
Applsci 12 09465 g015
Figure 16. (a) Offset table and ship line diagram, which include (b) cross section bow, (c) longitudinal section and (d) waterline surface.
Figure 16. (a) Offset table and ship line diagram, which include (b) cross section bow, (c) longitudinal section and (d) waterline surface.
Applsci 12 09465 g016
Figure 17. Maximum error of fitting using Solidworks, Catia and HPA at the same number of control points.
Figure 17. Maximum error of fitting using Solidworks, Catia and HPA at the same number of control points.
Applsci 12 09465 g017
Figure 18. Number of control points when the maximum single point error is within 0.1 m.
Figure 18. Number of control points when the maximum single point error is within 0.1 m.
Applsci 12 09465 g018
Figure 19. Fitting results of ship line of (a) cross section stern, (b) cross section bow, (c) longitudinal section and (d) waterline surface with Solidworks, Catia and HPA.
Figure 19. Fitting results of ship line of (a) cross section stern, (b) cross section bow, (c) longitudinal section and (d) waterline surface with Solidworks, Catia and HPA.
Applsci 12 09465 g019
Table 1. Comparison of related fitting methods.
Table 1. Comparison of related fitting methods.
Incremental Method Using KTP or NKTPKnot Removal Method KRMIncremental Method Using DOMAdaptive Adjustment Using HPA
Preprocessing1 Parameterization1 Parameterization
2 Interpolation of all points
1 Parameterization
2 Selection of seed points
1 Parameterization
2 Find feature points
Iteration process1 Knot placement
2 Least-squares minimization
3 Deviation check
1 Selection of a candidate knot
2 Deviation check
3 Knot removal
1 Knot placement
2 Least-squares minimization
3 Deviation check
4 Selection of a new dominant point
1 Knot placement
2 Least-squares minimization
3 Comparative fitness
4 Knot adaptive adjustment
Ref.[23,30][31][34]Our method
Table 2. Test six models mentioned in the literature. (Adapted with permission from Ref. [19]).
Table 2. Test six models mentioned in the literature. (Adapted with permission from Ref. [19]).
FuctionDescriptionVariable Range
1Data point [48]
2 f 2 ( x ) = 10 x ( 1 + 100 x 2 ) [−2, 2]
3 f 3 ( x ) = 0 . 2 e 0 . 5 x sin 5 x + 4 [0, 4π]
4 f 4 ( x ) = 100 e | 10 x 5 | + ( 10 x     5 ) 5 500 [0, 1]
5 f 5 ( x ) = sin x + 2 e 30 x 2 [−2, 2]
6 f 6 ( x ) = sin 2 x + 2 e 36 x 2 + 2 [−2, 2]
Table 3. The experimental results for all functions.
Table 3. The experimental results for all functions.
FuctionDegree of CurvePopulation SizeNumber of IterationNumber of PointNumber of KnotNumber of Control PointMSE
(GWO)
MSE
(HPA)
13501004916200.0243.21 × 10−3
23501009053570.0106.32 × 10−7
335010020077810.0082.31 × 10−6
435010020140441.3953.18 × 10−3
535010020146500.0322.43 × 10−4
635010020137410.0267.58 × 10−4
Table 4. Existing fitting methods based on optimization algorithm and their fitting results. (‘×’ means that the method can not fit the function f4 well).
Table 4. Existing fitting methods based on optimization algorithm and their fitting results. (‘×’ means that the method can not fit the function f4 well).
Authors, Year and ReferenceMethodIteration NumberKnot NumberBIC
Yoshimoto et al. [17]Genetic algorithms (GA)20051188
Sarfraz and Raza [18]GA and Detection Algorithms120××
Özkan İNİK et al. [19]Gray Wolf Optimization (GWO)10040704
Kübra Uyar et al. [21]Invasive Weed Optimization (IWO)156430
Gálvez et al. [22]Artifificial Immune Systems (AIS)10051121
Ulker and Arslan [49]Artifificial Immune Systems500××
Ulker [50]Pareto Envelope-Based Selection Algorithm (PESA)500××
Valenzula et al. [51]Multi-Objective Genetic Algorithms (MOGA)120××
Gálvez and Iglesias [52]Fireflfly Algorithm (FFA)500××
Yuan et al. [53]Adaptive Multiresolution Basis Set with Lasso Selection MethodVariable××
Table 5. BIC values of AIS and HPA methods at the same knot.
Table 5. BIC values of AIS and HPA methods at the same knot.
Inner Knot NumberMethodQ1RMSEBIC
κ = 3HPA500.8891.5781313.12
AIS593.9771.7191336.79
κ = 4HPA329.1171.2791239.32
AIS381.8711.3781258.60
κ = 5HPA169.7580.9191116.86
AIS182.7610.9531121.09
κ = 6HPA142.3310.8421092.05
AIS181.0510.9491129.81
κ = 7HPA122.7860.7821072.96
AIS178.0130.9411137.01
κ = 8HPA102.7230.7151047.71
AIS176.3910.9361145.78
κ = 9HPA94.0450.6841040.57
AIS174.5150.9311154.24
κ = 10HPA92.9840.6801043.60
AIS172.2180.9191159.61
Table 6. BIC value and knot distribution of HPA with different knot number.
Table 6. BIC value and knot distribution of HPA with different knot number.
Inner Knot NumberMSEBICKnot Distribution
κ = 22.737446.370.311, 0.372
κ = 31.015268.320.282, 0.528, 0.604
κ = 40.756230.310.192, 0.505, 0.505, 0.505
κ = 50.735245.760.152, 0.472, 0.472, 0.472, 0.717
κ = 60.707259.120.151, 0.476, 0.476, 0.476, 0.697, 0.819
κ = 70.643261.500.230, 0.309, 0.470, 0.470, 0.530, 0.673, 0.785
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Sun, C.; Liu, M.; Ge, S. B-Spline Curve Fitting of Hungry Predation Optimization on Ship Line Design. Appl. Sci. 2022, 12, 9465. https://doi.org/10.3390/app12199465

AMA Style

Sun C, Liu M, Ge S. B-Spline Curve Fitting of Hungry Predation Optimization on Ship Line Design. Applied Sciences. 2022; 12(19):9465. https://doi.org/10.3390/app12199465

Chicago/Turabian Style

Sun, Changle, Mingzhi Liu, and Shihao Ge. 2022. "B-Spline Curve Fitting of Hungry Predation Optimization on Ship Line Design" Applied Sciences 12, no. 19: 9465. https://doi.org/10.3390/app12199465

APA Style

Sun, C., Liu, M., & Ge, S. (2022). B-Spline Curve Fitting of Hungry Predation Optimization on Ship Line Design. Applied Sciences, 12(19), 9465. https://doi.org/10.3390/app12199465

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

Article Metrics

Back to TopTop