Introduction

Overview

In computer science, optimization is the procedure of selecting the optimum solutions for a particular system from among all the potential values to optimize the result. As the sophistication of problems has expanded over the last few decades, the demand for innovative optimization approaches has become increasingly critical1. In particular, earlier traditional mathematical strategies that have been employed to handle optimization design problems are usually deterministic and suffer from a severe difficulty known as “local optimality trapping.” As a result, these strategies are extremely inefficient when applied to real-world optimization problems, which has increased attention in stochastic optimization algorithms during the last 20 years2. Most real-world optimization problems, such as those in engineering, bio-informatics, tuning of machine learning parameters, feature selection, image processing, wireless sensor networks, and other fields, are highly non-linear and non-convex as a result of the presence of complex constraints and a large number of design variables in the problem domain. As a result, solving them is difficult due to many inherent local minima in such optimization problems. Furthermore, there is no certainty that a worldwide solution will be found. In order to overcome the challenges connected with these types of real-world optimization problems, it is necessary to develop new and more effective strategies for finding better solutions. Many researchers have attempted to suggest new algorithms and/or enhance the current ones to arrive at satisfactory results3.

As discussed earlier, optimization is a growing research study that deals with maximizing or minimizing the objectives of given optimization problems. Practical optimization problems are often labelled NP-hard issues that traditional computational models cannot adequately or correctly solve4. Metaheuristic optimization techniques have become more prominent for solving various problems in different domains to accompany the realities. (i) it depends on basic concepts and is simple to execute; (ii) does not require details on the cost function gradient; (iii) can avoid local optima; and (iv) it is used to handle a multitude of problems in multiple fields. As the implementation of metaheuristic techniques relies on computing facilities, the advancement of metaheuristics has been enhanced by improvements in computational capability5,6,7,8. The two principal stages of metaheuristics are exploitation and exploration. The significant differences between metaheuristic optimization exist in the primary ways in which those two phases are balanced. Regarding metaheuristic techniques, such as population-based or single-solution-based metaheuristics, the difference around them is a primary concept and is sometimes considered fundamental. Traditional metaheuristics based on single solutions seem to be higher intensification than diversification, whereas metaheuristics based on populations are more diversification than intensification. Due to the stochastic nature of metaheuristic techniques, balancing the two stages is going to be difficult9,10.

The introduction of new optimization algorithms is justified by several factors that aim to improve existing methods and address specific challenges. Firstly, new algorithms can enhance efficiency by reducing computational complexity and the time required to find optimal solutions. Techniques like parallel computing, metaheuristics, and machine learning enable algorithms to explore the search space effectively and converge faster. Secondly, complex and large-scale problems often demand more sophisticated approaches. Traditional algorithms may struggle due to computational limitations, making it necessary to develop new algorithms, such as evolutionary algorithms and swarm intelligence, to handle these challenges. Thirdly, robustness and flexibility are crucial in optimization. New algorithms incorporate techniques to handle uncertainties, noisy data, and dynamic environments, ensuring more reliable and adaptable solutions11,12.

Additionally, many optimization problems have multiple local optima that can trap traditional algorithms. Novel algorithms introduce exploration and exploitation techniques to overcome local optima and improve the chances of finding the global optimum. Furthermore, problem-specific optimization algorithms are developed to exploit domain-specific knowledge and problem structures. These algorithms offer significant improvements by leveraging insights from specific domains like scheduling, network optimization, or supply chain management. Lastly, advancements in computing power enable new algorithms to handle larger problem instances and perform more extensive searches. Algorithms can utilize parallel, distributed, or cloud computing to expedite the optimization process. Overall, the justifications for introducing new optimization algorithms include improved efficiency, handling complex problems, robustness, overcoming local optima, problem-specific optimization, and leveraging advancements in computing power. These justifications drive progress in optimization research, providing more effective solutions to real-world problems13,14,15.

Literature study

An established subgroup of the evolutionary algorithm consists of optimization methods inspired by nature that have immense potential to address such combinatorial optimization challenges. The domain of nature-inspired optimization algorithms has seen many studies in the earlier few decades. The investigators discussed developments throughout every area of life and Darwinian selection optimization approaches. Human-based algorithms (HBA), physics-based algorithms (PBA), swarm-based algorithms (SBA), and evolutionary algorithms (EA) are the four main categories under which nature-inspired optimization algorithms are categorized. A few advanced and famous techniques from each branch are discussed as follows. The natural law processes inspire the EA. Initialization is the first step in EA in a random search location, and then successive iterations keep evolving. These techniques determine the optimal population in a generation and merge to create the next population generation. Thus, the solution accuracy of the population is enhanced over iterations. The most prominent EA approach is the genetic algorithm (GA), replicating Darwin’s theory16. Each solution is portrayed as a chromosome in a GA, and the chromosomes with a maximum fitness value are often traversed with other chromosomes in every generation. Therefore, over generations, the overall fitness of all chromosomes improves. Evolution Strategy (ES)17, Biogeography-Based Optimizer (BBO)18, and Differential Evolutionary (DE)19 are among the algorithms in this group.

SBAs are frequently motivated by the coordinated intelligent actions of living creatures. Living things interrelate with each other in everyday life to attain the highest possible combined efforts. In this category, Particle Swarm Optimization (PSO) is among the utmost effective methods20. The PSO algorithm is driven by the food-searching actions of the birds' swarms21. Another important technique in this group is the Ant Colony Optimization (ACO) algorithm, which is motivated by the direction of the food source of ants seeking behaviour from the colony22. Krill Herd (KH)23, Cuckoo Search Algorithm (CSA)24, Ant Lion Optimizer (ALO)25, Artificial Bee Colony (ABC)26,27, Bat Algorithm (BA)28, Firefly Algorithm (FA)29,30, Grey-Wolf Optimizer (GWO)31,32, Manta-Ray Foraging Optimization (MRFO)33, Salp Swarm Optimization (SSA)34, artificial rabbit optimizer35, Whale Optimization Algorithm (WOA)36, moth flame optimization37, and Marine-Predator Algorithm (MPA)38 are few examples of swarm-based algorithms that are recently reported.

The third cluster, known as PBA, consists of computations that apply physical principles. For instance, the Big-Bang Crunch (BBC) is based on the two leading theories of the universe's evolution39. The Simulated Annealing (SA) is motivated by metal hardening, including controlled cooling of a substance and heating to expand the crystals' size and decrease the defect density40. The Gravitational Search (GS) method is motivated by the law of interactions of mass and gravity41, the Small-World Optimization (SWO) algorithm42, the Galaxy-Based Search (GBS) algorithm43, Quantum-inspired Genetic (QG) algorithm44, Sine–Cosine Algorithm (SCA)45, atom search algorithm46, Crystal Structure Algorithm (CrSA)47, Hysteretic Optimization (HO) algorithm48, Central Force Optimization (CFO) algorithm49, Charged System Search (CSS) algorithm50, and Gravitational Local Search (GLS) algorithm51 are other well-known algorithms.

In addition to methods motivated by nature, another class of metaheuristic algorithms known as human activities influenced HBA. Harmony Search (HS) is an analogy to the musical method of looking for a balanced state of equilibrium to find solutions to optimization problems52. The Teaching–Learning-Based Optimization (TLBO) algorithm is perhaps the most common technique in this category based on activities necessary in teaching–learning, wherein the teacher impacts the students' performance in the classroom. Both teaching and self-learning impact the outcome of the students53. Forensic-Based Investigation (FBI) algorithm is influenced by police officers involved in forensic investigations in the suspicious activity location-pursuit method54. Election-Campaign (EC) algorithm55, Tabu Search (TS) algorithm56, Artificial Immune Algorithm57, Social-Based Algorithm (SBA)58, League Championship (LC) algorithm59, Political Optimizer (PO)60, Group Search Optimization (GSO) algorithm61, RAO62, and Imperialist Competitive (IC) algorithm63 are other standard optimizations. The pictorial illustration of metaheuristic classification is shown in Fig. 1.

Figure 1
figure 1

A brief classification of metaheuristic algorithms.

In contrast to all the aforementioned advanced methods, many population-based algorithms have been developed recently. The following are a few common swarm-based metaheuristic strategies that have recently been developed. The Squirrel Search (SS) algorithm is stimulated by the searching actions of flying squirrels64, the Seagull Optimization (SO) algorithm is stimulated by the seagull’s movement and attacking actions65, the Tunicate Swarm Algorithm (TSA) is stimulated by the swarming behaviour of tunicates at sea66, Emperor Penguins Colony (EPC) algorithm stimulated by the movement of penguins67, Colony Predation Algorithm (CPA) stimulated by corporate predation of animals68, Butterfly Optimization (BO) algorithm (BOA) stimulated by butterflies food searching and matting actions69, and Harris Hawk Optimization (HHO) algorithm stimulated by supportive and chasing actions of Harris’ hawks70. Furthermore, additional human-based metaheuristic techniques are named as follows. Poor and Rich Optimization (PRO) algorithm71, Team Game (TG) algorithm stimulated by game plans used in volleyball, basketball, and football72, and Deer Hunting Optimization (DHO) algorithm stimulated by human beings’ hunting approaches73. The mathematical operators inspired the Arithmetic Optimization Algorithm (AOA)74. Besides, the latest progress in the area of optimization techniques involves, but is not restricted to, the PO method stimulated by the political system75, the Equilibrium Optimizer (EO) algorithm stimulated by mass balance models of control volume being used in estimating the both dynamic and equilibrium conditions76, Henry Gas Solubility Optimization (HGSO) algorithm stimulated by the law of Henry’s77, Slime Mould Optimization (SMO) algorithm stimulated by the slime mould’s oscillation mode78, and Artificial Electric Field (AEF) algorithm stimulated by Newtons’ law of motion and Coulombs’ law of electrostatic force79.

Mostly, metaheuristic algorithms are used to solve real-world engineering problems. For instance, non-linear MPA is used for Hammerstein autoregressive exogenous systems80, chaotic GWO is used in identification of control autoregressive model81, MPA with key term separation technique used for nonlinear Hammerstein system identification82, Dwarf mongoose algorithm for identification of autoregressive exogenous model83, Aquila optimizer for control autoregressive systems identification84, etc. Though the algorithms are used for real-world applications, still most of the algorithms struggle to handle constraint optimization problems.

Motivation

All the mentioned metaheuristic algorithms are tested using optimization problems and different engineering optimization problems. The inventors of the algorithms mentioned above have claimed that their algorithms best handle specific problems. However, anyone algorithm cannot solve all types of optimization problems. This was also stated and proved in No-Free-Lunch (NFL) theorem85. As per the NFL theory, no single algorithm can solve all optimization problems.

The Resistance Capacitance Optimization Algorithm (RCOA) proposal is primarily motivated by the need for more efficient and reliable optimization algorithms, particularly for numerical and engineering design optimization problems. Traditional algorithms often face limitations such as premature convergence to local optima, inability to handle multimodal and complex optimization landscapes and requirement of various tuning parameters. By mimicking the time response of resistance–capacitance circuits, the RCOA overcomes these challenges with its unique exploration and exploitation phases, absence of control parameters, and ability to handle complex multimodal functions. Physically-inspired or physics-based optimization techniques, like the RCOA, draw motivation from natural phenomena and processes. They are often lauded for their simplicity, adaptability, robustness, and ability to solve a diverse range of complex optimization problems. Several noteworthy examples, such as SA, PSO, GS algorithm, etc., demonstrate the wide applications, such as operational research, computer science, artificial intelligence, neural network training, fuzzy system control, robotics, feature selection, tuning of fuzzy systems, image processing, structural design optimization, water network design, routing, scheduling problems, etc., of these techniques. These diverse applications underscore the versatility and robustness of physics-based optimization techniques.

Regarding RCOA, the goal is to build upon these successes while addressing the limitations often associated with metaheuristics. Given its initial promising results, the RCOA represents a significant step forward in evolving physics-inspired optimization techniques. In addition, most of the above techniques are motivated by nature and humans, and only very limited physics-based algorithms are proposed. This motivated us to propose a new PBA to solve engineering optimization problems based on the transient and steady-state responses of the series connected resistance–capacitance circuit named the Resistance–Capacitance Optimization Algorithm (RCOA). The reported RCOA is not tested on global optimization and constrained engineering design problems. It motivated us to investigate the performance of the RCOA for constrained problems. In addition, the balance between exploration and exploitation is also analyzed using standard unimodal and multimodal benchmark test functions.

Major contributions

Furthermore, the main contribution of this study is as follows.

  • The proposed RCOA is thoroughly evaluated on 23 standard benchmark problems, including unimodal, multimodal, and fixed and variable dimensions features. This paper included detailed performance metrics in the manuscript to illustrate the specific improvements achieved by RCOA explicitly.

  • A penalty function based constraint handling mechanism is employed in this study. This feature uniquely equips the RCOA to handle constrained optimization problems, broadening its applicability and effectiveness.

  • The RCOA is applied to eight real-world constraint engineering design optimization problems to demonstrate its practical utility. These tests highlight RCOA's versatility and provide insights into its potential applications in the industry.

  • This study also establishes the superior performance of the RCOA through direct comparison with seven established optimization techniques. The specific areas of superiority and the corresponding quantifiable gains achieved by RCOA are clearly defined in this study.

  • To further corroborate the effectiveness of RCOA, this study conducted Friedman’s rank test and Wilcoxon's rank sum test. These rigorous statistical methods offer a robust confirmation of RCOA's superior performance, thereby enhancing the credibility of our findings.

Organization of the paper

The paper is organized as follows. In Section “Modelling of the resistance–capacitance optimization algorithm”, the suggested RCOA's inspiration and modelling are discussed, and in Section “Resistance capacitance optimization algorithm (RCOA)”, the suggested RCOA's effective implementation is described. Section “Simulation results and discussions” deeply investigates the performance of the RCOA using the experimental results obtained for 23 benchmark functions. Section “Real-world engineering design optimization problems” discusses the penalty-based constrained handling mechanism and the application of the RCOA in solving constraint engineering design optimization problems. Lastly, Section “Conclusions and future scopes” concludes the paper.

Modelling of the resistance–capacitance optimization algorithm

This section comprehensively discusses the mathematical modelling of the Resistance–Capacitance Optimization Algorithm (RCOA).

Kirchhoff’s law of current (KCL)

KCL is commonly known as the Conservation of Charge, as the current is conserved around the junction with no current loss. In other words, “There is exactly the amount of current or charge approaching a junction or node as there is exiting it as it has no other place to go except to leave, as no charge is lost within the node86”. It is mentioned that all currents entering and exiting the junction must add up to zero algebraically as shown in Fig. 2.

Figure 2
figure 2

Illustration of the KCL.

In Fig. 2, the three currents, such as I1, I2, and I3, are entering the nodes, and their magnitude is positive. The three currents, such as I4, I5, and I6, leave the nodes, and their magnitude is negative. From Fig. 1, the total current equation is expressed as follows.

$${I}_{1}+{I}_{2}+{I}_{3}-{I}_{4}-{I}_{5}-{I}_{6}=0.$$
(1)

The term Node in Fig. 2 refers to a junction or connection of two or more current elements or paths, such as components and cables.

Mathematical concepts

The modern physics approach to the transient behaviour of the resistance–capacitance circuit is given in many textbooks, e.g., Refs.87,88,89. The current or voltage source is modelled as a step function when the direct-current (DC) source is instantly applied to the resistance–capacitance (RC) circuit, and the state is described as a step response. The step response is caused by the sudden application of a DC voltage to the resistance–capacitance circuit, which is depicted in Fig. 3. The initial voltage across the capacitor is denoted as \({v}_{0}\). In the meantime, the voltage across the capacitor cannot change suddenly,

$$v\left({0}^{-}\right)=v\left({0}^{+}\right)={v}_{0},$$
(2)

where \(v\left({0}^{-}\right)\) signifies the capacitor voltage before closing the switch and \(v\left({0}^{+}\right)\) signifies the capacitor voltage after the voltage is applied by closing the switch. Here, the voltage across the capacitor is selected as the response of the circuit response to be calculated. The initial voltage across the capacitor is considered even though it is not required to analyze the RC circuit's step response. Apply Kirchhoff’s current law to Fig. 3, and the current equation is expressed as follows.

Figure 3
figure 3

Resistance–capacitance circuit with DC input voltage.

$$\left.\begin{array}{c}\begin{array}{c}C\frac{dv}{dt}+\frac{v-{V}_{s}u\left(t\right)}{R}=0\\ (\mathrm{or})\end{array}\\ \frac{dv}{dt}+\frac{v}{RC}=\frac{{V}_{s}}{RC}u\left(t\right)\end{array}\right\}.$$
(3)

The capacitor voltage when the time t is greater than zero is denoted as v. For \(t>0\), Eq. (3) is modified and presented in Eq. (4).

$$\frac{dv}{dt}+\frac{v}{RC}=\frac{{V}_{s}}{RC}.$$
(4)

Rearrange Eq. (4), and the equation is simplified as follows.

$$\frac{dv}{(v-{V}_{s})}=-\frac{dt}{RC}.$$
(5)

Integrate both sides of Eq. (5) and introduce the initial condition in Eq. (5), and the final equation is written as follows.

$$\mathrm{ln}\frac{v-{V}_{s}}{({v}_{0}-{V}_{s})}=-\frac{t}{RC}.$$
(6)

Taking exponential on both sides of Eq. (6), the voltage across the capacitor is written as follows.

$$v\left(t\right)={V}_{s}+\left({v}_{0}-{V}_{s}\right){e}^{-\frac{t}{\tau }},$$
(7)

where the initial voltage across the capacitor is denoted as \({v}_{0}\) at t = 0, \(\tau\) is a time constant of the RC circuit and is equal to RC and \(v\left(\infty \right)\) is the steady-state voltage when t > 0. This is referred to as the RC circuit's complete response to a sudden DC voltage application, assuming that the capacitor is primarily charged. Thus, the complete response of the RC circuit is expressed as follows87,88,89.

$$v\left( t \right) = \left\{ {\begin{array}{ll} {v_{0} ,} & {t < 0} \\ {V_{s} + \left( {v_{0} - V_{s} } \right)e^{{ - \frac{t}{\tau }}} ,} & {t > 0} \\ \end{array} } \right..$$
(8)

The complete resistance–capacitance circuit response is illustrated in Fig. 4 by considering the value of \(R=2.5 k\Omega\), \(C=1mF\), and \(Vs=10 V\) (step signal) by assuming \({V}_{s}<{v}_{0}\). Consider the initial voltage across the capacitor is zero, i.e., \({v}_{0}=0 V\). Equation (8) is modified by substituting \({v}_{0}=0\) and written in Eq. (9)87,88,89.

Figure 4
figure 4

Voltage across the capacitor with zero initial voltage.

$$v\left( t \right) = \left\{ {\begin{array}{ll} {0,} & {t < 0} \\ {v_{i}^{{Final}} \times \left( {1 - e^{{ - \frac{t}{\tau }}} } \right),} & {t > 0} \\ \end{array} } \right..$$
(9)

Equation (9) can be rewritten as presented in Eq. (10).

$$v\left(t\right)={V}_{s}\times \left(1-{e}^{-\frac{t}{\tau }}\right)\times u\left(t\right).$$
(10)

Equation (10) considers the starting capacitor voltage to be zero and provides the entire response of the resistance–capacitance circuit. In Fig. 5, the resistance–capacitance circuit response is shown with an initial capacitor voltage (\({v}_{0}=2 V\)).

Figure 5
figure 5

Voltage across the capacitor with an initial voltage.

More accurately, there is a comprehensive procedure for determining the dynamic response of an RC circuit rather than going through the previous equations. Let's take another look at Eq. (7), which is a little more comprehensive than Eq. (10). It is clear that there are two halves to it. There are two methods to break this down into two portions in the traditional sense. The first is to divide it into transient and steady-state responses or forced and natural responses and Eqs. (11), (12) express the total response of the RC circuit.

$$\mathrm{Complete\, Response}=\mathrm{Natural\, Response}+\mathrm{Forced\, Response},$$
(11)

or

$$\left.\begin{array}{l}v={v}_{natural}+{v}_{forced}\\ {v}_{natural}={v}_{o}\times {e}^{-\frac{t}{\tau }}\\ {v}_{forced}={V}_{s}\times \left(1-{e}^{-\frac{t}{\tau }}\right)\end{array}\right\}.$$
(12)

Because of the exponential decay of the initial voltage, the output of the RC circuit is a function of time. Because the response is caused by the initial energy stored in the circuit and the physical aspects of the circuit rather than by an external source, it is referred to as the natural response \({v}_{natural}\). \({v}_{forced}\) is referred to as the forced response since it is generated by the circuit when an external source is applied. It depicts what the circuit is compelled to do due to the input stimulation. Eventually, the transient component disappears, keeping only the steady-state component.

Similarly, another way to look at the entire response is to split it into two phases: transient (or temporary) and steady-state (or permanent), as shown in Eqs. (13), (14).

$$\mathrm{Complete\, Response}=\mathrm{Transient \,State\, Response}+\mathrm{Steady \,State \,Response},$$
(13)

or

$$\left.\begin{array}{l}v={v}_{ts}+{v}_{ss}\\ {v}_{ts}={v}_{o}\times {e}^{-\frac{t}{\tau }}\\ {v}_{ss}={V}_{s}\times \left(1-{e}^{-\frac{t}{\tau }}\right)\end{array}\right\}.$$
(14)

Because it is fleeting, the transient response \({v}_{ts}\) is defined as the portion of the overall behaviour that decays to zero as the duration reaches infinity. The portion of the total response that persists after the transitory response has died out is referred to as the steady-state response \({v}_{ss}\).

The origin of the responses is the first decomposition of the complete response, whereas the permanence of the responses is the second decomposition. The natural and transient responses are similar in some situations. The steady-state and forced responses are similarly affected. In any case, the whole solution in Eq. (7) could be stated as follows.

$$v\left(t\right)=v\left(\infty \right)+\left({v}_{0}-v\left(\infty \right)\right){e}^{-\frac{t}{\tau }}, t>0,$$
(15)

or

$${v}_{i}^{new}={v}_{i}^{Final}+\left({v}_{i}^{Initial}-{v}_{i}^{Final}\right){e}^{-\frac{t}{\tau }}, t>0,$$
(16)

where \({v}_{0}\) or \({v}_{i}^{Initial}\) denotes the initial voltage at \(t={0}^{+}\) and \(v\left(\infty \right)\) or \({v}_{i}^{Final}\) denotes the steady-state value. Therefore, finding the overall response necessitates the following.

  • The initial voltage across the capacitor \({v}_{0}\)

  • The final capacitor voltage \(v\left(\infty \right)\)

  • The time constant \(\tau =RC\).

Item 1 is obtained from the circuit for \(t<0,\) and items 2–3 from the circuit for \(t>0\). Following determining these elements, we use Eqs. (15) or (16) to calculate the response90,91.

RC circuit charging characteristic

According to Fig. 6, the capacitor charges at the rate indicated. Since the charging rate is maximum, the charging response of the RC circuit increases more sharply at the start of the charge, but this rises exponentially as the capacitor considers an extra charge at a moderate speed as the charge accumulates87.

Figure 6
figure 6

Capacitor charging response.

During the charging, the potential difference between the capacitor's plates increases in proportion to the amount of time it considers to charge up to 63 percent of its allowable voltage (\(0.63{V}_{s}\)), identified as the one-complete time constant (\(T\)). The notation 1 T refers to the \(0.63{V}_{s}\) voltage step (one-time constant). As the voltage differential between \({V}_{s}\) and \(v\) reduces the capacitor charges. When the capacitor reaches its optimum state, which is higher than five times constants (\(5T\)), it is considered to be fully charged, \(t=\infty\) and \(q=Q=CV\). The charging current gradually decreases to zero after approaching infinite, and the capacitor then operates as an open circuit with the input source \({v=V}_{s}\) supplied across it. Furthermore, the mathematical expression for the duration needed for a capacitor charging to \(1T\), is as follows:

$$\mathrm{RC time constant}, \tau =RC.$$
(17)

The time constant only denotes the charge rate where R and C are defined in Ω and Farads, respectively. When the capacitor has been charged for four-time constants (\(4T\)), the potential difference between the capacitor plates has attained 98% of the input voltage (0.98 \({V}_{s}\)), it is reported to be almost fully charged. The transient duration is the time it takes for the capacitor to achieve the \(4T\) level after being charged. After \(5T\), the capacitor has been charged completely equal to the \({V}_{s}\). Since the capacitor is charged completely, no additional charging current goes through the circuit. Table 1 displays the capacitor voltage of the RC circuit for a specific time constant.

Table 1 The maximum output voltage across the capacitor for a different time-constant.

It is important to note that the charging trajectory for the circuit is exponential rather than linear in nature. In practice, this means that the capacitor is never completely charged to its maximum capacity. Practically, it attains 99.3% after \(5T\), at which point the capacitor is deemed to be completely charged. It is possible to compute v at any instant because the value of v varies with time and has a slight difference at every time constant till 5 T.

Resistance capacitance optimization algorithm (RCOA)

This segment explains how the suggested algorithm is developed using the RC circuit response characteristics.

Implementation of RCOA

As discussed earlier, the total response is decomposed into phases. One is a transient or temporary phase, and the other one is a steady-state or permanent phase. There are two important phases for an optimization algorithm, called exploration and exploitation phases. During the exploration stage, the algorithm looks for the best solution in the search location. Once the algorithm finds the best solution, the algorithm tries to reach the optimal solution in the exploitation phase. Therefore, in the RCOA, the transient phase is mapped with the exploration phase, and the steady-state phase is mapped with the exploitation phase92. For a better algorithm, these two phases should balance properly. As mentioned earlier, the response of the RC circuit has a component called \({v}_{o}\times {e}^{-\frac{t}{\tau }}\) (exploration or transient phase), and the response of the RC circuit has a component called \({V}_{s}\times \left(1-{e}^{-\frac{t}{\tau }}\right)\) (exploitation or steady-state phase). The time t controls the balancing of these two phases, and the expression for the time t is given in Eq. (18).

$$t=\left(\frac{it}{Maxit}\right),$$
(18)

where \(it\) denotes the current iteration, and \(Maxit\) denotes the maximum number of iterations. The time t linearly increases from 0 to 1.

The charging and discharging of the capacitor in the RC circuit takes a 5 T period when the source is connected or removed. Assume that square wave input is given to the RC circuit. The RC waveform (capacitor charging and discharging) is shown in Fig. 7.

Figure 7
figure 7

Discharging and Charging profile (5RC time constant).

When the input voltage is increased to a certain level, the voltage across the capacitor swings between + Vs and 0, in this particular case, the frequency of the input voltage waveform is approximately twice that of the 5RC time constant, which is a good fit.

If the time of the input signal is extended, for instance, by changing the time constant to 8RC, the capacitor would then remain fully charged for a longer period and remain fully discharged for a longer period, producing the waveform as illustrated in Fig. 8.

Figure 8
figure 8

Discharging and Charging profile (8RC time constant).

If lower the overall period of the input waveform is, for example, by changing the time constant to 4RC, the capacitor would not have enough time either to fully charge during the ON-period or fully discharge during the OFF-period, as shown in Fig. 9. To produce an RC waveform, the resultant voltage drop across the capacitor must be smaller than the maximum input voltage of the capacitor.

Figure 9
figure 9

Charging and discharging profile (4RC time constant) of the capacitor.

From the above discussions, the capacitor voltage can then be varied by adjusting the time constant or the input frequency, resulting in a relationship between v and t. This statement is very important to develop the RCOA. Therefore, the convergence of the RCOA completely depends on the time constant. The convergence rate of the RCOA is proportional to the time constant \(\tau\). The expression for the time constant is presented in Eq. (19).

$$\tau =\left(a-b\right)\times {r}_{1},$$
(19)

where \(a\) is constant and is equal to 5, and \(b\) and \({r}_{1}\) denote the random numbers between [0,1]. The convergence of the RCOA can be adjusted by adjusting the value of \(a\). The optimal value of \(a\) is 5, as per the above-all discussions and experimental trials.

The overall response of the RC circuit identifies the position of the best solutions and tries to reach them. The overall response is typically directed by both the transient-state and steady-state responses. To mathematically simulate the RC circuit behaviour, we assume that the steady-state and transient-state have enough information about the possible position of the best solution. Thus, save the optimal solutions (from transient and steady-state) obtained to position update as per the best population position. The mathematical expressions used in this paper are given as follows.

$$\overrightarrow{{X}_{1}}=\overrightarrow{{X}_{ts}}-\mathrm{exp}\left(-\frac{t}{\tau }\right),$$
(20)
$$\overrightarrow{{X}_{2}}=\overrightarrow{{X}_{ss}}\left(1-\mathrm{exp}\left(\frac{t}{\tau }\right)\right),$$
(21)

where \(\overrightarrow{{X}_{ts}}\) and \(\overrightarrow{{X}_{ss}}\) are position vectors (voltage) of the transient-state and steady-state, respectively. Using Eq. (22), it is possible to control the final position (voltage).

$$\overrightarrow{X}\left(t+1\right)=\overrightarrow{{X}_{1}}+\overrightarrow{{X}_{2}}.$$
(22)

The exploration phase is attained when \(\tau <5T\), while the exploitation phase of the RCOA is attained when \(\tau \ge 5T\). The pseudocode of the suggested algorithm is illustrated in Algorithm 1. The proposed algorithm is very simple, and only Eq. (22) is used to update the position vector and balance between the exploitation and exploitation process.

figure a

Implementation procedure of the RCOA

The main motive of this section is to discuss the implementation procedure of the RCOA. The following are the steps to be followed to develop RCOA.

Step 1: Initialize the population size (\(N\)) and the maximum number of iterations (\(Maxit\)). The initial random solution is generated using Eq. (23) (Initialization phase).

$$X=lb+rand\times \left(ub-lb\right),$$
(23)

where \(X\) denotes the population position, \(ub\) denotes the upper bound, \(lb\) denotes the lower bound of the decision vectors, and \(rand\) denotes the random number between \([\mathrm{0,1}]\).

Step 2: Determine the initial capacitor voltage in a dim-dimensional search space and the objective function value of the capacitor.

Step 3: Sort the best objective function value (\({f}_{obj(best)}\)) in ascending order and archive it.

Step 4: Better exploration and exploitation ability to escape from the local solutions.

Step 5: Update the current solution positions as per previous steps, and the voltage of the capacitor (current solution) is updated by Eq. (22).

Step 6: Checking for terminating criteria. If the current iteration (\(It\)) reaches the maximum number of iterations (\(Maxit\)), the algorithm returns the optimum value; else, go to step 2.

The flowchart of the proposed RCOA is shown in Fig. 10.

Figure 10
figure 10

Flowchart of the RCOA.

Computational complexity of RCOA

The following information is provided on the RCOA's time complexity: During the initialization stage, the RCOA necessitates \(O(N\times dim)\) time, where \(N\) denotes the number of population and \(dim\) denotes the dimension of the given problem. The control parameter necessitates \(O(N\times dim)\) time. The position update necessitates \(O(N\times dim)\) time. The computation of the fitness of each population necessitates \(O(N\times dim)\) time.

After careful investigation, it is observed that the time complexity of the RCOA is \(O(N\times dim)\) for each iteration. Therefore, the overall time complexity is \(O(N\times dim\times Maxit)\), where \(Maxit\) denotes the maximum number of iterations.

Simulation results and discussions

The outcomes of the numerical simulations are thoroughly discussed and analyzed in this section, in addition to the exploitation and exploration of the RCOA. The effectiveness of the RCOA is compared with several competing open-source metaheuristic algorithms, such as MPA, CrSA, MRFO, PSO93, JAYA94, SCA, and GWO, using a collection of 23 standard benchmark test functions. The proposed algorithm is undoubtedly applicable to any constrained and unconstrained optimization problems. This study has selected 23 unimodal and multimodal benchmark problems with fixed and variable problem dimensions and 8 real-world constrained engineering design problems to prove the same. The proposed algorithm is also provided with a penalty-based constrained handling mechanism. Therefore, the proposed algorithm is not restricted to only the problems selected and discussed in this study. It is suitable for any constrained engineering design problems.

The parameter settings of all algorithms are listed in Table 2. The algorithmic parameters are selected based on the original version. A detailed description of all 23 benchmark test functions can be found in Ref.95. The benchmark functions have characteristics such as unimodal (F1–F7), multimodal (F8–F13), and fixed dimension multimodal (F14–F23). The exploitation potential of the RCOA is assessed using unimodal functions. Multimodal functions assess the explorative potential of the RCOA. Fixed-dimension multimodal functions assess the low-dimensional exploration of the RCOA. The population size for all algorithms is selected as 30, and the maximum iterations of all algorithms are 500. The control variables of all chosen algorithms are taken from the literature. For a fair assessment, all algorithms are executed 30 times individually. The simulation experiments were carried out on a laptop operating in Windows 11 with 16 GB memory and a clock frequency of 4.44 GHz. The simulation software called MATLAB was used to code all algorithms that were used in the comparison. MATLAB is a powerful tool that can handle computations involving very large and very small numbers. To be more precise, MATLAB can compute and represent values to a high degree of precision (around 15 decimal places) using double-precision floating-point numbers, the default numerical data type.

Table 2 Parameter setting of all algorithms.

Qualitative analysis

In order to evaluate the location and fitness variations, the qualitative data analysis findings of RCOA in dealing with multimodal and unimodal functions are defined in Fig. 11. The graph includes four alarming metrics: search history, trajectory, average fitness, and balance curves. In the iterative procedure, the search history depicts the spread of the population (voltage) and their respective position. The trajectory reveals the features of the population position update in the initial half of the problem dimension. The average fitness variation trend varies with the iterative procedure, as indicated by average fitness. The population in multiple test functions displayed a consistent search trajectory close to the optimum value, as shown by the search history map, effectively discovering dependable search space and displaying high precision. Nevertheless, the population primarily originates in numerous places with local optimums, demonstrating the compromise of the population between multiple local optimums.

Figure 11
figure 11figure 11figure 11

Qualitative analysis of the proposed RCOA on all benchmarks.

As portrayed in Fig. 11, the location curve demonstrates significant variability during the initial iterative process—approximately up to 50% of the exploratory area. This indicates a robust exploration phase wherein the algorithm searches a wide solution space to avoid getting trapped in local optima. As iterations progress, especially if the function under optimization is uniform, the amplitude of the population position gradually diminishes, signifying a transition into the exploitation phase. However, in instances where the function exhibits high variation, the positioning amplitude also notably fluctuates. This variability characteristic can be visually tracked by scrutinizing the mean fitness curve throughout the iterative process. Despite oscillations in the mean fitness curve, there is a general downward trend in the mean fitness values. Notably, the frequency of these oscillations decreases inversely proportional to the number of iterations. This trend allows quicker convergence, indicating the algorithm's efficient navigation towards optimal solutions. Further evaluation of the exploration and exploitation phases greatly contributes to understanding the RCOA's performance. We utilized all benchmark functions to delve into two vital features—exploration and exploitation—which are integral to assessing the competency of the RCOA. Visual evidence of a balanced interaction between the exploration and exploitation phases is demonstrated in Fig. 11. The ratios of exploitation and exploration represent this balance within the search bounds. As the curves in Fig. 11 reveal, the RCOA successfully maintains an equilibrium between exploitation and exploration for most of the search duration. This equilibrium is crucial for an optimization algorithm, as it signifies its ability to explore new areas and exploit known good areas in the solution space, ensuring comprehensive and effective optimization.

Standard deviation (STD) and average (Avg.) results were used to examine the outcome of the experiment for the aim of determining overall significance. Table 3 collates the statistical results of applying selected algorithms on 23 standard benchmark functions as presented in the study. A subsequent comparative analysis of these results highlighted the distinct performance superiority of the RCOA. The RCOA found a larger fraction of optimal values, specifically 19 out of 23, surpassing all its peers in this comparison. Consequently, the RCOA emerged as the top-ranking algorithm, outperforming others like the GWO and MRFO algorithms, which came in second place. It is worth noting that while some algorithms, such as F23, exhibit favourable results, they can paradoxically yield negative results for other functions. This suggests a lack of consistency and balance in these algorithms' exploration and exploitation phases. However, as presented in Table 3, the RCOA demonstrated commendable outcomes across most functions. This performance profile underscores the RCOA's ability to strike an effective equilibrium between the exploration and exploitation phases—an integral aspect of successful optimization algorithms. Additionally, F8, known as a challenging test function, also succumbed to the RCOA's efficient problem-solving capabilities. Not only was the RCOA able to solve it, but it also identified the optimal solution in the shortest possible time. This indicates the RCOA's ability to handle complex optimization problems, further cementing its superiority and effectiveness in the mathematical optimization domain. The better results are highlighted with boldfaces, which applies to all tables.

Table 3 Statistical values obtained by all algorithms for 23 benchmark test suite.

Table 4 shows that the performance of the RCOA is evaluated using a statistical Wilcoxon signed-rank test (WSRT) at a 5% significant significance level. Table 4 shows the WSRT results, which calculated the rank of all algorithms for each benchmark function. The summation of all rankings for all 23 test functions was then computed, as shown in Table 4. These findings indicated that the RCOA came out on top when compared to the other algorithms in the test group. Additionally, the p-value for each benchmark function is determined, and the null hypothesis (which claims that there is no difference among algorithms) is discarded since all p-values are less than the statistically significant level. Table 4 also compares the runtime (RT) of the RCOA with other algorithms. Because of its simplicity should go without saying that the JAYA algorithm has a low RT value with a total runtime (TRT) of 0.35, followed by the RCOA with 1.92 TRT, which has the second shortest RT. The MRFO algorithm, conversely, has an extended RT with 26.957 TRT. The rank (R) has been allocated for all algorithms based on TRT values of benchmark functions. The JAYA algorithm stood first based on TRT values, followed by RCOA, GWO, SCA, PSO, CrSA, MPA, and MRFO.

Table 4 RT values of all algorithms for 23 benchmark functions.

Figure 12 showcases the significant advantage of RCOA in terms of convergence speed compared to other algorithms in the field. The convergence graph reflects the optimal fitness value during the iteration phase, with the convergence curve further illustrating how the population's ideal fitness value—represented here as voltage—enhances over time with respect to the mean fitness. The rate of convergence and the precise moment when the algorithm shifts from the exploration phase to the exploitation phase can be inferred from the downtrend of the curve. In most of these graphical representations, the time transition proves beneficial to the RCOA. It assists the algorithm in effectively exploring and exploiting the domain under consideration, thereby augmenting its performance. Towards the final iterations, the convergence curves in these results exhibit a stable trend, denoting that the conditions for convergence have been met. This stability also signals the reliability of the RCOA during the problem-solving process. Built on solid foundations, the RCOA is able to locate the global optimum for unimodal functions. However, the true power and utility of the RCOA emerge when it is employed for more complex multimodal functions. In these complex scenarios, the nuanced performance of the algorithm and its procedures comes to the fore, illustrating both its value and the benefits it provides in mathematical optimization.

Figure 12
figure 12

Averaged convergence curves of all algorithms on all benchmark functions.

However, each selected method's reliability is assessed using the boxplot. In Fig. 13, all selected algorithms are boxplot-evaluated against a set of 23 benchmark functions. Graphical representations are provided to prove that the suggested RCOA is more reliable than any other algorithms considered.

Figure 13
figure 13

Boxplot obtained by all algorithms on 23 standard test functions.

Importance of a superiority assessment

The WSRT method has been used to determine whether or not RCOA offers evident benefits over pairwise comparison in terms of accuracy. If the p-value generated by the assessment is less than the 5% level of significance, it indicates that the algorithm's results in pairwise comparison are statistically superior. Other than that, the differences between the two competitors are believed to be inconsequential from a statistical standpoint. The real statistical significance of the integrated pairwise comparison is presented in Eq. (24) to draw more complete conclusions.

$$p=1-\prod_{i=1}^{j-1}1-{p}_{h1}.$$
(24)

Table 3 shows the p-value obtained using Eq. (24), which shows that the p-values in F1-8, F10, F12-F16, and F18 were less than 5% compared to all selected algorithms. Consequently, as compared to other algorithms, RCOA performs significantly better in such functions than the latter. When comparing algorithms, although pairwise comparisons can be employed, the error rate produced during the test cannot be adjusted, and the selection of algorithms in numerous analyses can significantly impact the outcome of the study. Multiple comparison procedures are utilized to change the error rate to decrease the impact of algorithm selection for each result set.

When performing numerous comparisons, the first step is to determine whether the results generated by the algorithm are equivalent. When an inequity occurs, a post-hoc analysis should be performed to determine which algorithms have statistically significant differences. As a result, Friedman's rank test (FRT) was used, a non-parametric test. Table 5 depicts FRT values obtained for all 23 benchmark functions. The average FRT (AFRT) values are provided in Table 5. Based on the AFRT values, the rankings are provided. The RCOA took the lead with a 1.935 AFRT value, preceded by GWO, MRFO, MPA, CrSA, PSO, SCA, and JAYA.

Table 5 FRT values of all algorithms for 23 benchmark functions.

Sensitivity analysis

The parameter sensitivity test was included in this subsection to investigate the effects of the algorithm's population size (\(N\)) and parameter \(a\) on the algorithm. The parameter \(a\) has different ranges, such as 1, 2, 3, 4, and 5. The population sizes were selected as 10, 20, 30, 40, and 50. The number of iterations was set at 500. The function F13 has been selected to demonstrate the parameter sensitivity. The convergence curves of function F13 for different values of \(a\) have been plotted and shown in Fig. 14. It is seen from Fig. 14 that the RCOA is superior when the value of \(a\) is 5. This has already been discussed in the mathematical modelling of the proposed algorithm. If the value of \(a\) is greater than 5, the RCOA gives the same fitness value. But, if the value of \(a\) is less than 5, the fitness value may be less than the best optimal. Therefore, in this paper, the value of \(a\) is selected as 5 for test cases.

Figure 14
figure 14

Convergence curve obtained by RCOA for F23 function with diverse values of \(a\).

We selected function F23 to investigate the impact of the population size on the algorithm performance. Based on the previous discussion, the value of \(a\) is fixed at 5. This parameter was chosen to investigate the synergistic effect of the population size on the algorithm. Figure 15 shows the convergence curve for the F23 function by RCOA with different values of population size. It can be seen explicitly that the mean value becomes better as the population size increases. The rationale for this is that increasing the number of populations increases search efficiency. Nevertheless, because the global approximative optimal solution was obtained, the results did not improve as the size of the population increased. According to the specific problems individuals attempt to rectify, researchers can decide on an adequate population size. However, this paper selected the population size for the benchmark functions as 30.

Figure 15
figure 15

Convergence curve obtained by RCOA for F23 function with different values of \(N\).

Real-world engineering design optimization problems

This section comprehensively discusses the application of the proposed RCOA for solving real-world engineering design problems. The problems solved in this section are categorized as constraint engineering design problems. Firstly, the fitness functions and different constraints of each problem are provided. All the selected problems are solved by applying the algorithms, including the proposed RCOA. Finally, a thorough analysis is conducted depending on the outcomes of all chosen algorithms.

Constraint handling mechanism (CHM)

Most engineering design problems aim to find the best solution under particular circumstances, typically based on constrained resources, design guidelines, and safety criteria. Such special restrictions are referred to as constraints, and the primary goal of optimization is to develop a reasonable and efficient solution 96. The optimization issue can be expressed in the following way:

$$\mathrm{Minimize} \to f\left(X\right), X=\left({x}_{1},{x}_{2},\dots ,{x}_{dim}\right)$$
(25)

Subjected to:

$$\left.\begin{array}{c}{g}_{i}\left(X\right)\le 0, i=1, 2, \dots , {N}_{g}\\ {h}_{j}\left(X\right)=0, j=1, 2, \dots , {N}_{h}\\ {lb}_{k}\le {x}_{k}\le {ub}_{k}, k=1, 2, \dots ,dim\end{array}\right\},$$
(26)

where \(f\left(X\right)\) denotes fitness/objective function, \(X\) denotes the solution vector, and \({h}_{j}\left(X\right)\) and \({g}_{i}\left(X\right)\) denote equality and inequality constraints, respectively. \({N}_{h}\) denotes the number of equality constraints, \({N}_{g}\) denotes the number of inequality constraints, \(dim\) denotes the problem dimension, and \({ub}_{k}\) and \({lb}_{k}\) denote the maximum and minimum bounds for the \(k\)th dimension/variable, respectively. The idea to emphasize would be that a viable solution meets all of the constraints. The converse is true for weak solutions, which fail to meet a minimum of one constraint97. In most cases, the equality constraints \({h}_{j}\left(X\right)=0\) are replaced with an inequality constraint \(\left|{h}_{j}\left(X\right)-\varepsilon \right|\le 0\) to handle the constraint problems, in which \(\varepsilon\) denotes a penalty factor. An alternative method for solving the equality constraints is to substitute the equality constraints with two inequality constraints \({h}_{j}\left(X\right)\ge 0\) and \({h}_{j}\left(X\right)\le 0\). This method aids in fast convergence to its optimal state, converting the constraints into inequality constraints.

All the optimization algorithms are unable to tackle constraint problems straightforwardly. As a result, giving them access to an extra mechanism for coping with constraints is necessary. The constraint-handling techniques group of approaches was specifically developed for this concept and is referred to as CHMs. The CHMs allow the optimization techniques to deal with the governing equations simultaneously without sacrificing performance. In general, constraint handling mechanisms are classified into five groups98: (i) penalty functions, (ii) repair algorithms, (iii) parting of constraints and objectives, (iv) specific operators and representations, and (v) hybrid approaches. The first method, which is based on the penalty function, is a simple and well-established method for dealing with limitations. After adding a penalty to the fitness function, it converts a constraint problem into an unconstraint optimization problem, resulting in a win–win situation. A penalty function can be written in the following way:

$$F\left(X\right)=f\left(X\right)+P\left(X\right),$$
(27)

where \(F\left(X\right)\) denotes the transformed objective function, \(f\left(X\right)\) denotes the actual fitness function, and \(P\left(X\right)\) denotes the penalty function that signifies the constraint violations and is represented as follows 97:

$$P\left(X\right)=\sum_{i=1}^{{N}_{g}}{\delta }_{i}\times \mathrm{max}\left(0,{g}_{i}(X)\right)+\sum_{j=1}^{{N}_{h}}{\rho }_{j}\times \mathrm{max}\left(0,\left|{h}_{j}\left(X\right)\right|-\varepsilon \right),$$
(28)

where \(\mathrm{max}\left(0,{g}_{i}(X)\right)\) and \(\mathrm{max}\left(0,\left|{h}_{i}\left(X\right)\right|-\varepsilon \right)\) denote the solution violations as per \(i\)th inequality constraint and \(j\) th equality constraint, respectively. In addition, \({\delta }_{i}\) and \({\rho }_{j}\) denote penalty factors. The degree of penalty factors impacts the quality of solutions, and the appropriate penalty factors vary depending on the situation. Constraint problems can be resolved using metaheuristic approaches, and CHM is used for recognizing the possible search space for limitations. Once a viable location has been identified, an algorithm should attempt to identify an optimal or near-optimal solution inside that zone. As a result, in every iteration of an algorithm, the population fitness is assessed as per the objective function and constraints, and the next iteration is formed based on the objective function. The algorithm would determine the problem's search location based on the objective function value of the existing population. Therefore, this paper uses the penalty function approach to solve all selected constraint engineering design optimization problems.

Real-world optimization problems

This sub-section comprehensively analyzes the performance of the proposed RCOA and other selected algorithms on 10 engineering design optimization problems.

Speed reducer design optimization (SRDO) problem

Figure 16 depicts the structure of the SRDO problem and its components. Because of its defined constraints and complex search space, this design engineering challenge is regarded to be one of the most difficult problems to solve. The fitness function of the SRDO problem, as presented in Eq. (29), is to reduce the gearbox weight to its smallest possible value while taking into account 11 distinct constraints. There are also numerical constraints on the shaft stress, surface stress, shaft transverse deflections, and bending stress that must be satisfied.

Figure 16
figure 16

Internal structure of speed reducer.

$$\text{Min: }f\left(\overrightarrow{x}\right)=0.7854{x}_{1}{x}_{2}^{2}\left(3.3333{x}_{3}^{2}+14.9334{x}_{3}-43.093\right)-1.508\left({x}_{6}^{2}+{x}_{7}^{2}\right)+7.4777\left({x}_{6}^{3}+{x}_{7}^{3}\right)+0.7854\left({x}_{4}{x}_{6}^{2}+{x}_{5}{x}_{7}^{2}\right),$$
(29)

Subjected to:

$${g}_{1}\left(\overrightarrow{x}\right)=\frac{27}{{x}_{1}{x}_{2}^{2}{x}_{3}}\le 0$$
$${g}_{2}\left(\overrightarrow{x}\right)=\frac{397.5}{{x}_{1}{x}_{2}^{2}{x}_{3}}\le 0$$
$${g}_{3}\left(\overrightarrow{x}\right)=\frac{1.93{x}_{4}^{3}}{{x}_{2}{x}_{6}^{2}{x}_{3}}\le 0$$
$${g}_{4}\left(\overrightarrow{x}\right)=\frac{1.93{x}_{5}^{3}}{{x}_{2}{x}_{7}^{2}{x}_{3}}\le 0$$
$${g}_{5}\left(\overrightarrow{x}\right)=\frac{1.0}{110{x}_{6}^{3}}\sqrt{{\left(\frac{745{x}_{4}}{{x}_{2}{x}_{3}}\right)}^{2}} +16.9\times {10}^{6}-1\le 0$$
$${g}_{6}\left(\overrightarrow{x}\right)=\frac{1.0}{85{x}_{7}^{3}}\sqrt{{\left(\frac{745{x}_{5}}{{x}_{2}{x}_{3}}\right)}^{2}} +1.579\times {10}^{6}-1\le 0$$
$${g}_{8}\left(\overrightarrow{x}\right)=\frac{5{x}_{2}}{{x}_{1}}-1\le 0$$
$${g}_{7}\left(\overrightarrow{x}\right)=\frac{{x}_{2}{x}_{3}}{40}-1\le 0$$
$${g}_{10}\left(\overrightarrow{x}\right)=\frac{1.5{x}_{6}+1.9}{{x}_{4}}-1\le 0$$
$${g}_{9}\left(\overrightarrow{x}\right)=\frac{{x}_{1}}{12{x}_{2}}-1\le 0$$
$${g}_{11}\left(\overrightarrow{x}\right)=\frac{1.1{x}_{7}+1.9}{{x}_{5}}-1\le 0$$

Decision parameter bounds:

$$2.6\le {x}_{1}\le 3.6; 0.7\le {x}_{2}\le 0.8; 17\le {x}_{3}\le 28; 7.3\le {x}_{4}\le 8.3; 7.8\le {x}_{5}\le 8.3; 2.9\le {x}_{6}\le 3.9; 5.0\le {x}_{7}\le 5.5$$

A total of 11 constraints are regarded in this design problem, seven are nonlinear, and four are linear inequality constraints. The constraints are considered based on (i) stresses in the shafts, (ii) transverse deflections of the shafts, (iii) surface stress, and (iv) bending stress of the gear teeth. Table 6 compares the best optimum solution obtained by using various optimization strategies to compute the best solution. The RCOA requires a total of 1000 iterations to discover a solution. Table 7 compares the statistical findings of RCOA with those of seven optimization strategies and shows which method is superior. The RCOA has produced optimal results when contrasted to the other optimizers, and the findings are superior to those obtained by the other approaches. Figure 17 illustrates the boxplot analysis and convergence curves of all algorithms. The convergence curves and the boxplots conclude that the suggested RCOA can produce the best results with a high convergence speed and better reliability. From the FRT values, it is observed that the RCOA stood first among all chosen algorithms. The RT values represent the computation time required to solve the SRDO problem.

Table 6 Decision parameters obtained by selected algorithms for the SRDO challenge.
Table 7 Statistical analysis of all algorithms on the SRDO problem.
Figure 17
figure 17

SRDO problem; (a) Convergence curves, (b) Boxplots.

Three-bar truss design optimization (TTDO) problem

Figure 17 depicts an illustration of the three-bar truss design in operation. It comprises real-valued and deflection, non-linear buckling, stress limitations, and several other constraints. This system aims to determine the ideal quantities of cross-sectional areas in a given circumstance. Furthermore, the mathematical representations of the model parameters in the fitness function are indicated by \({x}_{1}\) and \({x}_{2}\). Furthermore, in Fig. 18, ‘\(P\)’ represents the load applied to the truss and ‘\(D\)’ represents the symmetrical length of the truss.

Figure 18
figure 18

Structure of 3-bar truss.

$$\mathrm{Min}: f\left(\overline{x }\right)=D\left({x}_{2}+2\sqrt{2}{x}_{1}\right),$$
(30)

Subjected to the following constraints,

$${g}_{1}\left(\overline{x }\right)=\frac{{x}_{2}}{2{x}_{2}{x}_{1}+\sqrt{2}{x}_{1}^{2}}P-\sigma \le 0$$
$${g}_{2}\left(\overline{x }\right)=\frac{{x}_{2}+\sqrt{2}{x}_{1}}{2{x}_{2}{x}_{1}+\sqrt{2}{x}_{1}^{2}}P-\sigma \le 0$$
$${g}_{3}\left(\overline{x }\right)=\frac{1}{{x}_{1}+\sqrt{2}{x}_{2}}P-\sigma \le 0$$

where \(D=100,\,P=2kN/{cm}^{2}, \mathrm{and\, }\sigma =2\;kN/{cm}^{2}\).

Decision parameter bounds:

$$0\le {x}_{1},{x}_{2}\le 1$$

Table 8 shows the outcomes of the several strategies that produced the best results. Furthermore, the summary statistics of such algorithms are also presented in Table 8. It can be shown that the optimum fitness value of the RCOA is on par with or better than the optimum fitness value of the other approaches. Figure 19 illustrates the convergence graphs and boxplot analysis of all algorithms. The convergence graphs and the boxplot conclude that the RCOA can produce the best results with a high convergence speed and better reliability. From the FRT values, it is observed that the RCOA stood first among all chosen algorithms. The RT values represent the computation time required to solve the TTDO problem.

Table 8 Decision vectors obtained by chosen algorithms for the TTDO problem.
Figure 19
figure 19

TTDO problem; (a) Convergence curves, (b) Boxplots.

Pressure vessel design optimization (PVDO) problem

This example is illustrated in Fig. 20, which shows a cylindrical vessel with hemispherical heads on both sides. Overall cost minimization is desired, including material costs and welding and forming costs. In this equation, there are four parameters, including the length of the cylindrical section of the vessel, excluding the head \(L\) (\({{\varvec{x}}}_{4}\)), the thickness of the head \({T}_{h}\) (\({{\varvec{x}}}_{3}\)), the thickness of the shell \({T}_{s}\) (\({{\varvec{x}}}_{2}\)), and the radius of the inner cylinder \(R\) (\({{\varvec{x}}}_{1}\)). Furthermore, the variables \({{\varvec{x}}}_{1}\) and \({{\varvec{x}}}_{2}\) are integral multiples of 0.0625 inches, whereas the other parameters are continuous multiples of 0.0625 inches. Equation (31) describes the objective function of the PVDO problem.

Figure 20
figure 20

Structure of pressure vessel.

$$\text{Min: }f\left(x\right)=0.6224{x}_{1}{x}_{3}{x}_{4}+1.7781{x}_{2}{x}_{3}^{2}+3.1661{x}_{1}^{2}{x}_{4}+19.84{x}_{1}^{2}{x}_{3},$$
(31)

Subjected to:

$${g}_{2}\left(x\right)=-{x}_{2}+0.00954{x}_{3}\le 0$$
$${g}_{1}\left(x\right)=-{x}_{1}+0.0193{x}_{3}\le 0$$
$${g}_{4}\left(x\right)={x}_{4}-240\le 0$$
$${g}_{3}\left(x\right)=-\pi {x}_{3}^{2}{x}_{4}-\left(4/3\right)\pi {x}_{3}^{3}+1296000\le 0$$

Decision parameter bounds:

\(10\le {x}_{4},{x}_{3}\le 200\); \(1\le {x}_{2},{x}_{1}\le 99\, (\text{integer\, variables})\)

Table 9 shows the outcomes of the several strategies that produced the best results. Furthermore, the summary statistics of such algorithms are also presented in Table 10. It can be shown that the optimum fitness value of the RCOA is on par with or better than the optimum fitness value of the other algorithms. Figure 21 illustrates the convergence graphs and boxplot analysis of all algorithms. The convergence curves and the boxplot conclude that the suggested RCOA can produce the best results with a high convergence speed and better reliability. From the FRT values, it is observed that the RCOA raised first among all chosen methods. The RT values represent the computation time required to solve the PVDO problem.

Table 9 Decision parameters obtained by all selected algorithms for the PVDO problem.
Table 10 Statistical analysis of the chosen methods for the PVDO problem.
Figure 21
figure 21

PVDO problem; (a) Convergence curves, (b) Boxplots.

Tubular column design optimization (TCDO) problem

This challenge aims to find the most cost-effective materials and building methods for a tubular column. There are two decision parameters, including the mean column section thickness (\({x}_{1}\)) and mean column section diameter (\({x}_{2}\)), as well as six inequality constraints. It is illustrated in Fig. 22 how this problem is presented schematically.

Figure 22
figure 22

Structure of the tubular column.

The fitness function and constraints of the TCDO are provided below.

$${\text{Min}}:f\left(x\right)=9.8{x}_{1}{x}_{2}+2{x}_{1},$$
(32)

Subjected to:

$${g}_{1}(x)=\frac{P}{\pi {x}_{1}{x}_{2}{\sigma }_{y}}-1\le 0$$
$${g}_{2}(x)=\frac{8P{L}^{2}}{{\pi }^{3}E{x}_{1}{x}_{2}\left({{x}_{1}}^{2}+{{x}_{2}}^{2}\right)}-1\le 0$$
$${g}_{3}(x)=\frac{2.0}{{x}_{1}}-1\le 0$$
$${g}_{4}(x)=\frac{{x}_{1}}{14}-1\le 0$$
$${g}_{5}(x)=\frac{0.2}{{x}_{2}}-1\le 0$$
$${g}_{6}(x)=\frac{{x}_{2}}{0.8}-1\le 0$$

where \({\sigma }_{y}=500 \mathrm{kgf}/{\mathrm{cm}}^{2}\), \(\mathrm{P}=2500 \mathrm{kgf}\), \(L=250 \mathrm{cm}\) and \(E=0.85\times {10}^{6}\mathrm{ kgf}/{\mathrm{cm}}^{2}\).

Decision parameter bounds:

\(0.2\le {x}_{2}\le 0.8\); \(2\le {x}_{1}\le 14.\)

Table 11 shows the outcomes of the several strategies that produced the best results. Furthermore, the summary statistics of such algorithms are also presented in Table 11. It can be shown that the optimum fitness value of the RCOA is on par with or higher than the optimum fitness value of the other algorithms. Figure 23 illustrates the convergence graphs and boxplot analysis of all algorithms. The convergence curves and the boxplot conclude that the suggested RCOA can produce the best results with a high convergence rate and better reliability. From the FRT values, it is observed that the RCOA raised first among all chosen methods. The RT values represent the computation time required to solve the TTDO problem.

Table 11 Decision parameters obtained by all algorithms for the TCDO problem.
Figure 23
figure 23

TCDO problem; (a) Convergence curves, (b) Boxplots.

Corrugated bulkhead design optimization (CBDO) problem

When designing a corrugated bulkhead for a chemical container, it is important to consider the width (\({{\varvec{x}}}_{1}\)), the depth (\({{\varvec{x}}}_{2}\)), the length (\({{\varvec{x}}}_{3}\)), and the thickness of the plate (\({{\varvec{x}}}_{4}\)). As an example of a mathematical formula for this optimization problem, consider the following:

$${\text{Min}}:f\left(x\right)=\frac{5.885{x}_{2}\left({x}_{1}+{x}_{3}\right)}{{x}_{1}+\sqrt{\left({{x}_{3}}^{2}-{{x}_{2}}^{2}\right)}},$$
(33)

Subjected to:

$${g}_{1}(x)={x}_{4}{x}_{2}\left(0.4{x}_{1}+\frac{{x}_{3}}{6}\right)-8.94\left({x}_{1}+\sqrt{\left({{x}_{3}}^{2}-{{x}_{2}}^{2}\right)}\right)\ge 0$$
$${g}_{2}(x)={x}_{4}{{x}_{2}}^{2}\left(0.2{x}_{1}+\frac{{x}_{3}}{12}\right)-2.2{\left(8.94\left({x}_{1}+\sqrt{\left({{x}_{3}}^{2}-{{x}_{2}}^{2}\right)}\right)\right)}^\frac{4}{3}\ge 0$$
$${g}_{3}(x)={x}_{4}-0.0156{x}_{1}-0.15\ge 0$$
$${g}_{4}(x)={x}_{4}-0.0156{x}_{3}-0.15\ge 0$$
$${g}_{5}(x)={x}_{4}-1.05\ge 0$$
$${g}_{6}(x)={x}_{3}-{x}_{2}\ge 0$$

Decision parameter bounds:

\(0\le {x}_{1},{x}_{2},{x}_{3}\le 100\); \(0\le {x}_{4}\le 5.\)

Table 12 shows the outcomes of the several strategies that produced the best results. Furthermore, the summary statistics of such algorithms are also presented in Table 13. It can be shown that the optimum fitness value of the RCOA is on par with or higher than the optimum fitness value of the other methods. Figure 24 illustrates the convergence graphs and boxplot analysis of all algorithms. The convergence graphs and the boxplot conclude that the RCOA can produce the best results with a high convergence speed and better reliability. From the FRT values, it is observed that the RCOA stood first among all chosen algorithms. The RT values represent the computation time required to solve the TTDO problem.

Table 12 Decision vectors found by chosen methods for the TTDO problem.
Table 13 Statistical analysis of all methods on the TTDO challenge.
Figure 24
figure 24

TTDO problem; (a) Convergence curves, (b) Boxplots.

Tension/compression spring design optimization (TCSDO) problem

The Tension/Compression Spring Design Optimization (TCSDO) problem has been designed as an alternative to the typical mechanical design problem of flexing springs. In Fig. 25, we can see that the core objective is to reduce the tension spring-mass of the structure to the absolute minimum. \(x=\left[{x}_{1},{x}_{2},{x}_{3}\right]=\)[\(D,d,N\)] is considered when solving the TCSDO problem. The active coils (\(N\)), wire diameter (\(d\)), and mean coil diameter (\(D\)) are considered in the solution.

Figure 25
figure 25

Schematic of tension/compression spring.

The objective function and constraints of the TCSDO are presented below.

$$\text{Min: }f\left(\overrightarrow{x}\right)=\left({x}_{3}+2\right){x}_{2}{x}_{1}^{2},$$
(34)

Subjected to:

$${g}_{1}\left(\overrightarrow{x}\right)=1-\frac{{x}_{2}^{3}{x}_{3}}{71785{x}_{1}^{4}}\le 0$$
$${g}_{2}\left(\overrightarrow{x}\right)=\frac{4{x}_{2}^{2}-{x}_{1}{x}_{2}}{12566\left({x}_{2}{x}_{1}^{3}-{x}_{1}^{4}\right)}+\frac{1}{5108{x}_{1}^{2}}-1\le 0$$
$${g}_{3}\left(\overrightarrow{x}\right)=1-\frac{140.45{x}_{1}}{{x}_{2}^{2}{x}_{3}}\le 0$$
$${g}_{4}\left(\overrightarrow{x}\right)=\frac{{x}_{1}+{x}_{2}}{1.5}-1\le 0$$

Decision parameter bounds:

$$0.05\le {x}_{1}\le 2.0, 0.25\le {x}_{2}\le 1.3,\text{ and }2\le {x}_{3}\le 15.0.$$

Table 14 shows the outcomes of the several strategies that produced the best results. Furthermore, the summary statistics of such algorithms are also presented in Table 15. It can be shown that the optimum fitness value of the RCOA is on par with or higher than the optimum fitness value of the other algorithms. Figure 26 illustrates the convergence graphs and boxplot analysis of all algorithms. The convergence graphs and the boxplot conclude that the RCOA can produce the best results with a high convergence speed and better reliability. From the FRT values, it is observed that the RCOA stood first among all chosen algorithms. The RT values represent the computation time required to solve the TCSDO problem.

Table 14 Decision parameters found by all methods for the TCSDO challenge.
Table 15 Statistical analysis of the selected methods on the TCSDO challenge.
Figure 26
figure 26

TCSDO problem; (a) Convergence curves, (b) Boxplots.

Welded beam design optimization (WBDO) problem

This WBDO is a standard test problem, and it has since been solved by a large group of experts. The beam is subjected to a vertical force, as shown in Fig. 27. With this problem, the objective is to discover the welded beam with the lowest cost of manufacture. Geometry, welding, deflection, and stress are the seven constraints the problem must address. The decision parameters are as follows: weld thickness (\({{\varvec{x}}}_{1}\)), height (\({{\varvec{x}}}_{2}\)), length (\({{\varvec{x}}}_{3}\)), and bar thickness (\({{\varvec{x}}}_{4}\)), as depicted in Fig. 27. Using mathematics, the objective function may be expressed as follows.

Figure 27
figure 27

Schematic of a welded beam.

$$\mathrm{Min}: f\left(x\right)=1.10471{x}_{1}^{2}{x}_{2}+0.04811\left(14+{x}_{2}\right){x}_{3}{x}_{4},$$
(35)

Subjected to:

$${g}_{1}\left(x\right)=\tau \left(\mathrm{x}\right)-{\tau }_{max}\le 0$$
$${g}_{2}\left(x\right)=\sigma \left(x\right)-{\sigma }_{max}\le 0$$
$${g}_{3}\left(x\right)=\delta \left(x\right)-{\delta }_{max}\le 0$$
$${g}_{4}\left(x\right)={x}_{1}-{x}_{4}\le 0$$
$${g}_{5}\left(x\right)=P-{P}_{c}\left(x\right)\le 0$$
$${g}_{6}\left(x\right)=0.125-{x}_{1}\le 0$$
$${g}_{7}\left(x\right)=1.10471{x}_{1}^{2}+0.04811{x}_{3}{x}_{4}\left(14.0+{x}_{2}\right)-5.0\le 0$$

where \(P=6000 lb,L=14 inch,{\delta }_{max}=0.25 \; inch, E=30\times {1}^{6}psi,G=12\times {10}^{6}psi,\) and \({\tau }_{max}=13600 psi,{\sigma }_{max}=30000 psi\).

Decision parameter bounds:

\(0.1\le {x}_{1}\le 2\), \(0.1\le {x}_{2}\le 10\), \(0.1\le {x}_{3}\le 10\), and \(0.1\le {x}_{4}\le 2\).

Table 16 shows the outcomes of the several strategies that produced the best results. Furthermore, the summary statistics of such algorithms are also presented in Table 17. It can be shown that the optimum fitness value of the RCOA is on par with or better than the optimum fitness value of the other algorithms. Figure 28 illustrates the convergence graphs and boxplot analysis of all algorithms. The convergence graphs and the boxplot conclude that the RCOA can produce the best results with a high convergence speed and better reliability. From the FRT values, it is observed that the RCOA stood first among all chosen algorithms. The RT values represent the computation time required to solve the WBDO problem.

Table 16 Decision parameters found by all methods for the WBDO challenge.
Table 17 Statistical analysis of all methods on the WBDO challenge.
Figure 28
figure 28

WBDO problem; (a) Convergence curves, (b) Boxplots.

Car side impact design optimization (CSIDO) problem

The proposed RCOA uses the design of an automobile side impact as a benchmark challenge. Figure 29 depicts a representation of the FEM model for this application. A car is subjected to a side-impact test based on protocols developed by the European enhanced vehicle safety committee. The purpose is to decrease the weight by controlling nine impact parameters, including the thicknesses of the roof rail, beltline reinforcement, door beam, cross members, floor side inner, B-Pillar reinforcement, and B-Pillar inner (\({x}_{1}-{x}_{7}\)), the materials of B-Pillar inner and floor side inner (\({x}_{8}-{x}_{9}\)) and the height of the barrier (\({x}_{10}-{x}_{11}\)).

Figure 29
figure 29

FEM model of car side impact.

The fitness function and constraints of the CSIDO are provided below.

$$\mathrm{Min}: f\left({\varvec{x}}\right):=1.98+2.73{x}_{7}+4.90{x}_{1}+1.78{x}_{5}+4.01{x}_{4}+6.67{x}_{2}+6.98{x}_{3},$$
(36)

Subjected to:

$${g}_{1}(x)={F}_{a}(\text{load in the abdomen})\le 1{\text{kN}}$$
$${g}_{2}\left(x\right)={\mathrm{VC}}_{u}\left(\text{dummy upper chest}\right)\le 0:\frac{32{\text{m}}}{\text{s}}$$
$${g}_{3}\left(x\right)={\mathrm{VC}}_{m}\left(\text{dummy middle chest}\right)\le 0:\frac{32{\text{m}}}{\text{s}}$$
$${g}_{4}\left(x\right)={\mathrm{VC}}_{l}\left(\text{dummy lower chest}\right)\le 0:\frac{32{\text{m}}}{\text{s}}$$
$${g}_{5}\left(x\right)={\Delta }_{\text{ur}}\left(\text{upper rib deflection}\right)\le 32{\text{mm}}$$
$${g}_{7}(x)={\Delta }_{\text{lr}}(\text{lower rib deflection})\le 32{\text{mm}}$$
$${g}_{6}(x)={\Delta }_{\text{mr}}(\text{middle rib deflection}\le 32{\text{mm}}$$
$${g}_{8}\left(x\right)={F}_{p}\left(\text{Pubic force}\right)\le 4{\text{kN}}$$
$${g}_{9}(x)={V}_{\text{MBP}}(\text{Velocity of V-Pillar at the middle point})\le 9:9{\text{mm}}/{\text{ms}}$$
$${g}_{10}(x)={\mathrm{V}}_{\text{FD}}(\text{Velocity of the front door at V-Pillar})\le 15:7{\text{mm}}/{\text{ms}}$$

where

$${V}_{FD}=16.45-0.0556{x}_{9}{x}_{11}-0.489{x}_{3}{x}_{7}+0.0432{x}_{9}{x}_{10}-0.843{x}_{5}{x}_{6}-0.000786{x}_{11}^{2}$$
$${V}_{MBP}=10.58-0.674{x}_{1}{x}_{2}-1.95{x}_{2}{x}_{8}+0.02054{x}_{3}{x}_{10}-0.0198{x}_{4}{x}_{10}+0.028{x}_{6}{x}_{10}$$
$${F}_{p}=4.72-0.5{x}_{4}-0.19{x}_{2}{x}_{3}-0.0122{x}_{4}{x}_{10}+0.009325{x}_{6}{x}_{10}+0.000191{x}_{11}^{2}$$
$${\Delta }_{ur}=28.98+3.818{x}_{3}-4.2{x}_{1}{x}_{2}+0.0207{x}_{5}{x}_{10}+6.63{x}_{6}{x}_{9}-7.7{x}_{7}{x}_{8}+0.32{x}_{9}{x}_{10}$$
$${\Delta }_{mr}=33.86+2.95{x}_{3}+0.1792{x}_{10}-5.057{x}_{1}{x}_{2}-11.0{x}_{2}{x}_{8}-0.0215{x}_{5}{x}_{10}-9.98{x}_{7}{x}_{8}+22.0{x}_{8}{x}_{9}$$
$${\Delta }_{lr}=46.36-9.9{x}_{2}-12.9{x}_{1}{x}_{8}+0.1107{x}_{3}{x}_{10}$$
$$V{C}_{l}=0.74-0.61{x}_{2}-0.163{x}_{3}{x}_{8}+0.001232{x}_{3}{x}_{10}-0.166{x}_{7}{x}_{9}+0.227{x}_{2}^{2}$$
$$V{C}_{m}=0.214+0.00817{x}_{5}-0.131{x}_{1}{x}_{8}-0.0704{x}_{1}{x}_{9}+0.03099{x}_{2}{x}_{6}-0.018{x}_{2}{x}_{7}+0.00121{x}_{8}{x}_{11}+0.00184{x}_{9}{x}_{10}-0.02{x}_{2}^{2}$$
$$V{C}_{u}=0.261-0.0159{x}_{1}{x}_{2}-0.188{x}_{1}{x}_{8}-0.019{x}_{2}{x}_{7}+0.0144{x}_{3}{x}_{5}+0.0008757{x}_{5}{x}_{10}+0.08045{x}_{6}{x}_{9}+0.00139{x}_{8}{x}_{11}+0.00001575{x}_{10}{x}_{11}$$
$${F}_{a}=1.16+0.01343{x}_{6}{x}_{10}-0.00931{x}_{2}{x}_{10}-0.3717{x}_{2}{x}_{4}-0.484{x}_{3}{x}_{9}$$

Decision parameter bounds:

\(0.5\le {x}_{1},{x}_{2},{x}_{3},{x}_{4},{x}_{5},{x}_{6},{x}_{7}\le 1.5\); \({x}_{8},{x}_{9}\in \{\mathrm{0.192,0.345}\}\), and \(-30\le {x}_{10},{x}_{11}\le +30\).

Table 18 shows the outcomes of the several strategies that produced the best results. Furthermore, the summary statistics of such algorithms are also presented in Table 19. It can be shown that the optimum fitness value of the RCOA is on par with or higher than the optimum fitness value of the other algorithms. Figure 30 illustrates the convergence graphs and boxplot analysis of all algorithms. The convergence graphs and the boxplot conclude that the suggested RCOA can produce the best results with a high convergence speed and better reliability. From the FRT values, it is observed that the RCOA raised first among all chosen methods. The RT values represent the computation time required to solve the CSIDO problem.

Table 18 Decision parameters found by all methods for the CSIDO challenge.
Table 19 Statistical analysis of all methods on the CSIDO problem.
Figure 30
figure 30

CSIDO problem; (a) Convergence curves, (b) Boxplots.

Further discussions

The superior performance of the RCOA for numerical and constrained optimization problems can be attributed to several unique characteristics of the algorithm. (i) RCOA is inspired by the time response of the resistance–capacitance circuit, and this inspiration allows it to adeptly handle sudden changes and adapt quickly, enhancing its effectiveness in numerical optimization problems, (ii) Unlike many optimization algorithms that require meticulous tuning of control parameters, RCOA operates devoid of any such parameters. This simplifies the optimization process and increases the algorithm's robustness, thus making it suitable for handling optimization problems, including constrained ones, (iii) The RCOA has a well-defined and balanced exploration and exploitation process. The exploration phase allows the algorithm to search a broad solution space, thus reducing the likelihood of premature convergence to local optima, while the exploitation phase ensures it can effectively navigate towards optimal solutions. This balance makes it particularly adept at solving complex numerical and constrained optimization problems, (iv) As demonstrated in the study, RCOA converges significantly quicker than other algorithms. Fast convergence is particularly crucial in constrained optimization problems, where the solution space is often bounded, and reaching the optimal solution efficiently is of utmost importance, and (v) Unlike some algorithms that perform well on specific functions but poorly on others, RCOA has demonstrated consistent performance across a variety of benchmark functions.

According to the findings, the outcomes of the eight engineering design optimization problems and 23 numerical optimization problems showed that the proposed RCOA was the most effective of all of them. The detailed investigation reveals that the RCOA is superior to other metaheuristic algorithms in terms of performance and efficiency. Based on the outcomes obtained when addressing traditional engineering design problems, it can be inferred that the RCOA outperforms other methods when dealing with all the selected problems compared to other approaches. The suggested RCOA can potentially identify the optimal global solutions to various optimization problems more efficiently than certain algorithms currently available in the scientific literature. Because of RCOA's exploratory and exploitation capabilities, it can produce and enhance a set of potential solutions for an optimization problem in a stochastically generated way. Furthermore, the RCOA has no tunable parameters, i.e., a parameter-free optimization algorithm. Even though the preceding experimental findings demonstrate that the RCOA outperforms the majority of comparison algorithms, it even has significant downsides that must be considered. The effectiveness of the RCOA can be enhanced, but there is always an opportunity for improvement. It is also discovered that the RCOA can achieve theoretically optimal values in the unimodal benchmark function despite the minimal number of theoretically optimal results calculated by the RCOA, indicating that its exploitation ability in the unimodal test function could be further enhanced. Upon additional testing of the multimodal benchmark function, it is discovered that the number of interesting optimum values achieved is limited, indicating that the RCOA's exploration and exploitation capabilities under multiple optimal solutions require more improvement. The RCOA, on the other hand, has not been confirmed in a higher-dimensional context. To summarize, the advantages and limitations of the RCOA are given below.

The merit of the approach can be concluded based on a few key points:

  • The RCOA performed competitively when benchmarked against 23 benchmark test problems and eight real-world design optimization problems. It demonstrated superior convergence rates and solution quality in several instances, underlining its efficacy and robustness.

  • The RCOA is a physics-inspired algorithm that leverages the fundamental principles of a resistance–capacitance series circuit. The novelty of the algorithm lies in its simplicity and the innovative way it mimics both the transient and steady-state response of the circuit.

  • The approach is not problem-specific and can be applied broadly across various industrial engineering computation problems.

As with any approach, the RCOA also has certain limitations:

  • While the RCOA performed well across the benchmark and real-world problems, its effectiveness may be reduced with more complex, higher-dimensional optimization problems. Future work is needed to explore and improve its performance in such scenarios.

  • Like many optimization algorithms, our approach requires careful parameter tuning, i.e., selection of population size and maximum number of iterations, to ensure optimal performance. We have provided some guidelines in the paper, but tuning may need to be adapted based on the specifics of the problem at hand.

  • For large-scale problems, the computational cost may be a constraint due to the iterative nature of the algorithm. More research is required to reduce computational overhead and make the RCOA more efficient for larger problem instances.

Conclusions and future scopes

This study proposed the resistance–capacitance optimization algorithm, a revolutionary optimization algorithm, and its performance is deeply investigated using various numerical and practical engineering optimization problems. The properties of the proposed RCOA are as follows.

  • RCOA is inspired by the principles of physics, specifically the behaviour of a Resistance–Capacitance series circuit. The algorithm effectively mimics both the transient and steady-state responses of such a circuit.

  • RCOA is a population-based method that optimizes stochastic search processes, making it flexible and adaptable to various problems.

  • The algorithm employs mechanisms to balance exploration and exploitation. This property is vital for maintaining diversity in the population and avoiding premature convergence.

  • RCOA has proven to be a reliable algorithm, as demonstrated in our study by its competitive performance on both benchmark and real-world problems. RCOA can escape local optima and converge to the global optimum.

  • The algorithm has been designed to be scalable and applies to problems of different dimensions. However, as with any algorithm, there may be trade-offs with computational efficiency as the problem size increases.

  • As with many optimization algorithms, RCOA involves parameter tuning, i.e., population size and maximum number of iterations, to achieve optimal performance. However, the algorithm was designed to minimize the sensitivity to these parameters to the greatest extent possible.

  • RCOA’s structure and operations are relatively simple compared to other optimization algorithms. This simplicity, in turn, contributes to its computational efficiency.

The suggested algorithm was evaluated using the 23 traditional benchmark test functions, as well as eight real-world constrained engineering design optimization problems, to investigate its effectiveness. A penalty function-based constraint handling mechanism was employed in the proposed RCOA to solve real-world constrained engineering design problems. To make an even more meaningful comparison, the proposed RCOA is compared to other algorithms at all phases of experimentation. Aside from that, the Friedman’s ranking test was used to rank the algorithms. Among all the chosen algorithms, the RCOA came out on top for numerical and constraint engineering design optimization problems based on the simulation and statistical non-parametric assessment results. The boxplot analysis and convergence curves demonstrated the robustness, reliability, accuracy, efficiency, and applicability of the RCOA for numerical and engineering design optimization problems. Based on RT values and convergence graphs, the convergence and computational time are significantly superior to the chosen algorithms. In conclusion, the suggested RCOA is a trustworthy and simple optimization method for numerical and engineering design optimization problems.

There is much scope for future extensions and applications for any new research. Based on this statement, there is much scope for the proposed RCOA in different fields of applications, such as economic load dispatch, economic emission dispatch, optimal power flow, FACTS device placements, unit commitment, harmonic distortion minimization, wind farm layout design, BLDC motor design, load forecasting, solar and wind power forecasting, feature selection, image enhancement, image segmentation, machine learning, artificial intelligence, wireless sensor networks, etc. When any new algorithm is applied to different real-world applications, there may be a chance of getting trapped at local optima. In order to avoid the local optima trap, the proposed RCOA may also be improved by techniques such as trap-avoiding operators, Levy flight mechanism, Chaos theory, orthogonal learning, opposition-based learning, etc. In addition, the many- and multi-objective versions of the proposed algorithm are another scope for improving the RCOA.