1 Introduction

Retaining wall structures are designed and constructed for the purpose of supporting vertical or near-vertical slopes of soil or other loose materials [1]. These structures are used for design situations in which there is an abrupt difference in the ground level of adjacent areas of land. Retaining walls are among the most common geotechnical structures used in many locations, including railways embankments, roads, culverts, bridge abutments, etc. Therefore, it is very important to design a safe and low-cost retaining wall structure. Retaining wall structures can be categorized into two main groups of gravity retaining walls and cantilever retaining walls. Gravity retaining walls are usually built of plain concrete and rely solely on their own weight for stability against sliding and overturning. This kind of retaining walls is economical for height up to 2 m [2]. Cantilever retaining walls are built of reinforced concrete and generally consist of a vertical stem, a base slab, and a shear key. Different types of forces act on a cantilever retaining wall, including self-weight of the wall, surcharge loads, lateral pressures due to soil and surcharge, etc. [3]. The design process of a cantilever retaining wall includes two distinct steps. The first step is focused on the estimation of forces acting on the wall. In this step, the structure is controlled for stability against overturning, sliding, and bearing capacity failure. In the second step, each component of the retaining wall in checked for strength and the required reinforcement of each component is calculated. Therefore, proper design of a cantilever retaining wall requires an accurate estimation of the acting forces, especially lateral earth pressures. The Coulomb and Rankine theories are two well-known classical theories for determining lateral earth pressures under static loading condition. Mononobe–Okabe method is still the first choice of geotechnical engineers to estimate lateral earth pressures under seismic loading condition [4].

Optimization approaches can be categorized into two main groups of mathematical programming techniques and meta-heuristic algorithms. Mathematical programming techniques are analytical and employ the techniques of differential calculus for finding the optimum points [5]. These techniques are useful only in cases where the objective function is continuous and differentiable. Due to the limitations of mathematical programming techniques, some non-traditional optimization methods, known as meta-heuristic algorithms, have been developed over the past few decades [6]. Meta-heuristic algorithms, which are conceptually different from mathematical programming techniques, try to integrate rule-based theories and randomization with the aim of exploring effectively the search space of the optimization problem [7].

Different meta-heuristic algorithms have been employed for optimal design of cantilever retaining wall structures, including big bang–big crunch (BB–BC) algorithm [8], gravitational search algorithm (GSA) [9], charged system search (CSS) algorithm [10], hybrid firefly algorithm [11], swarm intelligence techniques [12], dolphin echolocation optimization (DEO) algorithm [13], teaching–learning-based optimization [14], evolutionary algorithms [15], biogeography-based optimization (BBO) algorithm [16], simulated annealing (SA) algorithm [17], gray wolf optimization (GWO) algorithm [18], neural network, and bee colony techniques [19, 20]. Kaveh et al. [21] optimized cost design of cantilever retaining walls by means of eleven population-based meta-heuristics including artificial bee colony (ABC), big bang–big crunch (BB–BC), cuckoo search (CS), charged system search (CSS), imperialist competitive algorithm (ICA), ray optimization (RO), tug of war optimization (TWO), and water evaporation optimization (WEO). Mergos and Mantoglou [22] applied the flower pollination algorithm (FPA), for the first time, to the optimum design of reinforced concrete cantilever retaining walls. Kazemzadeh Azad and Akış [23] performed optimum cost design of mechanically stabilized earth walls using adaptive dimensional search algorithm.

Shuffled shepherd optimization algorithm (SSOA) is a new population-based meta-heuristic developed by Kaveh and Zaerreza [24]. The SSOA algorithm is inspired by the herding behavior of shepherds who takes care of and guards a flock of sheep. SSOA has recently been utilized to solve truss layout optimization problems, and the optimal design results confirm its efficient performance in both aspects of accuracy and convergence speed [25].

This study aims to optimal design of cantilever retaining wall structures utilizing a recently developed population-based meta-heuristic algorithm called shuffled shepherd optimization algorithm (SSOA). The optimization goal is to minimize the cost of cantilever retaining walls while satisfying some constraints on stability and strength. The design is based on the requirements of American Concrete Institute code for structural concrete (ACI 318-05) [26]. A benchmark cantilever retaining wall problem is investigated to demonstrate the performance of the SSOA algorithm. The design is performed under static and seismic loading conditions. The Rankine and Coulomb theories are employed for the static loading condition, whereas the Mononobe–Okabe method is utilized for the seismic one.

The rest of this paper is organized as follows: In Sect. 2, the shuffled shepherd optimization algorithm (SSOA) is presented briefly. The set theoretical shuffled shepherd optimization algorithm (STSSOA) is presented in Sect. 3. The optimization problem is defined in Sect. 4. Section 5 is devoted to analysis of reinforced concrete cantilever retaining wall structures. In Sect. 6, the optimization results are discussed in detail. Eventually, the last section concludes the paper.

2 Shuffled shepherd optimization algorithm (SSOA)

The shuffled shepherd optimization algorithm (SSOA) is a novel population-based meta-heuristic that mimics the herding behavior of shepherds. Humans have learned over time that they can use animal abilities to achieve their goals. For instance, shepherds have learned to use fast-ridden horses to herd animals like domesticated sheep and cows. Shepherds try to steer their herds to the right direction. For this purpose, shepherds usually put animals like horses or herding dogs in their herds and use the herding instinct of these animals to direct the herd and guard it from predation and theft. This behavior is the basis for obtaining the step size of sheep in the SSOA algorithm [24]. In the SSOA algorithm, the set of candidate solutions is considered as a herd of sheep. There are many herds that use a common pasture. Hence, in the SSOA algorithm, the population of candidate solutions (the main herd) is divided into some subpopulations (smaller herds) with the same number of sheep. SSOA starts with a randomly generated herd of sheep. The sheep are evaluated and sorted in ascending order of their penalized objective function values. Next, the herd of sheep is divided into a predetermined number of smaller herds with the same number of sheep. The division is done in such a way that the smaller herds are close to each other in terms of average quality. In the next step, a unique step size is calculated for each sheep. For this purpose, each sheep is selected and considered as a shepherd. Naturally, the selected sheep (shepherd) belongs to one of the herds. In the herd containing the selected sheep (shepherd), obviously there are some better and worse sheep compared to the selected sheep. The better and worse sheep are called horses and sheep, respectively. A horse and a sheep are selected randomly with respect to the selected sheep (shepherd). The shepherd rides the horse and moves from the current position to his new position. Therefore, the current position is obtained and evaluated. The current position is updated in a greedy manner so that the better position is considered as the current position. This process is repeated for the sheep of all herds. Next, the herds merge together and the sheep are sorted in ascending order of their penalized objective function values. Again, the sheep are divided into some smaller herds with equal cardinality, and the above-mentioned process is repeated until the stopping criterion is satisfied.

3 Set theoretical shuffled shepherd optimization algorithm (STSSOA)

In this section, the concepts of set theory are employed to generalize the concepts of shuffled shepherd optimization algorithm (SSOA). Taking a close look at the shuffled shepherd optimization algorithm, one can find an analogy between the concepts of set theory and the SSOA. The set of candidate solutions (a flock of sheep) can be considered as a set of elements. The weight of an element is defined as the value of its penalized objective function. Similarly, the weight of a subset is defined as sum of the weights of its elements. In each iteration of the SSOA, the sheep (elements) are sorted in ascending order of weight. Next, the flock of sheep (the set of elements) is divided into a predetermined number of smaller flocks (subsets). The subsets have the same cardinality. The subsets are generated in such a way that their weights are close to each other. Next, a unique step size of movement is defined for each element as follows: A horse (a better element, i.e., an element with smaller weight) and a sheep (a worse element, i.e., an element with larger weight) are randomly chosen for the element under consideration (shepherd). These better and worse elements are chosen from the subset of which the element under consideration belongs. Therefore, the set of new elements is generated. The old elements are compared and replaced with their corresponding newly generated elements in a simple greedy manner so that the element with smaller weight will be preferred. Again, the subsets are generated and the process is repeated until the stopping criterion is satisfied. The set theoretical shuffled shepherd optimization algorithm (STSSOA) is stated in five steps as follows:

Step One (Forming the Initial Elements) Like other population-based meta-heuristics, shuffled shepherd optimization algorithm (SSOA) starts with a set of randomly generated initial candidate solutions named as elements. In other words, in SSOA, the initial candidate solutions (initial population) can be considered as a set with \( n{\text{EL}} \) elements. The set of elements (\( {\text{EL}} \)) can be generated by the following equation:

$$ {\text{EL}}\, = \,{\text{Lb}}\, + \,\left( {{\text{Ub}}\, - \,{\text{Lb}}} \right)\, \times \,{\text{rand}}\,\left( {n{\text{EL}},\,nV} \right) $$
(1)

where \( n{\text{EL}} \) is the number of elements. In addition, \( nV \) is the number of design variables. \( {\text{Ub}} \) and \( {\text{Lb}} \) are the upper and lower bounds of the design variables, respectively.

It is worse to mention that the computational efficiency of the algorithm can be improved by seeding the initial population with feasible solutions [27].

Step Two (Forming the Subsets) Initially, the elements are sorted in ascending order of their penalized objective function (\( {\text{PFit}} \)). Next, the set of initial candidate solutions (initial set) is divided into \( k \) subsets with the same cardinality. For this purpose, \( k \) null subsets are considered. In the first step of forming the subsets, the first \( k \) best elements of the sorted set are removed from the sorted set, and each element is put in a subset randomly. Consequently, all \( k \) subsets have an element at this step. At the next step, the next \( k \) best elements of the sorted set are removed from the sorted set and each of them is put in a subset randomly. Consequently, all \( k \) subsets have two elements at this step. This process is repeated until no more element remains in the initial set. At the end of the process (the last step), all \( k \) subsets have an equal number of \( m \) elements. The subsets are close to each other in terms of average penalized objective function values. It is obvious that the first and last elements of a subset have the lowest and highest values of penalized objective function among the elements of the subset, respectively. It can be said that

$$ n{\text{EL}} = k \times m $$
(2)

where \( n{\text{EL}} \) is the number of elements. In addition, \( k \) and \( m \) are the number of subsets and the number of elements of each subset, respectively.

The average penalized objective function value of the \( i \)th subset (\( {\text{mean}}_{{s_{i} }} \)) can be calculated as:

$$ {\text{mean}}_{{s_{i} }} = \frac{1}{m}\left( {{\text{PFit}}_{{\mathop {i,1}\nolimits }} + {\text{PFit}}_{i,2} + \cdots + {\text{PFit}}_{i,m} } \right);\quad i = 1,2, \ldots ,k $$
(3)

where \( k \) and \( m \) are the number subsets and the number of elements of each subset, respectively. In addition, \( {\text{PFit}}_{i,j} \) is the value of penalized objective function of the \( j \)th element of the \( i \)th subset.

Step Three (Elements Movement) In this step, a unique step size of movement is defined for each element of each subset as follows. For this purpose, the first element of the first subset is selected. Next, a better element and a worse one are chosen with respect to the selected element. These better and worse elements are chosen from the subset of which the selected element belongs. For instance, for \( j \)th element of a subset, there are \( j - 1 \) better elements and \( m - j \) worse elements. It is clear that there is no better element for the first element of a subset. Furthermore, there is no worse element for the last element of a subset.

$$ \begin{aligned} {\text{stepsize}}_{i,j} & = \beta \times {\text{rand}}_{1} \times \left( {{\text{EL}}_{\text{B}} - {\text{EL}}_{i,j} } \right) + \alpha \times {\text{rand}}_{2} \\ & \quad \times \left( {{\text{EL}}_{\text{W}} - {\text{EL}}_{i,j} } \right);\quad i = 1,2, \ldots ,k\quad j = 1,2, \ldots ,m \\ \end{aligned} $$
(4)

where \( {\text{EL}}_{i,j} \) is the element under consideration. In addition, \( {\text{EL}}_{\text{B}} \) and \( {\text{EL}}_{\text{W}} \) are the better and worse elements compared to the element under consideration. Figure 1 illustrates the movement of an element to its new position. It is again emphasized that the better and worse elements are chosen from the subset of which the element under consideration belongs. \( {\text{rand}}_{1} \) and \( {\text{rand}}_{2} \) are random numbers chosen from the continuous uniform distribution on the \( \left[ {0 1} \right] \) interval. For the first element of each subset, the first term of the above equation will be equal to zero. In addition, for the last element of each subset, the second term of the above equation will be equal to zero. According to the above equation, when a good element attracts the element under consideration, the exploitation ability for the algorithm is provided, and vice versa, if a bad element attracts the element under consideration, the exploration is provided. In addition, \( \beta \) and \( \alpha \) are the factors that control the exploitation and exploration, respectively. An efficient optimization algorithm should perform good exploration in early iterations and good exploitation in the final iterations [7]. Thus, \( \beta \) and \( \alpha \) are increasing and decreasing functions, respectively, and are defined as:

Fig. 1
figure 1

Movement of an element to the new position

$$ \beta = \beta_{0} + \frac{{\beta_{\text{Max}} - \beta_{0} }}{\text{MaxIter}} \times {\text{Iter}} $$
(5)
$$ \alpha = \alpha_{0} - \frac{{\alpha_{0} }}{\text{MaxIter}} \times {\text{Iter}} $$
(6)

The new position of the \( j \)th element of the \( i \)th subset is calculated by:

$$ {\text{newEL}}_{i,j} = {\text{EL}}_{i,j} + {\text{stepsize}}_{i,j} $$
(7)

Step Four (Replacement Strategy) Each new element is evaluated and compared with its corresponding old element based on the penalized objective function. The old element is replaced with the newly generated one in a simple greedy manner so that the element with smaller penalized objective function is preferred. In this way, the new set of elements is formed.

Step Five (Termination Criteria) If the number of iteration of the algorithm (\( {\text{Iter}} \)) becomes larger than the maximum number of iterations (\( {\text{MaxIter}} \)), the algorithm terminates. Otherwise go to Step two.

The pseudo-code of the STSSOA algorithm is provided as follows:

  • Define the algorithm parameters: \( n{\text{EL}} \), \( k \), \( m \), \( \beta_{0} \), \( \beta_{\text{Max}} \), \( \alpha_{0} \), and \( {\text{MaxIter}} \).

  • Generate random initial solutions or elements (\( {\text{EL}} \)).

  • Evaluate the initial population (set of elements) and form its corresponding vectors of the objective function (\( {\text{Fit}} \)) and penalized objective function (\( {\text{PFit}} \)).

  • While \( {\text{Iter}} < {\text{MaxIter}} \).

  • Sort the set of elements in an ascending order based on their penalized objective function (\( {\text{PFit}} \)).

  • Form the subsets based on the method described in step two.

  • Determine the new movement matrix (\( {\text{stepsize}} \)) using Eq. (4).

  • Generate new elements (\( {\text{newEL}} \)) using the \( {\text{stepsize}} \) matrix based on Eq. (7).

  • Evaluate the new elements.

  • Apply replacement strategy between old and new elements based on the method described in step four.

  • Update the number of algorithm iterations (\( {\text{Iter}} \)).

  • Monitor the best element found by the algorithm so far.

  • End While.

The flowchart of STSSOA is shown in Fig. 2. As Fig. 2 suggests, it is not possible explicitly to distinguish between exploration and exploitation phases of the algorithm because the STSSOA involves these two abilities together in the elements movement step (step three) using movement toward better and worse elements. Figure 3 illustrates the elements of STSSOA at different steps of the algorithm.

Fig. 2
figure 2

Flowchart of the STSSOA algorithm

Fig. 3
figure 3

Elements of the STSSOA algorithm

4 Definition of the optimization problem

The aim of this study is optimal design of cantilever retaining walls structures. The optimal design is defined as the one which results in the least possible cost while satisfying some stability and strength constraints. Figure 4 shows that the continuous design variables of the problem consist of seven geometric parameters related to the configuration of cantilever retaining wall. The design variables include the thickness of top stem (\( L_{1} \)), the thickness of key and stem (\( L_{2} \)), the toe width (\( L_{3} \)), the heel width (\( L_{4} \)), the height of top stem (\( L_{5} \)), the footing thickness (\( L_{6} \)), and the key depth (\( L_{7} \)). The wall is analyzed and designed with respect to these geometric dimensions. The optimization problem can be formulated as follows [13]:

Fig. 4
figure 4

Design variables of the reinforced concrete cantilever retaining wall

$$ {\text{Find}}\;\left\{ L \right\} = \left\{ {L_{1} ,L_{2} , \ldots ,L_{7} } \right\} $$
(8)
$$ {\text{to}}\;\text{minimize}\;{\text{Cost}}\left( {\left\{ L \right\}} \right) = V_{\text{C}} + W_{\text{S}} \times \left( {\frac{{C_{3} + C_{4} }}{{C_{1} + C_{2} }}} \right) $$
(9)
$$ {\text{subjected}}\;{\text{to: }}\left\{ {\begin{array}{*{20}l} {{\text{SF}}_{\text{o}} \; \ge \;1.5} \hfill \\ {{\text{SF}}_{\text{s}} \; \ge \;1.5} \hfill \\ {{\text{SF}}_{\text{b}} \; \ge \;2} \hfill \\ {\begin{array}{*{20}l} {{{M_{\text{u}} } \mathord{\left/ {\vphantom {{M_{\text{u}} } {\left( {\phi_{\text{b}} \bar{M}_{\text{n}} } \right)\; \le \;1}}} \right. \kern-0pt} {\left( {\phi_{\text{b}} \bar{M}_{\text{n}} } \right)\; \le \;1}}} \hfill \\ {{{V_{\text{u}} } \mathord{\left/ {\vphantom {{V_{\text{u}} } {\left( {\phi_{\text{v}} \bar{V}_{\text{n}} } \right)\; \le \;1}}} \right. \kern-0pt} {\left( {\phi_{\text{v}} \bar{V}_{\text{n}} } \right)\; \le \;1}}} \hfill \\ \end{array} } \hfill \\ \end{array} } \right. \, \begin{array}{*{20}c} {(10)} \\ {(11)} \\ {(12)} \\ {\begin{array}{*{20}c} {(13)} \\ {(14)} \\ \end{array} } \\ \end{array} $$

where \( \left\{ L \right\} \) is the vector of design variables which determines the configuration of the wall; \( L_{i} \) is the \( i \)th design variable; \( {\text{Cost}}\left( {\left\{ L \right\}} \right) \) denotes the cost function of the structure; \( V_{\text{C}} \) represents the volume of concrete per unit length of the structure; and \( W_{\text{S}} \) is the weight of reinforcing steel per unit length of the structure. Additionally, \( C_{1} \), \( C_{2} \), \( C_{3} \), and \( C_{4} \) are the costs of concrete, reinforcing steel, concreting, and reinforcement, respectively. The value of the parameter \( \frac{{C_{3} + C_{4} }}{{C_{1} + C_{2} }} \) (cost parameter) depends on many factors, such as country, economic conditions, type of structure, and work conditions, but studies show that a value in the range of 0.035–0.045 can be appropriate for it [13]. In this study, similar to [10], the value of cost parameter is considered to be equal to 0.04. Equations (10)–(14) represent constraints of the optimization problem, including stability and strength constraints. \( {\text{SF}}_{\text{o}} \), \( {\text{SF}}_{\text{s}} \), and \( {\text{SF}}_{\text{b}} \) are the factors of safety against overturning about the toe, sliding, and bearing capacity failure, respectively. The factors of safety against sliding and overturning failure under seismic loading condition may be reduced to 75% of them under static loading condition. Furthermore, the allowable soil pressure may be increased by 33% under seismic loading condition [28]. \( V_{\text{u}} \), \( \bar{V}_{\text{n}} \), \( M_{\text{u}} \), and \( \bar{M}_{n} \) denote the maximum shear force, nominal shear strength, maximum bending moment, and nominal flexural strength, respectively. In addition, \( \phi_{\text{b}} \) and \( \phi_{\text{v}} \) are the strength reduction factors for flexure and shear, respectively. Equations (13) and (14) must be controlled for all critical sections of the structure. These sections are given in Fig. 4.

5 Analysis of reinforced concrete cantilever retaining wall structure

Many forces act on a cantilever retaining wall, including surcharge load, lateral pressures due to the soil and surcharge, soil pressures acting on the footing, weight of the wall, weight of the soil above the base, etc. Figure 5 shows the forces acting on a cantilever retaining wall. \( W_{\text{S}} \) is the surcharge load, \( W_{\text{B}} \) is weight of the backfill above the heel, \( W_{\text{C}} \) is weight of the wall, \( H_{\text{A,S}} \) is the active force due to the surcharge, \( H_{\text{A,B}} \) is the active force due to the soil, \( H_{\text{P}} \) is the passive force acting on the wall, and \( F_{\text{B}} \) is the resultant vertical load. In addition, \( q_{\rm{max} } \) and \( q_{\rm{min} } \) are the pressures of the toe and heel sections, respectively.

Fig. 5
figure 5

Forces acting on a cantilever retaining wall

5.1 Active and passive earth pressures

There are various relationships to determine the active and passive pressures acting on a cantilever retaining wall. In this study, the structure has been investigated under the static and seismic loading conditions. The Rankine and Coulomb theories are employed to estimate the lateral earth pressures under static loading condition, whereas the Mononobe–Okabe method is utilized for seismic loading condition. According to the Rankine theory, the active and passive earth pressure coefficients are estimated through the following equations [29]:

$$ k_{\text{A,R}} = \cos \alpha \left( {\frac{{\cos \alpha - \sqrt {\cos^{2} \alpha - \cos^{2} \phi } }}{{\cos \alpha + \sqrt {\cos^{2} \alpha - \cos^{2} \phi } }}} \right) $$
(15)
$$ k_{\text{P,R}} = \cos \alpha \left( {\frac{{\cos \alpha + \sqrt {\cos^{2} \alpha - \cos^{2} \phi } }}{{\cos \alpha - \sqrt {\cos^{2} \alpha - \cos^{2} \phi } }}} \right) $$
(16)

where \( \alpha \) is angle of the backfill soil with respect to the horizontal, and \( \phi \) is angle of internal friction of the backfill soil. In addition, \( k_{\text{A,R}} \) and \( k_{\text{P,R}} \) are the Rankine active and passive earth pressure coefficients, respectively.

Based on the Coulomb earth pressure theory, the active and passive earth pressure coefficients can be calculated through the following equations [29]:

$$ k_{\text{A,C}} = \frac{{\sin^{2} \left( {\beta + \phi } \right)}}{{\sin^{2} \left( \beta \right)\sin \left( {\beta - \delta } \right)\left[ {1 + \sqrt {\frac{{\sin \left( {\phi + \delta } \right)\sin \left( {\phi - \alpha } \right)}}{{\sin \left( {\beta - \delta } \right)\sin \left( {\alpha + \beta } \right)}}} } \right]^{2} }} $$
(17)
$$ k_{\text{P,C}} = \frac{{\sin^{2} \left( {\beta - \phi } \right)}}{{\sin^{2} \left( \beta \right)\sin \left( {\beta + \delta } \right)\left[ {1 - \sqrt {\frac{{\sin \left( {\phi + \delta } \right)\sin \left( {\phi + \alpha } \right)}}{{\sin \left( {\beta + \delta } \right)\sin \left( {\alpha + \beta } \right)}}} } \right]^{2} }} $$
(18)

where \( \delta \) is angle of friction between the soil and the base slab, and \( \beta \) is angle of the back face of the retaining wall with respect to the horizontal. In addition, \( k_{\text{A,C}} \) and \( k_{\text{P,C}} \) are the Coulomb active and passive earth pressure coefficients, respectively.

According to the Mononobe–Okabe method, the active and passive earth pressure coefficients under seismic loading condition can be calculated as [30]:

$$ k_{\text{A,M}} = \frac{{\sin^{2} \left( {\phi + \beta - \theta } \right)}}{{\cos (\theta )\sin^{2} \left( \beta \right)\sin \left( {\beta - \delta - \theta } \right)\left[ {1 + \sqrt {\frac{{\sin \left( {\phi + \delta } \right)\sin \left( {\phi - \alpha - \theta } \right)}}{{\sin \left( {\beta - \delta - \theta } \right)\sin \left( {\alpha + \beta } \right)}}} } \right]^{2} }} $$
(19)
$$ k_{\text{P,M}} = \frac{{\sin^{2} \left( {\beta - \phi - \theta } \right)}}{{\cos \left( \theta \right)\sin^{2} \left( \beta \right)\sin \left( {\beta + \delta - \theta } \right)\left[ {1 - \sqrt {\frac{{\sin \left( {\phi + \delta } \right)\sin \left( {\phi + \alpha - \theta } \right)}}{{\sin \left( {\beta + \delta - \theta } \right)\sin \left( {\alpha + \beta } \right)}}} } \right]^{2} }} $$
(20)

where \( k_{\text{A,M}} \) and \( k_{\text{P,M}} \) are seismic earth pressure coefficients according to the Mononobe–Okabe method for active and passive states, respectively. \( \theta \) can be calculated as [30]:

$$ \theta = \tan^{ - 1} \left[ {\frac{{k_{\text{h}} }}{{\left( {1 - k_{\text{v}} } \right)}}} \right] $$
(21)

In the above equation, \( k_{h} \) and \( k_{v} \) are the horizontal and vertical acceleration coefficients, respectively. These coefficients can be expressed as [30]:

$$ k_{\text{h}} = \frac{{{\text{horizontal}}\;{\text{earthquake}}\;{\text{acceleration}}\;{\text{component}}}}{{{\text{acceleration}}\;{\text{due}}\;{\text{to}}\;{\text{gravity,}}\;{\text{g}}}} $$
(22)
$$ k_{\text{v}} = \frac{{{\text{vertical}}\;{\text{earthquake}}\;{\text{acceleration}}\;{\text{component}}}}{{{\text{acceleration}}\;{\text{due}}\;{\text{to}}\;{\text{gravity,}}\;{\text{g}}}} $$
(23)

5.2 Stability control

The factor of safety against overturning about the toe (about point O in Fig. 5) can be calculated by the following equation [29]:

$$ {\text{SF}}_{\text{o}} = \frac{{\sum {M_{\text{R}} } }}{{\sum {M_{\text{O}} } }} $$
(24)

where \( \sum M_{\text{R}} \) is sum of the moments of forces resisting overturning about the toe, and \( \sum M_{\text{O}} \) is sum of the moments of forces tending to cause overturning about the toe. Weight of the wall, weight of the soil above the base, and surcharge load are those forces that contribute to the resisting moment, whereas lateral pressures due to the soil and surcharge are those contribute to the overturning moment. The factor of safety against sliding can be calculated as [29]:

$$ {\text{SF}}_{\text{s}} = \frac{{\sum {F_{\text{R}} } }}{{\sum {F_{\text{D}} } }} = \frac{{H_{\text{P}} + \sum V \times \tan (\delta )}}{{H_{\text{A,S}} + H_{\text{A,B}} }} $$
(25)

where \( \sum F_{\text{R}} \) is sum of the horizontal resisting forces, and \( \sum F_{\text{D}} \) is sum of the horizontal driving forces. In addition, \( \sum V \) is sum of the vertical forces, including surcharge load, weight of the backfill above the heel, and weight of the wall. \( \sum V \) can be expressed as:

$$ \sum V = W_{\text{B}} + W_{\text{C}} + W_{\text{S}} $$
(26)

The factor of safety against bearing capacity failure may be expressed as [29]:

$$ {\text{SF}}_{\text{b}} = \frac{{q_{\text{u}} }}{{q_{\rm{max} } }} $$
(27)

where \( q_{\text{u}} \) is the ultimate bearing capacity of the soil, and \( q_{\hbox{max} } \) is the maximum pressure occurring at the end of the toe section. The maximum and minimum pressures can be determined by the following equation [29]:

$$ q_{\rm{max} ,\rm{min} } = \frac{\sum V }{B}\left( {1 \pm \frac{6e}{B}} \right);\quad e \le \frac{B}{6} $$
(28)

where \( e \) is the eccentricity of the resultant vertical load, and \( B \) is width of the base slab. If the value of eccentricity becomes greater than \( \frac{B}{6} \), \( q_{\rm{min} } \) will be negative, which means there will be some tensile stress at the end of the heel section. In such cases, the value of \( q_{\rm{max} } \) is equal to [31]:

$$ q_{\rm{max} } = \frac{4\sum V }{{3\left( {B - 2e} \right)}};\quad e > \frac{B}{6} $$
(29)

The magnitude of \( e \) can be calculated as:

$$ e = \frac{B}{2} - \frac{{\sum {M_{\text{R}} } - \sum {M_{\text{O}} } }}{\sum V } $$
(30)

6 Results and discussion

In order to investigate the efficiency of the SSOA algorithm, the algorithm is employed for optimal cost design of reinforced concrete cantilever retaining wall structures. The cantilever retaining wall is designed under static and seismic loading conditions. The Coulomb and Rankine theories are employed to model the static loading condition, whereas the seismic loading condition is modeled by the Mononobe–Okabe method. For the seismic loading condition, the optimization is carried out for different values of horizontal and vertical acceleration coefficients, as shown in Table 1. Table 2 lists the lower and upper bounds of design variables. The specified parameters of the problem, including soil parameters, design parameters, and retaining wall parameters are listed in Table 3. It should be mentioned that our problem is not a large-scale one. For large-scale problems one can use special methods as discussed in [32, 33].

Table 1 Horizontal and vertical acceleration coefficients
Table 2 Lower and upper bounds of design variables
Table 3 Parameters of the optimization problem

Table 4 shows the statistical results of SSOA in 50 independent runs. The initial population of each run is generated in a random manner. For all cases, the best, worst, and average optimized costs and the standard deviation of optimized costs are reported. Results in Table 4 indicate that the cantilever retaining wall structures designed based on the Coulomb theory are heavier compared to those designed based on the Rankine theory. This result was predictable, because the Coulomb theory takes the friction between the soil and the base slab into consideration, whereas the Rankine theory does not. Therefore, the maximum active and minimum passive earth pressures against the wall are related to the Coulomb theory and Rankine theory, respectively. The results show that the horizontal acceleration coefficient has a direct effect on the cost design of the cantilever retaining wall, while the vertical acceleration coefficient has a reverse effect on it. For all cases, the shear and stability capacity ratios are calculated at four critical sections of the structure and the results are listed in Table 5. A close examination of Table 5 reveals that the design is controlled by two factors, which are the shear strength of critical section of the toe slab, and bearing strength of the soil under the toe slab. Tables 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, and 17 present the optimal design results obtained by the SSOA algorithm and those previously reported by Kaveh et al. [21]. The results obtained utilizing the Coulomb theory are listed in Tables 6 and 7, whereas those obtained utilizing the Rankine theory are listed in Tables 8 and 9. In addition, the results obtained by the Mononobe–Okabe method for different values of horizontal and vertical acceleration coefficients are listed in Tables 10, 11, 12, 13, 14, 15, 16, and 17. For all cases, the maximum number of objective function evaluation is considered equal to 5000 as the stopping criterion. Comparison of the optimal design results obtained by the SSOA algorithm and those of the other considered meta-heuristics indicates that the SSOA algorithm has better performance in the aspects of best optimized cost, average optimized cost, and the standard deviation of optimized costs. For example, as Table 6 demonstrates, the best optimized cost obtained by the SSOA algorithm is 6.941, while it is 6.946, 6.946, 6.951, 6.970, 6.961, 6.968, 6.957, and 6.963 for ABC, BB–BC, CS, CSS, ICA, RO, TWO, and WEO, respectively. Furthermore, the standard deviation of the optimized costs obtained by the SSOA algorithm is 0.171, while it is 1.337, 0.346, 1.161, 0.506, 1.187, 1.071, 1.014, and 0.906 for ABC, BB–BC, CS, CSS, ICA, RO, TWO, and WEO, respectively. Figures 6, 7, 8, 9, 10, and 11 show the convergence histories of the SSOA algorithm and those obtained by other considered meta-heuristics. A zoomed part is attached to the convergence histories in order to simplify the comparison of convergence curves. A close examination of the convergence curves shows that the convergence rate of the SSOA algorithm is considerably higher than those of other considered meta-heuristics. As the curves suggest, the convergence of the SSOA algorithm is almost achieved for all cases within the first 2000 analyses. This result is concluded from Tables 7, 9, 11, 13, 15, and 17 too. Figures 12, 13, 14, 15, 16, and 17 show final design results of SSOA in 50 independent runs. The success rate of the SSOA algorithm can be obtained through these figures. For example, the success rate of the SSOA algorithm in 96% for the Coulomb and Rankine theories.

Table 4 Statistical results of SSOA for the cantilever retaining wall problem
Table 5 Capacity ratios of optimum designs obtained by SSOA
Table 6 Comparison of optimum designs utilizing Coulomb theory
Table 7 Optimized costs at different stages of optimization (Coulomb theory)
Table 8 Comparison of optimum designs utilizing Rankine theory
Table 9 Optimized costs at different stages of optimization (Rankine theory)
Table 10 Comparison of optimum designs utilizing Mononobe–Okabe method (Case 1)
Table 11 Optimized costs at different stages of optimization (Mononobe–Okabe method, Case 1)
Table 12 Comparison of optimum designs utilizing Mononobe–Okabe method (Case 2)
Table 13 Optimized costs at different stages of optimization (Mononobe–Okabe method, Case 2)
Table 14 Comparison of optimum designs utilizing Mononobe–Okabe method (Case 3)
Table 15 Optimized costs at different stages of optimization (Mononobe–Okabe method, Case 3)
Table 16 Comparison of optimum designs utilizing Mononobe–Okabe method (Case 4)
Table 17 Optimized costs at different stages of optimization (Mononobe–Okabe method, Case 4)
Fig. 6
figure 6

Comparison of convergence histories utilizing Coulomb theory

Fig. 7
figure 7

Comparison of convergence histories utilizing Rankine theory

Fig. 8
figure 8

Comparison of convergence histories utilizing Mononobe–Okabe method (Case 1)

Fig. 9
figure 9

Comparison of convergence histories utilizing Mononobe–Okabe method (Case 2)

Fig. 10
figure 10

Comparison of convergence histories utilizing Mononobe–Okabe method (Case 3)

Fig. 11
figure 11

Comparison of convergence histories utilizing Mononobe–Okabe method (Case 4)

Fig. 12
figure 12

Final results of the cantilever retaining wall obtained by SSOA (50 runs)

Fig. 13
figure 13

Final results of the cantilever retaining wall obtained by SSOA (50 runs)

Fig. 14
figure 14

Final results of the cantilever retaining wall obtained by SSOA (50 runs)

Fig. 15
figure 15

Final results of the cantilever retaining wall obtained by SSOA (50 runs)

Fig. 16
figure 16

Final results of the cantilever retaining wall obtained by SSOA (50 runs)

Fig. 17
figure 17

Final results of the cantilever retaining wall obtained by SSOA (50 runs)

7 Conclusion

This study introduced a recently developed population-based meta-heuristic, the shuffled shepherd optimization algorithm (SSOA). The concepts of set theory are employed to generalize the SSOA algorithm, which has led to the set theoretical shuffled shepherd optimization algorithm (STSSOA). The SSOA algorithm is examined for optimal design of reinforced concrete cantilever retaining walls under static and seismic loading conditions. Optimization aims to minimize the cost of cantilever retaining wall structures while satisfying some constraints on stability and strength. The static loading condition is modeled by the Rankine and Coulomb theories, whereas the Mononobe–Okabe method is utilized for the seismic loading condition. The results indicate that the design based on the Coulomb theory leads to heavier cantilever retaining wall structures compared to those designed based on the Rankine theory. Furthermore, the horizontal and vertical acceleration coefficients have direct and reverse effects on the cost design of the cantilever retaining wall, respectively. It can be concluded from the optimal design results that the design controlling factors of the problem are the shear capacity of the toe slab and bearing capacity of the soil under the toe slab. The optimal design results show the superiority of the SSOA algorithm over the other investigated meta-heuristics and confirm the efficient performance of the SSOA algorithm for the optimal cost design of cantilever retaining wall structures.