Introduction

Constantly increasing need for economical structures has enhanced the interests of designers in developing superior methodologies for optimum design of structural members. The structural design codes do not primarily dwell on the optimization front and this factor is mostly based on the experience of a particular designer—which in any case cannot be considered a substitute for the tested and validated principles of optimization techniques. This paper considers the provisions of IS 456-2000 and intelligent search technique to identify the optimum solution of RC beams. Undoubtedly, optimization of RC beams in smaller projects may not be financially viable due to unconventional cross-sectional size, however in large scale projects where the same design may be used several times, the savings compound and the optimization is viable [1].

Weight and cost are the two objective criterions commonly employed for structural optimization, but for RC structures ‘weight minimization’ may not necessarily lead to ‘cost minimization’ [2]. As regards to RC structures, the pioneer application of heuristic algorithm includes the work of previous researchers [3] who used Genetic Algorithm (GA) for economic optimization of RC beams. Furthermore, many more evolutionary methods have been developed during last many years for solving linear and non linear optimization problems such as genetic algorithm, simulated annealing, harmony search, particle swarm optimization and ant colonies, to explore solutions for constrained problems. Among all, GA is an artificial intelligent method, inspired by biological phenomenon has been widely used for structural design problems. The researchers have [4] efficiently used GA for optimizing RC continuous beams. Cost optimization models for RC and PC beams using GA have also been proposed by several investigators  [5]. An Artificial Neural Network (ANN) with GA for optimum design of singly and doubly reinforced beams has been presented by some of the previous investigators [6, 7] who recommended the optimum steel ratios for beams and columns in their work of optimization of RC flat slab using GA. Many researchers have tried to use GA to carry out optimization process of RC frames [8,9,10]. Some of the previous studies for optimizing RC frames—based on Indian specifications—have also implemented the capability of GA [11, 12].

PSO has mostly been studied for steel structures [13,14,15] and has found limited application for reinforced concrete structures [16,17,18]. PSO is widely acknowledged for its simplicity and convergence speed. The features of PSO which make it attractive for use are the adjustment of only a few parameters of the algorithm, as compared with other algorithms, and its applicability for non-differentiable, non-convex and highly nonlinear problems. Also it is considered to be a relatively powerful tool with high search speed for exploring optimal solution [19,20,21]. Recently, performance of PSO has been evaluated by combining it with other algorithms for optimum design of RC frame structures [22, 23]. This work is concerned with optimum cost of the simply supported rectangular beams using standard PSO technique and is organized as follows.

Particle Swarm Optimization

Particle swarm optimization is basically a ‘population based’ stochastic optimization technique [19] with the traits of simplicity and fair search potential. The interaction between different particles to determine their best positions is the crux of PSO. All particles communicate with each other in search of best position and adjust their velocities accordingly.

Each \(i{\text{th}}\) particle vector from a set of moving particles represents a potential solution based on a fitness function, and has a position \(Pos_{i}^{k}\) and velocity \(Vel_{i}^{k}\) at the \(k\)th iteration in the problem space. Each \(i\)th vector keeps a track of its individual best position \(Pos_{i}^{k}\), which is related with its own best fitness achieved so far at \(k\)th step in the iteration procedure. This value is identified as ‘pbest’. Likewise, the optimum position obtained so far in the swarm is stored as the global best position \(gbest^{k}\) and identified as ‘gbest’. The new velocity of the particle is modernized as follows:

$$Vel_{i}^{k + 1} = w^{k} Vel_{i}^{k} + c_{1} rand_{1} \left( {pbest_{i}^{k} - \overline{X}_{i}^{k} } \right) + c_{2} rand_{2} \left( {gbest^{k} - \overline{X}_{i}^{k} } \right)$$
(1)
$$Pos_{i}^{k + 1} = Pos_{i}^{k} + Vel_{i}^{k + 1}$$
(2)

where \(w^{k}\) is inertia weight at \(k\)th iteration in the first part and represents the memory of a particle during search. The inertia weighting function at each iteration is given as:

$$w^{k} = w_{max} - \left( {w_{max} - w_{min} } \right) \times k^{th} \_iter/iter_{max}$$
(3)

\(w_{max}\) and \(w_{min}\) represent maximum and minimum values of \(w\) respectively, where \(iter_{max}\) represents maximum number of iterations and \(k^{th} \_iter\) represents current iteration number. The first right hand term in (1) helps each particle to perform a global search by exploring a new search space, whereas the last two terms represent cognitive and social parts respectively in which \(c_{1}\) and \(c_{2}\) are the learning factors illustrating the weights of the acceleration terms that guide each particle toward the personal best and the global best positions respectively. \(rand_{1}\) and \(rand_{2}\) are uniformly distributed random numbers in the range 0–1, and N represents number of particles in the swarm. Each particle decides its position based on the updated velocity according to (2) which is known as flight formula. In this way, ‘velocity updating’ (1) and ‘flight formula’ (2) help the particles to locate the optimum solution in the search space. Figure 1 explains the algorithm as developed for the current problem.

Fig. 1
figure 1

Flow chart for design optimization of RC beam

In order to keep the particles within the search space, their velocities have been constrained by restricting the maximum velocity of each particle. Normally, the value of maximum velocity is selected empirically as per the characteristics of the given problem. When the value of this parameter is high, the particles start moving erratically and thereby go past a good solution, whereas when the value is small, the particle’s movement is restricted and they fall well short of the optimal solution. In the current optimization problem, the search space is bounded by \([Pos_{min} , Pos_{max}\)], and \(Vel_{max}\) has also been limited to 4.

Optimal Design Model

In the current optimization problem some of the parameters are considered as pre-assigned or fixed while others are variable. The design variables are determined such that the cost (objective function) becomes minimum. Some restrictions—called design constraints—limit the values of these design variables.

Objective Function

The total cost of the material used, which includes the cost of reinforcement (longitudinal and shear) and concrete, is taken as the objective function. Since the proposed algorithm is pertinent to an unconstrained and continuous optimization problem, the formulation of penalized objective function—including imposed penalties due to violation of constraints—is done to translate the constrained problem into an unconstrained one.

Development of Objective Function

The cost of RC beam is given as:

$$C = C_{st} V_{st} + C_{C} V_{C}$$
(4)

where, \(C\) = total cost of beam, \(C_{st}\) = cost of steel per unit volume of steel (rate of steel), \(V_{st}\) = total volume of steel, \(C_{C}\) = cost of concrete per unit volume of concrete (rate of concrete), \(V_{C}\) = total volume of concrete.

Divide Eq. (4) by \(C_{C},\)

$$\frac{C}{{C_{C} }} = \frac{{C_{st} }}{{C_{C} }}V_{st} + V_{C}$$

and substitute

$$\frac{C}{{C_{C} }} = Z,\quad \frac{{C_{st} }}{{C_{c} }} = \alpha \quad \left( {{\text{cost}}\,{\text{ratio}}} \right)$$

and

$$V_{C} = V_{G} - V_{st}$$

where, \(V_{G}\) is the gross volume of beam. Thus, objective function \(Z\) is defined as:

$${\text{Minimize}}\;{\text{Z}} = (\alpha - 1)\;V_{st} + V_{G}$$
(5)

Volume of steel \(V_{st}\) depends upon area of steel and its provided length. Similarly gross volume of concrete depends upon cross sectional area and length of beam.

Fixed Parameters

In the present model, all input design parameters have been considered fixed. These include span of beam, grade of reinforcement and concrete, intensity of dead and live loads, effective cover of concrete and cost ratio (ratio of unit cost of reinforcement to unit cost of concrete).

Design Variables

Independent design variables considered in the present model are width (\(b\)) and effective depth (\(d\)) of the beam. Cross-sectional area of longitudinal reinforcement (\(Ast\)) and shear reinforcement (\(Asv\)) have been calculated as dependent design parameters.

Constraints

Designs constraints considered in the present model not only considers Indian codal provisions for RC beam design (IS 456: 2000), but also few other publications [24, 25] (Table 1).

Constraint Normalization

All the constraint functions have been normalized—to speed up convergence and to prevent undue dominance of any particular constraint—as follows:

$$g_{1} = 1 - \frac{b}{{b_{min} }} \le 0$$
$$g_{2} = \left\{ {{\raise0.7ex\hbox{${\frac{{x_{u} }}{d}}$} \!\mathord{\left/ {\vphantom {{\frac{{x_{u} }}{d}} {\frac{{x_{u,max} }}{d}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\frac{{x_{u,max} }}{d}}$}}} \right\} - 1 < 0\quad {\text{where}}\quad \frac{{x_{u} }}{d} = \frac{{0.87f_{y} A_{st} }}{{0.36f_{ck} bd}}$$
$$g_{3} = \frac{{A_{st} }}{{A_{st} ,max}} - 1 \le 0$$
$$g_{4} = 1 - \frac{{A_{st} }}{{A_{st} ,min}} \le 0$$
$$g_{5} = 1 - \frac{{M_{r} }}{{M_{n} }} \le 0$$
$$g_{6} = \frac{{l - \frac{D}{2}}}{{{ \hbox{min} }\left( {60b,\frac{{250b^{2} }}{d}} \right)}} - 1 \le 0$$
$$g_{7} = \frac{l}{20d} - 1 \le 0\quad ({\text{when}}\;{\text{span}} \le 10\,{\text{m}})$$
$$g_{8} = \frac{{l^{2} }}{200d} - 1 \le 0\quad ({\text{when}}\,{\text{span}} > 10\,{\text{m}})$$

The constraint function values have been kept negative so that all constraints meet at optimal point. In case of any violation, a penalty has been imposed according to the “Constraint Handling Approach”.

Constraint Handling Approach

A non-linear constrained optimization problem defined below has been converted to an unconstrained one by the use of dynamically modified penalty function approach, where penalties imposed are not stationary but gets modified during the process.

$$Minimize\;Z\left( x \right)$$

Subjected to inequality constraints:

$$g_{i} \left( x \right) \le 0\quad i = 1,2,3 \ldots m$$

and equality constraints:

$$h_{i} \left( x \right) = 0\quad i = m + 1, \ldots l$$

\(Z\left( x \right)\) is the objective function, \(g_{i} \left( x \right)\) represents inequality constraints, and \(x\) is a ‘\(n\)’ dimensional vector of design variables.

In the PSO algorithm, objective function value indicates the favorability of two positions (old and new).

The penalized objective function (fitness function) \(Z^{\prime}\left( x \right)\) has been considered as in [21]:

$$Z^{\prime}\left( x \right) = Z\left( x \right) + h\left( k \right) H\left( x \right),\quad x \in S \subset R^{n}$$
(6)

where, \(H\left( x \right) = r \times \sum\nolimits_{i = 1}^{m} {\theta \left( {q_{i} \left( x \right)} \right)q_{i} \left( x \right)^{{\gamma \left( {q_{i} \left( x \right)} \right)}} }\), \(q_{i} \left( x \right) = \left\{ {0,g_{i} \left( x \right)} \right\},\quad i \, = 1, \, 2 \ldots m\), \(h\left( k \right) = k\sqrt k\), \(Z^{\prime}\left( x \right)\) = penalized objective function, \(Z\left( x \right)\) = original objective function, \(h\left( k \right)\) = dynamically modified penalty value, \(k\) = algorithm current iteration number, \(r\) = penalty multiplier, \(H\left( x \right)\) = penalty factor.

Function \(q_{i} \left( x \right)\) is a relative violated function of the constraints, \(\theta \left[ {q_{i} \left( x \right)} \right]\) is a multi-segment assignment function, γ \([(q_{i} \left( x \right))]\) is a power of the penalty function, and \(g_{i} \left( x \right)\) are the constraint functions.

If \(q_{i} \left( x \right)\) < 1, then \(\upgamma[q_{i} \left( x \right)]\) = 1, otherwise \(\upgamma[(q_{i} \left( x \right))]\) = 2.

Moreover,

$$\begin{aligned} & {\text{if}}\;q_{i} \left( x \right) < 0.001\;\;{\text{then}}\,\theta[ \left( {q_{i} \left( x \right)} \right)] = 10 \\ & {\text{else,}}\,{\text{if}}\,0.001 < q_{i} \left( x \right) < 0.1\;\;{\text{then}}\,\theta \left[( {q_{i} \left( x \right)} \right)] = 20 \\ & {\text{else}},\,{\text{if}}\,0.1 < q_{i} \left( x \right) < 1,{\text{then}}\,\theta \left[( {q_{i} \left( x \right)} \right)] = 100 \\ & {\text{otherwise}}\,\theta \left[( {q_{i} \left( x \right)} \right)] = 300. \\ \end{aligned}$$

Parameter \(r\) is problem dependent, which shall be a suitably large constant. In the current study, value of \(r\) has been set to 1012).

Table 1 Design constraints for optimal design of RC beam as per IS 456:2000

Optimal Design Solution

The design procedure coded in C++ gets the design solution through conventional limit state method as well as through proposed PSO algorithm. The constant parameters used in Standard Particle Swarm Optimization (SPSO) are given in Table 2.

Table 2 Constant parameters used in standard particle swarm optimizer

For investigating the performance of PSO, different design examples were considered and two of them are given here to compare the results with conventional Limit State Method (LSM). The necessary input parameters for these design examples of singly reinforced concrete beam carrying uniformly distributed load over the entire span are given in Table 3.

Table 3 Input parameters for design

In the examples discussed below, population size of the swarm i.e. swarm size is taken as 25.

In the present study, the optimization procedure was terminated when one of the following two stopping criteria was met:

  1. 1.

    No. of iterations become equal to maximum specified number.

  2. 2.

    No significant improvement in the solution.

The objective function (Z) gets reduced from 2.96964 × 109 in conventional LSM to 2.77124 × 109 in optimum beam design and consequently, percentage saving in cost is achieved by 6.7% in beam design (Example 1, Table 4). Similarly, the objective function obtained in design example 2, gets reduced from 1.47696 × 109 to 1.35332 × 109 and 8.4% saving in cost has been achieved (Table 4). It has also been observed that the effective depth to width ratio gets increased during the process, from 1.87 to 2 in example 1 and 1.84 to 2.5 in example 2 which indicate that optimization of the section is associated with rise in depth to width ratio. Two design examples with different range of input parameter i.e. ‘depth to width ratio’ indicate that greater the \(d/b\) ratio, greater is the percentage saving in cost. Furthermore, rise in depth to width ratio was restrained by the constraint put on minimum width of beam.

Table 4 Simulation results

To study ‘convergence performance’ of the algorithm, progress of design improvements has been illustrated in Figs. 2 and 3.

Fig. 2
figure 2

Progress of design improvements for Example 1

Fig. 3
figure 3

Progress of design improvements for Example 2

Parametric Study

Swarm Size

In PSO, best swarm size depends upon optimization problem. Different swarm sizes were considered to study their effect on performance of algorithm and optimum design solutions. Example 2 was optimized by taking swarm sizes equal to 5, 10 and 25. Effect of swarm size on required number of iterations for convergence has been shown in Fig. 4.

Fig. 4
figure 4

Convergence curves with different swarm sizes for Example 2

Although the optimum result largely remains unaffected by the swarm size, larger swarm size needs more iteration to get to the global optimum solution up to desired precision because the algorithm has to explore a greater area in each iteration resulting in more number of evaluations. Also the computational time is more for large swarm size. On the other hand, swarm sizes smaller than 5 have a risk of getting trapped into local minima.

Acceleration Coefficients

The relative values of acceleration coefficients \(c_{1}\) (cognitive acceleration coefficient) and \(c_{2}\) (social acceleration coefficient), when combined with the random numbers determine the exploratory nature of particles. The effect of acceleration coefficients has been studied for example 2 and shown in Table 5.

Table 5 Convergence of algorithm for different acceleration coefficients for example 2

It has been shown in Table 5 that when cognitive acceleration coefficient has lower value than social acceleration coefficient, its convergence is slow. Even at higher values of \(c_{1}\), particles tend to wander randomly. While if \(c_{2}\) has much lower value than \(c_{1}\) and much higher value than \(c_{1}\), particles do not reach global optima for example 2. But both cognitive acceleration coefficient and social acceleration coefficient equal to 2 give fairly good results.

Concluding Remarks

The PSO has proved to be a relatively robust tool for exploring optimal solutions for reinforced concrete beams. Undoubtedly, this study is specifically carried out for simply supported beams, but the scope of proposed algorithm is wide enough to seek the optimum solution for other beams and structures. The algorithm has not proved to be very sensitive to the variation of parameters like swarm size and acceleration coefficients. A considerable percentage of saving in cost of RC beam has been found using proposed optimum design approach. As the entire optimum design algorithm has been coded in C++, time taken to get the optimum design values has almost become an insignificant dimension. The limitations and restrictions of the Indian code IS 456: 2000 have been considered as a series of constraints in the current optimization problem and applied as penalties on the fitness function of the PSO. Two design examples have been presented to demonstrate the effectiveness and efficiency of the procedure. It has been viewed that reduction in both steel area as well as concrete volume contributes towards optimization of reinforced concrete beams and cost optimization is directly proportional to the ratio of depth to width of a beam.