1 Introduction

In recent decades, numerous algorithms have been proposed to overcome various optimization problems in the field of engineering [1]. These optimization problems determine the value of a few parameters under specific circumstances for optimizing the objective function. In general, the objective function is a specific characteristic that provides a minimal or maximal solution based on the problem. Therefore, to attain best optimistic solutions, the optimizations are broadly utilized in various applications such as industrial design, manufacture design, design analysis and engineering design [2]. There occur several optimization problems while obtaining optimal solution, and these optimization problems are categorized into several types namely dynamic or static, continuous or discrete, single-objective or multi-objective as well as constrained or unconstrained. Hence, to enhance the accuracy and the efficiency of such optimization problems, several research scholars depend upon meta-heuristic algorithms for easy implementation, gradient information and to avoid or bypass local optimization problem [3].

At the same time, the meta-heuristic algorithm plays a significant role in engineering field due to its wide range of challenges. But the nature-inspired meta-heuristic algorithms are relatively straight forward and are inspired mostly by unsophisticated ideas. Normally, the meta-heuristic algorithms are divided into four main categories namely swarm-based algorithm, evolutionary-based algorithm; human behaviour-based algorithm as well as physic-based algorithm [4]. Optimization algorithms such as differential evolution (DE) algorithm [5], evolution strategy (ES) algorithm [6], backtracking search optimization algorithm [7, 8], and genetic algorithm (GA) [9] are categorized under evolutionary-based technique [10,11,12]. Few algorithms namely firefly (FF) algorithm [13,14,15], particle swarm optimization (PSO) algorithm [16, 17], artificial bee colony (ABC) algorithm [18] are categorized under swarm intelligence approach; gravitational search (GS) algorithm [19], black hole (BH) algorithm [20] are few algorithms that are characterized under physic-based techniques. The human-based behaviour comprises of Mine Blast (MB) algorithm [21] and League Championship (LC) algorithm [22]. The evolutionary algorithm imitates the behaviour of evolutionary processes thereby producing a global optimal offspring value. Then the candidate solutions are enhanced and the iterative processes are continued until it satisfies the terminating criteria [23, 24].

In the present study, a novel chaotic sine–cosine firefly (CSCF) algorithm is developed with numerous variants to solve optimization problems. Then, the chaotic form of two algorithms namely the sine–cosine algorithm (SCA) and the firefly (FF) algorithms is integrated to improve the convergence speed and efficiency thereby minimizing several complexity issues. In addition to this, the proposed CSCF approach is operated under various chaotic phases and the optimal chaotic variants containing the best chaotic mapping is selected to determine the efficiency of the system.

This research study fulfils four main objectives

  • Demonstrating a novel chaotic sine–cosine firefly (CSCF) algorithm to improve the convergence speed and efficiency thereby minimizing several complexity issues.

  • Developing numerous variants such as Variant-I, Variant-II, Variant-III, Variant-IV and Variant-V of the novel CSCF algorithm for chaotic tuning of numerous parameters.

  • Utilizing numerous chaotic benchmark functions to examine the system performance of the CSCF algorithm.

  • Demonstrating engineering design problems to prove the efficiency, robustness and effectiveness of the CSCF algorithm.

The rest of the paper is structured as follows. Section 2 provides the basics of two different types of algorithms namely firefly (FF) algorithm and sine–cosine algorithm (SCA). Section 3 describes the proposed CSCF algorithm by forming diverse variants to tune the parameters. Then Sect. 4 demonstrates the chaotic and benchmark functions to determine the efficiency of the system; the comparative analysis of various approaches with the proposed CSCF algorithm and finally the engineering design problems are solved. Section 5 concludes the article.

2 Related literal works

2.1 Improved firefly (IFF) algorithm

2.1.1 Standard firefly algorithm

The Firefly algorithm was first developed by Xin-She at the University of Cambridge. The firefly algorithm imitates the characteristics of the firefly as well as its locomotion activities [25]. This firefly algorithm is considered to be a more efficient approach in finding solutions for various crucial engineering related issues because of very high exploration capability, its brightness and flashlight capability. Also, the firefly algorithm works under the principle of bionics [26]. The most effective firefly algorithm is selected to obtain the best optimal value despite the complex and nonlinear design. In general, each individual firefly has the capability to flash its light to attract the adjacent firefly thereby providing arbitrary solutions.

  1. A

    Purpose for flashing light

    • Attracting the partner for mating since every firefly is unisexual in nature

    • The attracting capability is proportional to the brightness. The firefly also utilizes its flashing light capability to attract the prey for survival.

    • Moreover, the firefly uses its flashing light to protect themselves from other enemies [27].

  2. B

    Light intensity variation and attraction capability

The light intensity variation and the attraction capability play a significant role in the firefly algorithm. The fitness value is determined by the light intensity. It also has the capability to deal with several multi-optimization problems and are highly nonlinear [28]. Here, the firefly with high or low intensity gets attracted with the neighbouring firefly having high or low intensity [29]. Let us consider, \(D_{XY}\) be the distance among two fireflies namely \(X\;{\text{and}}\;Y\). Furthermore, the intensity of the light diminishes concerning the distance from the source; also the media absorbs the light. Then as per the law of square inverse, the expression for the intensity of the light is represented in Eq. (1).

$$I(D) = \frac{{I_{S} }}{{D_{XY}^{2} }}$$
(1)

From Eq. (1), the source intensity is represented as \(I_{S}\). Then the expression for the intensity of the light \(I_{L}\) that varies concerning the distance \(D_{XY}\) is mentioned in Eq. (2). Therefore,

$$I_{L} = I_{0} {\text{e}}^{{ - \beta \,D_{XY} }}$$
(2)

From the above equation, \(\beta\) is the absorption coefficient of the fixed light. The initial intensity of the light is denoted as \(I_{0}\).

Each firefly contains a very strong attractive capability. This implies the strong attracting behaviour of a firefly over neighbouring firefly groups. Based on the distance between the two fireflies namely \(X\,\,{\text{and}}\,\,Y\), the attractive capability is varied. We know that the attractive capability of the firefly is directly proportional to the intensity of the light of the neighbouring fireflies. Therefore, the expression based on the attractive function is delineated in the following equation.

$$\alpha = \alpha_{0} {\text{e}}^{{ - \beta \,D_{{_{XY} }}^{2} }}$$
(3)

From Eq. (3), the attractive capability at distance \(D_{XY} = 0_{{}}\) is denoted as \(\alpha_{0}\). For a fixed, characteristic length becomes

$$\Psi = \beta - 1/M \to 1,M \to \infty$$
(4)

The Cartesian distances among two different fireflies \(X\,\,{\text{and}}\,\,Y\) are denoted as \(P{}_{X}\,{\text{and}}\,\,P_{Y}\) correspondingly. Therefore, the Cartesian distance formula for two fireflies is expressed in the following expression.

$$D_{X,Y} = \left\| {P{}_{X}\, - \,P_{Y} } \right\| = \sqrt {\sum\nolimits_{R = 1}^{\alpha } {(P_{X}^{R} - } } P_{Y}^{R} )^{2}$$
(5)

Then the movement of attraction from one fly to another fly, i.e., \(X\,\,{\text{and}}\,\,Y\) are characterized in Eq. (6). The determination of firefly movement with respect to the attracting capability is defined as,

$$P_{X}^{R + 1} = P_{X}^{R} + \alpha_{0} {\text{e}}^{{ - \beta \,D_{{_{XY} }}^{2} }} (P_{Y} - P_{X} ) + J\eta$$
(6)

From Eq. (6), \(\alpha_{0} e^{{ - \beta \,D_{{_{XY} }}^{2} }} (P_{Y} - P_{X} )\) be the attractive term and \(J\eta\) be the term containing random variable ranges from [0, 1].

2.1.2 Improved firefly algorithm

In the firefly algorithm, the best optimal value provides the firefly with very high brightness. The model of other classical approaches suffers from the trapping of local minima due to the nonlinear design strategy. Therefore improved firefly algorithm was developed to improve the trapping of local minimum value. Here, an additional term is added to the standard firefly algorithm to achieve better randomness and efficiency of the firefly. Then the difference among the arbitrary firefly and the \(X\)th position of the firefly is obtained thereby achieving the effective randomness of the firefly [30].

The brightest firefly found among the firefly group is said to be known as best firefly \(B_{F}\). The random number is denoted as \(R_{4}\) and the value ranges from [0,1]. Even though the computational complexity is high in case of improved firefly optimization, the local trapping quality is good for tuning the \(J\) and \(K\) parameter value. Therefore, the modified firefly algorithm is referred to as improved firefly algorithm. Then the updated expression is determined in the following section.

$$P_{X}^{R + 1} = P_{X}^{R} + \alpha_{0} {\text{e}}^{{ - \beta \,D_{{_{XY} }}^{2} }} (P_{Y} - P_{X} ) + J\eta + K(P_{A} - P_{X} )$$
(7)

where \(A \ne X\;{\text{and}}\;Y.\) \(K(P_{A} - P_{X} )\) be the term containing random variable ranges from [0, 1]. The pseudo-code for improved firefly algorithm is delineated as follows.

2.1.3 Chaotic firefly algorithm

The fireflies are also referred to as lighting bugs that are found during the night time particularly in the summer season [31]. In chaotic optimization approaches, the chaotic firefly variables replace the random variables [32]. The chaotic firefly algorithm selects the initial population of the search algorithm. The absorption coefficient \(\beta\) found in the solution space and the firefly positions is updated by employing the chaotic sequence demonstrated by the chaotic maps that are represented in Table 1. From Eq. (6), the step size J affects the random vector \(\eta\) and the chaotic time series replaces the third term and the mathematical expression is obtained as follows.

figure a
$$\eta_{X} = CHAOS_{X}^{K}$$
(8)
Table 1 Chaotic Mapping (CM) description and its functions

From Eq. (8), the chaotic maps are represented by \(CHAOS_{X}^{K}\); where the superscript K represents the type of chaotic map to be determined. In a similar way, the attractive term \(\alpha_{0}\) from Eq. (6) is substituted by the chaotic term that is represented in the following equation.

$$\alpha_{0} = \alpha_{0} CHAOS_{X}^{K}$$
(9)

The random motion of the firefly plays a significant role in determining the candidate [where \(\alpha_{0}\) (attractive term) relies on \(\beta\) (light absorption coefficient)] from the population. In addition to these two limiting cases \((\beta \to 0;\,\,\alpha \to \alpha_{0} )\) are formulated while determining \(\beta\). Therefore, the entire fireflies can spot one another and they start moving randomly when \(\beta\) becomes \(\infty\).

$$P_{X}^{R + 1} (T + 1) = P_{X}^{R} (T) - \alpha_{0} {\text{e}}^{{ - \beta \,D_{{_{XY} }}^{2} }} P_{X} (T)$$
(10)

The light absorption coefficient then employs in characterizing the dissimilarities in the attractiveness as well as the values are vitally imperative to determine the convergence capability and the speed of the firefly algorithm.

figure b

2.2 Sine–cosine (SC) algorithm

In general, the optimization approach based on population initiates its optimization method containing a random solution. The sine–cosine algorithm was first developed by Mirjalili in the year of 2016 for solving several optimization issues [33]. The SC algorithm utilizes sine and cosine functions to determine the best optimal solution. In SCA, the distance and the movement among each feature solution and the best member are affected. Therefore, the SCA employs a balance equation utilizing two phases namely the exploration phase and the exploitation phase. The solutions are changed randomly in the exploration case whereas, in the exploitation phase, the random variables are less.

The updating equation for both the exploitation and the exploration phase is expressed in the following equation.

$$P_{X}^{T + 1} = P_{X}^{T} + R_{1} \sin \,(R_{2} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|$$
(11)
$$P_{X}^{T + 1} = P_{X}^{T} + R_{1} \,\cos \,\,(R_{2} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|$$
(12)

From Eqs. (11) and (12), \(P_{X}^{T}\) signifies the position of the current solution, where \(X\) represents the dimension and \(T\) represents the iteration. The random numbers are represented as \(R_{1} ,R_{2} \;{\text{and}}\;R_{3}\). The position of the destination point in Xth dimension is represented as \(Z_{X}^{{}}\); || represents the absolute value.

Then the combined equation based on sine–cosine algorithm is represented as follows. Therefore,

$$P_{X}^{T + 1} = \left\{ \begin{gathered} P_{X}^{T} + R_{1} \sin \,(R_{2} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|;\,\,R_{4\,\,} < 0.5 \hfill \\ P_{X}^{T} + R_{1} \cos \,(R_{2} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|;\,R_{4\,\,} \ge 0.5 \hfill \\ \end{gathered} \right.$$
(13)

From Eq. (13), the random number is denoted by \(R_{4\,\,}\) and the random values may range from [0, 1]. From Eqs. (11)–(13), the region of next position that present in between the destination and the solution is denoted by \(R_{1}\); the movement outwards the destination is represented by \(R_{2}\). The random weight is represented utilizing two different constraints determined in the following equation.

$$\left\{ \begin{array}{l} if\,\,R_{3} > 1;\,\,\,\,\,{\text{stochastically}}\;{\text{emphazized}} \hfill \\ if\,\,R_{3} < 1;\,\,\,\,\,{\text{stochastically}}\,\,{\text{deemphazized}} \hfill \\ \end{array} \right.$$
(14)

Moreover, the exploration and the exploitation phase of the algorithm are to be balanced for finding the search space region. Therefore, Eqs. (11) to (12) are modified for balancing both the phases that are determined in the following equation. Therefore,

$$R_{1} = \,A - T\frac{A}{t}$$
(15)

From Eq. (15), the maximum iteration number and the current iterations are represented by \(t\) and \(T\), respectively, and the constant term is denoted as \(A\).

The general procedure of the sine–cosine algorithm is represented in the following section.

2.2.1 Chaotic sine–cosine algorithm

In this section, the parameters \(R_{1}\), \(R_{2}\) and \(R_{3}\) of Eq. (13) are modulated using chaotic maps during iterations that are described in Sect. 3 [Eqs. 18 to 20]. The meta-heuristic algorithms use a conventional method to find the best optimal solutions that are based on iteration; also it relies on random solutions to replicate the naturally occurring phenomenon [34]. More clear that, there occurs a major shortcoming based on the solution outcome and the convergence speed since these solutions rely upon random parameters. Consequently, the random parameters are replaced with the chaotic parameters also; numerous chaotic mapping functions are employed to enhance the overall performances of the optimization approach [35]. In addition to this, new parameters are introduced to replace the random numbers and functions with various deterministic numbers [36]. Also, the standard distributive functions namely Gaussian distribution [37] and uniform distributions are replaced with the non-standard distributive functions namely chaotic-based optimization algorithms. Moreover, the chaotic forms of the sine–cosine algorithms are employed in boosting the performances of the sine–cosine algorithm [38].

3 Proposed CSCF algorithm

Numerous meta-heuristic-based approaches are deliberated to eliminate the computational complexities of several existing approaches namely complex and tricky derivations, the requirement of very large memory space, initial value sensitivity etc. In general, the meta-heuristic-based approaches are deliberated to reduce the computational complexities of several existing approaches that contain complex and tricky derivations, the requirement of very large memory space, initial value sensitivity etc. However, several optimization algorithms such as firefly algorithm, sine–cosine algorithm, particle swarm optimization algorithm have few drawbacks such as computational complexity and convergence speed. So to overcome such shortcomings, this paper aims in developing a novel chaotic sine–cosine firefly (CSCF) algorithm with numerous variants to solve optimization problems.

In this paper, the improved firefly algorithm and the sine–cosine optimization algorithms are integrated to form a sine–cosine firefly approach. Then the integrated algorithm aims in hybridizing the chaotic algorithm [i.e. chaotic sine–cosine firefly (CSCF) approach] containing various chaotic mapping functions. The proposed CSCF approach is operated under various chaotic phases and the optimal chaotic variants containing the best chaotic mapping are selected. The general architecture of the proposed CSCF algorithm is represented in Fig. 1. The initial step involves in parameter initialization followed by the random initialization of the function. Then the fitness function is evaluated and if the trial is less than the limit, the chaotically tuned Jth and Kth of the firefly algorithm is formulated to obtain the best optimal solution; else the chaotically tuned R1, R2 and R3 of the sine–cosine algorithm are formulated to obtain the best optimal solution. The boxes that are highlighted characterize the new variants of the original algorithm. The diverse variants of CSCF approaches are delineated in the following section.

Fig. 1
figure 1

Flow chart representation of a CSCF algorithm

3.1 Variants of CSCF approach

The following subsections describe numerous variants of the CSCF (sine–cosine algorithm and firefly algorithm) approach in accordance with the tuned parameters.

3.1.1 Variant-I

The parameter \(J\) of Eq. (7) is modified by chaotic maps (CM). Therefore, the new version of Eq. (7) is determined in the following equation.

$$P_{X}^{R + 1} = P_{X}^{R} + \alpha_{0} {\text{e}}^{{ - \beta \,D^{2} }} (P_{Y} - P_{X} ) + J^{CHAOS(.)} (\eta ) + K(P_{A} - P_{X} )$$
(16)

From Eq. (16), the chaotic random movement of the firefly is denoted as \(J^{CHAOS(.)}\) and are determined by \(J^{CHAOS(.)} = J.CM_{I}\). Here, \(J\) is a fixed value in standard firefly, while in variant-I, it evolves chaotically.

3.1.2 Variant-II

In this version, the parameter \(K\) of Eq. (7) is modified such that it is changed chaotically using the chaotic maps (CM). Therefore,

$$P_{X}^{R + 1} = P_{X}^{R} + \alpha_{0} {\text{e}}^{{ - \beta \,D^{2} }} (P_{Y} - P_{X} ) + J(\eta ) + K^{CHAOS(.)} (P_{A} - P_{X} )$$
(17)

From the above equation, \(K^{CHAOS(.)}\) represents the chaotic fractional difference between the arbitrary fireflies. The standard firefly optimization algorithm generates the random position, whereas the chaotic firefly generates according to the chaotic maps.

3.1.3 Variant-III

The parameter \(R_{1}\) of Eq. (13) is modulated using chaotic maps during iterations. Thus Eq. (13) is changed to,

$$P_{X}^{T + 1} = \left\{ \begin{gathered} P_{X}^{T} + R_{1}^{CHAOS(.)} \sin \,(R_{2} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|;\,\,R_{4\,\,} < 0.5 \hfill \\ P_{X}^{T} + R_{1}^{CHAOS(.)} \cos \,(R_{2} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|;\,R_{4\,\,} \ge 0.5 \hfill \\ \end{gathered} \right.$$
(18)

From Eq. (18), in standard sine–cosine algorithm, \(R_{1}\) is created randomly between 0 and 1, while in variant III, it is a chaotic number between 0 and 1.

3.1.4 Variant-IV

In this version, \(R_{2}\) the parameter is modified such that it is chaotically altered using CM. Then,

$$P_{X}^{T + 1} = \left\{ \begin{gathered} P_{X}^{T} + R_{1} \sin \,(R_{2}^{CHAOS(.)} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|;\,\,R_{4\,\,} < 0.5 \hfill \\ P_{X}^{T} + R_{1} \cos \,(R_{2}^{CHAOS(.)} )\,\left| {R_{3} Z_{X}^{T} - P_{X}^{T} } \right|;\,R_{4\,\,} \ge 0.5 \hfill \\ \end{gathered} \right.$$
(19)

where in the standard SC algorithm, the random number varies from 0 to 1, while in variant IV, it is a chaotic number between 0 and 1.

3.1.5 Variant-V

The parameter \(R_{3}\) of Eq. (13) is modulated using chaotic maps during iterations. Thus Eq. (13) becomes,

$$P_{X}^{T + 1} = \left\{ \begin{gathered} P_{X}^{T} + R_{1} \sin \,(R_{2} )\,\left| {R_{3}^{CHAOS(.)} Z_{X}^{T} - P_{X}^{T} } \right|;\,\,R_{4\,\,} < 0.5 \hfill \\ P_{X}^{T} + R_{1} \cos \,(R_{2} )\,\left| {R_{3}^{CHAOS(.)} Z_{X}^{T} - P_{X}^{T} } \right|;\,R_{4\,\,} \ge 0.5 \hfill \\ \end{gathered} \right.$$
(20)

From the above equation, \(R_{3}^{CHAOS(.)}\) is the chaotic random value that ranges from 0 to 1.

4 Result and discussions

In this section, various experiments are conducted to evaluate the efficiency and the performances of the chaotic sine–cosine firefly (CSCF) algorithm. Owing to its hypothetical nature, various chaotic functions and benchmark functions are discussed to obtain better optimal results. In addition to this, the proposed CSCF algorithms are compared with several other optimization algorithms such as firefly (FF) algorithm [30], sine–cosine algorithm (SCA) [33], particle swarm optimization (PSO) approach [39], artificial bee colony (ABC) optimization algorithms [40] to evaluate the effectiveness of the CSCF algorithm. Furthermore, followed by the comparison of optimization algorithms, a detailed description of the real-time engineering applications is delineated in the following section. The experimental analysis is carried out under the platform of MATLAB R2016a by using the operating system as Windows 10. The simulations are done on a central processing unit containing Intel Core (TM) i7-6700HQ CPU @ 2.60 GHz with 8G of memory. Then the chaotic benchmark functions and the test functions are explained as follows.

4.1 Chaotic mapping (CM) and benchmark functions

In this section, numerous chaotic benchmark functions are utilized to improve the system performance of the CSCF algorithm [41]. The complex operations, its nature and several other possessions of these chaotic functions are obtained easily from the definitions. Then the chaotic benchmark functions for CSCF algorithm is obtained in Table 1. Table 2 represents the benchmark functions with three different models namely uni-modal test function, multi-modal test function and three fixed dimensions multi-modal test function. Here 20 benchmark functions are employed to investigate the system performances. In Table 2, Fn represents the test functions, DM and FOV signify the dimensional value and the optimal value, respectively.

Table 2 Benchmark functions

4.2 Comparison of CSCF with sine–cosine firefly algorithm

In this section, the chaotic sine–cosine firefly is compared with sine–cosine and firefly algorithms by using four different parameters namely mean (µ) standard deviation (σ), best (B) and worst (W) values. For each functions, the size of the population is predetermined as 20 and the subsequent dimensional values may range from 20, 50 and 100, respectively. In addition to this, the maximum iteration value is set as 500. This paper adopts the technique of scientific notations and the optimal value for various optimization algorithms are represented in bold. The comparative analyses of CSCF and sine–cosine firefly algorithms are mentioned in Table 3. From the table, the comparative analysis reveals that the proposed CSCF algorithm provides better performances when compared with SCF approach. Then Table 4 provides the comparative analysis of CSCF with SCF for different dimensions namely D = 20, D = 50, D = 100. Then the convergence curve is compared for the proposed CSCF and SCF algorithms for various dimensions and the graphical analysis for four functions namely Fn5, Fn10, Fn15 and Fn20 for D = 50 is mentioned in Fig. 2. The analysis reveals that the proposed CSCF approach enhances the solution to a very less value. Also, these function curves signify the exploitation capability of the proposed CSCF approach.

Table 3 Comparative analysis of CSCF with SCF algorithm
Table 4 Comparative analysis of CSCF with SCF for various dimensions
Fig. 2
figure 2

Convergence curve for various functions a Fn5, b Fn10, c Fn15 and d Fn20 with D = 50

4.3 Comparison of CSCF with various optimization algorithms

This section demonstrates the comparative analysis of the proposed CSCF algorithm with various other optimization algorithms such as firefly (FF) algorithm [30], sine–cosine algorithm (SCA) [33], particle swarm optimization (PSO) approach [39], artificial bee colony (ABC) optimization algorithms [40] to evaluate the effectiveness of the CSCF algorithm. Here, the dimension value range is assumed to be D = 100, where each algorithm is implemented by using 20 benchmark functions. Moreover, the size of the initial population is set as 20. Therefore, the comparative analysis of various optimization approaches with respect to mean (µ) standard deviation (σ) is explained in Table 5. Also, the comparative analysis for various optimization approaches with respect to best value (B) and worst value (W) is explained in Table 6. The experimental analysis based on average rank testing of the CSCF approach is compared with FF, SCA, PSO and ABC in Table 7. Therefore, the experimental results for two different types of tests namely Wilcoxon’s rank-sum (R-S) test and Wilcoxon’s multiple problem (M-P) tests for the proposed CSCF algorithm based on twenty benchmark functions are described in Table 7. In order to determine the statistical differences among other optimization algorithm and the proposed CSCF algorithm, the Wilcoxon’s (R-S) test is employed. To confirm the validity generated in the above tables are determined by the Wilcoxon’s (M-P) tests. In addition to this, the value of \(P < (\varepsilon = 0.1\;{\text{and}}\;0.05)\) and \(r^{ + } \;{\text{and}}\;r^{ - }\) values are greater for all respective cases. Thus the analysis reveals that the proposed CSCF algorithm provides better performances when compared to all other approaches [42].

Table 5 Comparative analysis of various optimization algorithms with respect to mean (µ) standard deviation (σ)
Table 6 Comparative analysis of various optimization algorithms with respect to best value (B) and worst value (W)
Table 7 Analysis of Wilcoxon’s (R-S) test and Wilcoxon’s (M-P) tests of CSCF algorithm

4.4 Real-time engineering design problem for CSCF

In order to evaluate the metaheuristic approaches, it is necessary to implement the proposed algorithm on to the real-time engineering problem. Also, these real-time engineering problems constitute numerous equality and inequality constraints and hence it is necessary to evaluate the constrained problem. In this section, the efficiency and the performances of the proposed CSCF algorithm are solved by evaluating three different types of engineering design problems namely welded beam design \(({\text{WB}}_{D} )\), pressure vessel design \(({\text{PV}}_{D} )\) and tension–compression spring design \((T - {\text{CS}}_{D} )\). These engineering design problems are described briefly in the following section. Here, the initial size of the population is set as 20 and the maximum size of the population is set as 100.

  1. A

    Illustration 1: problem based on welded beam design \(({\text{WB}}_{D} )\)

This section illustrates problem based on the design of a welding beam \(({\text{WB}}_{D} )\)[43], where the minimum cost function is subjected to several constraints namely the beam’s end deflection \(({\text{BE}}_{D} )\), beam’s bending stress \(({\text{BB}}_{S} )\), shear stress \((S_{S} )\) and buckling load of the bar \(({\text{BB}}_{L} )\). Moreover, the \(({\text{WB}}_{D} )\) comprises of four different types of variables namely \(H(Z_{1} )\), \(L(Z_{2} )\), \(T(Z_{3} )\) and \(B(Z_{1} )\), respectively. The structural model for the problem based on a welding beam \((WB_{D} )\) is represented in Fig. 3.

Fig. 3
figure 3

Design for the welding beam \((WB_{D} )\) problem

The mathematical expression based on the design for the problem based on a welding beam \(({\text{WB}}_{D} )\) is formulated in the following section.

$${\text{Minimize}}:\,\,\,\,F(Z) = 1.1047LZ_{1}^{2} Z_{2} + 0.04811Z_{3} Z_{4} (14.0 + Z_{2} )$$
(21)
$${\text{Subject}}\,\,{\text{to}}:$$
$$G_{1} (Z) = S_{S} (Z) - S_{S}^{{{\text{MAX}}}} \le 0$$
(22)
$$G_{2} (Z) = {\text{BB}}_{S} (Z) - {\text{BB}}_{S}^{{{\text{MAX}}}} \le 0$$
(23)
$$G_{3} (Z) = Z - 1 - Z_{4} \le 0$$
(24)
$$G_{4} (Z) = 1.1047LZ_{1}^{2} + 0.04811Z_{3} Z_{4} (14.0 + Z_{2} ) - 5.0 \le 0$$
(25)
$$G_{5} (Z) = 0.125 - Z_{1} \le 0$$
(26)
$$G_{6} (Z) = {\text{BE}}_{D} (Z) - {\text{BE}}_{D}^{{{\text{MAX}}}} \le 0$$
(27)
$$G_{7} (Z) = p - {\text{BB}}_{L} (Z) \le 0$$
(28)

Therefore, the expression for several constraints and variables based on the problem based on the design of a welding beam \(({\text{WB}}_{D} )\) is delineated in the following section.

$$S_{S} (Z) = \sqrt {\left( {S_{S}^{^{\prime}} } \right)^{2} + 2S_{S}^{^{\prime}} S_{S}^{^{\prime\prime}} \frac{{Z_{2} }}{2r} + \left( {S_{S}^{^{\prime\prime}} } \right)^{2} }$$
(29)

From the above equation,

$$\begin{aligned} & S_{S}^{'} = \frac{p}{{\sqrt 2 \,Z_{1} Z_{2} }};\;S_{S}^{{''}} = \frac{{Jr}}{M};\;J = P\left( {l + \frac{{Z_{2} }}{2}} \right);\;{\text{BB}}_{S} (Z) = \frac{{6pl}}{{Z_{4} \,Z_{3}^{2} }} \\ & {\text{BE}}_{D} (Z) = \frac{{4pl^{3} }}{{eZ_{4} \,Z_{3}^{3} }};\;M = 2\sqrt 2 \,Z_{1} Z_{2} \left[ {\frac{{Z_{2}^{2} }}{{12}} + \left( {\frac{{Z_{1} + Z_{3} }}{2}} \right)^{2} } \right] \\ & r = \sqrt {\frac{{Z_{2}^{2} }}{4} + \left( {\frac{{Z_{1} + Z_{2} }}{2}} \right)^{2} } ;\;{\text{BB}}_{L}^{{}} (Z) = \frac{{4.013e\sqrt {\frac{{Z_{3}^{2} Z_{4}^{6} }}{{36}}} }}{{l^{2} }}\left( {1 - \frac{{Z_{3} }}{{2l}}\sqrt {\frac{e}{{4F}}} } \right) \\ & p = 6000{\text{LB}};\,\,l = 14\,in\,;\,\,e = 30 \times 10^{6} \;{\text{psi}};\,\,F = 12 \times 10^{6} \;{\text{psi}} \\ & S_{S}^{{{\text{MAX}}}} = 1360\,{\text{psi}}\quad BB_{S}^{{{\text{MAX}}}} = 3000\;{\text{psi}}\quad BE_{D}^{{{\text{MAX}}}} = 0.25\;{\text{psi}} \\ \end{aligned}$$

Table 8 provides the best solutions for various approaches such as FF, SCA, PSO, ABC and proposed CSCF approaches. Table 9 provides the statistical analysis for the mean (µ) standard deviation (σ), best value (B) and worst value (W).

  1. B.

    Illustration 2: problem based on pressure vessel design \(({\text{PV}}_{D} )\)

Table 8 Best solutions for various approaches based on \(WB_{D}\)
Table 9 Statistical analysis of various approaches for \(WB_{D}\)

The problem based on pressure vessel design \(({\text{PV}}_{D} )\) aims in minimizing the manufacturing cost function [44]. The structural design of the pressure vessel is represented in Fig. 4 that contains the working pressure and the volume of about 3000 psi and 750 ft3. In addition to this, the pressure vessel design \(({\text{PV}}_{D} )\) comprises of four different variables namely the shell thickness \(S_{T}\) as \(Z_{1}\), Head thickness \(H_{T}\) as \(Z_{2}\), inner radius \(I_{R}\) as \(Z_{3}\), the cylindrical section having the length l as \(Z_{4}\). Here, the continuous variables are denoted as \(Z_{3}\) and \(Z_{4}\) where the integral multiples are denoted as \(Z_{1}\) and \(Z_{2}\), respectively. Then the mathematical expression based on the design for the problem based on pressure vessel design \(({\text{PV}}_{D} )\) is formulated in the following section.

$${\text{Minimize}}:\,\,\,\,F(Z) = 0.6224Z_{1} Z_{3} Z_{4} + 1.7781Z_{2} Z_{3}^{2} + 3.1611Z_{1}^{2} Z_{4} + 19.84Z_{1}^{2} Z_{3}$$
(30)
$${\text{Subject}}\,\,{\text{to}}:$$
$$G_{1} (Z_{1} ,Z_{3} ) = - Z_{1} + 0.0193Z_{3} \le 0$$
(31)
$$G_{2} (Z_{2} ,Z_{3} ) = - Z_{2} + 0.0095Z_{3} \le 0$$
(32)
$$G_{3} (Z_{3} ,Z_{4} ) = - \pi \,Z_{3}^{2} Z_{4} - \frac{4}{3}\pi \,Z_{3}^{2} + 1296000 \le 0$$
(33)
$$G_{4} (Z_{4} ) = Z_{4} + 240 \le 0$$
(34)
Fig. 4
figure 4

Design for pressure vessel design \((PV_{D} )\) problem

Table 10 provides the best solutions for various approaches such as FF, SCA, PSO, ABC and proposed CSCF approaches. Table 11 provides the statistical analysis for the mean (µ) standard deviation (σ), best value (B) and worst value (W).

  1. C.

    Illustration 3: problem based on tension–compression spring design \((T - {\text{CS}}_{D} )\)

Table 10 Best solutions for various approaches based on \(PV_{D}\)
Table 11 Statistical analysis of various approaches for \(PV_{D}\)

Figure 5 describes the structural model for the problem based on tension–compression spring design \((T - {\text{CS}}_{D} )\). Here, the \((T - {\text{CS}}_{D} )\) is considered as one of the continuous constrained problem developed by Belegundu [45]. Moreover, the tension–compression spring design \((T - {\text{CS}}_{D} )\) comprises of four different parameters namely diameter of the coil \((D_{C} )\), active coil number \((N_{C} )\) with the diameter \((D)\). Then the mathematical expression based on the design for the problem based on tension–compression spring design \((T - {\text{CS}}_{D} )\) is formulated in the following section.

$${\text{Let}}\;{\text{us}}\;{\text{assume}},\;Z = \,\left[ {Z_{1} ,Z_{2} ,Z_{3} } \right] = D_{C} ,N_{C} ,D$$
(35)
$$Minimize:\,\,\,\,F(Z) = \left[ {N_{C} + 2} \right]\,D_{C} D^{2}$$
(36)
$$Subject\,\,to:$$
$$G_{1} (Z) = 1 - \frac{{D_{C}^{3} N_{C} }}{71785\,D} \le 0\,\,$$
(37)
$$G_{2} (Z) = \frac{{4D_{C}^{2} - DD_{C} }}{{12566(D_{C}^{{}} D_{{}}^{2} - D_{{}}^{4} )}} + \frac{1}{{5108D_{{}}^{2} }} - 1 \le 0$$
(38)
$$G_{3} (Z) = 1 - \frac{140.45D}{{N_{C}^{{}} D_{{}}^{2} }} \le 0$$
(39)
$$G_{4} (Z) = \frac{{D + D_{C}^{{}} }}{1.5} - 1 \le 0$$
(40)
Fig. 5
figure 5

Design for tension–compression spring design \((T - CS_{D} )\) problem

Then the design variables for the problem based on tension–compression spring design \((T - {\text{CS}}_{D} )\) are delineated in the following Section. \(0.05 \le D \le 2;\;0.25 \le D_{C} \le 1.3\) as well as \(2 \le D_{C} \le 15\). Table 12 provides the best solutions for various approaches such as FF, SCA, PSO, ABC and proposed CSCF approaches. Table 13 provides the statistical analysis for the mean (µ) standard deviation (σ), best value (B) and worst value (W).

Table 12 Best solutions for various approaches based on \(T - {\mathrm{CS}}_{D}\)
Table 13 Statistical analysis of various approaches for \(T - {\mathrm{CS}}_{D}\)

Then, various chaotic variants namely.

Variant-I, Variant-II, Variant-III, Variant- IV, and Variant- V of the novel CSCF algorithm are employed in solving the above-mentioned three engineering problems namely \(P_{1} ,\,P_{2} ,\,P_{3}\) that are represented in Table 14. Figure 6 explains the ranking system of five different variants of the CSCSF algorithm. From the graphical analysis, it is noted that the fourth variant of the circle mapping provides minimum mean absolute error (MAE) when compared with all other variants. The term MAE is defined as the average value obtained by the absolute difference among the actual value and the predicted value. Finally, Fig. 7 describes the convergence time with respect to all the five variants. The graphical analysis reveals that the variant-II comprises of less convergence time during the running process when compared with all other variants.

Table 14 CM optimization for six variants of CSCF algorithm
Fig. 6
figure 6

MAE versus variants for a P1, b P2, c P3

Fig. 7
figure 7

Convergence time versus variants

5 Conclusion

This paper proposed a novel chaotic sine–cosine firefly (CSCF) algorithm with numerous variants to solve optimization problems such as computational complexity, memory space, tricky derivations, efficiency, and convergence speed. The chaotic form of two algorithms namely the sine–cosine algorithm (SCA) and the Firefly (FF) algorithms are integrated to improve the convergence speed and efficiency to minimize the complexity issues. Moreover, the proposed CSCF approach is operated under various chaotic phases and the optimal chaotic variants containing the best chaotic mapping is selected. Then various experiments are conducted to evaluate the efficiency and the performances of the chaotic sine–cosine firefly (CSCF) algorithm. Owing to its hypothetical nature, various chaotic functions and benchmark functions are discussed to obtain better optimal results. Furthermore, the proposed CSCF algorithms are compared with several other optimization algorithms such as firefly (FF) algorithm, particle swarm optimization (PSO) approach, artificial bee colony (ABC) optimization algorithms to evaluate the effectiveness of the CSCF algorithm. Finally, the efficiency and the performances of the proposed CSCF algorithm is solved by evaluating three different types of engineering design problems to prove the efficiency, robustness and effectiveness of the system.