1 Introduction

The bearing capacity of piles can be determined based on conventional semi-empirical equations. In this regard, the Meyerhof equation is still well-respected. In addition, there are some simple correlations between the bearing capacity of piles and in-situ tests (like cone penetration test, CPT or standard penetration test, SPT); however, some studies suggest that the aforementioned correlations overestimate the bearing capacity. Furthermore, some other studies recommend the use of dynamic equations, which are based on the pile and hammer properties, to estimate the bearing capacity of piles; however, as stated by Milad et al. (Milad et al. 2015), there are many assumption and simplification in estimating the bearing capacity using the aforementioned equations. (Ehsan Momeni et al. 2020; HAN Jiwei et al. 2020).

Reasonable and correct prediction of vertical ultimate bearing capacity of single pile is the most important safety premise in pile foundation engineering. The existing models are widely used because of the advantages of exponential curve model. In the use of exponential curve model, the reasonable solution of its unknown parameters is the key problem for prediction. The existing methods mainly use the traditional intelligent optimization algorithm or gradient optimization algorithm to complete this task (Peng et al. 2010). In engineering, we find that we can explore more optimized algorithm, so we propose an optimization algorithm combining golden section method and linear least square algorithm. (Julong et al. 2012; Xing et al. 2016).

2 Problem Description

In order to predict the ultimate bearing capacity, the exponential curve model is used in this paper (Deling 2003; Nehdi 2015).

$$ Q = Q_{u} \left( {1 - Ae^{ - Bs} } \right), $$
(1)

In it, S represents stable settlement (mm), Q is the test load corresponding to s ( kN), Unknown parameters in the model are A,B and theoretical ultimate bearing capacity \(Q_{u}\) (kN) at s → ∞

It is assumed that the stable settlement of n group \(S_{i}\) (i = 1,2,… n) and its corresponding test load \(Q_{i}\) (i = 1,2,…n) are obtained by test pile test, then the unknown parameter can be obtained by optimizing that nonlinear least squares cost function (Jiang et al. 2016).

$$ \min J(A,B,Q_{u} ) = \sum\limits_{i = 1}^{n} {\left( {Q_{i} - Q_{u} \left( {1 - Ae^{{ - Bs_{i} }} } \right)} \right)^{2} } $$
(2)

3 Exponential Curve Fitting Method

3.1 Separable Least Squares Problem

Genetic algorithm may also be used Genetic algorithms can also be used. The nonlinear least squares cost function defined by (2) can be solved by standard nonlinear least squares optimization method, such as Gauss–Newton method or Marquardt method. Genetic algorithm, differential evolution and other intelligent optimization methods can also be used to solve this problem. However (Yan et al. 2015; Zhang et al. 2015), the above methods do not take into account the characteristics of the unknown parameters in the model (1). For the convenience of analysis, order:

$$ A_{1} = Q_{u} \times A, $$
(3)

Then the formula (1) and (2) are converted into:

$$ Q = Q_{u} - A_{1} e^{ - Bs} , $$
(4)
$$ \min J(A,B,Q_{u} ) = \sum\limits_{i = 1}^{n} {\left( {Q_{i} - \left( {Q_{u} - A_{1} e^{{ - Bs_{i} }} } \right)} \right)^{2} } $$
(5)

And then it's easy to know, If B is known quantity, The nonlinear least squares problem defined by (5) will be simplified to a linear least squares problem. In addition, if let:

$$ N = \left[ {\begin{array}{*{20}c} {Q_{1} } \\ {Q_{2} } \\ \vdots \\ {Q_{n} } \\ \end{array} } \right], \ldots \,\,M = \left[ {\begin{array}{*{20}c} 1 & {e^{{ - Bs_{1} }} } \\ 1 & {e^{{ - Bs_{2} }} } \\ \vdots & \vdots \\ 1 & {e^{{ - Bs_{n} }} } \\ \end{array} } \right], $$
(6)

Another two unknown parameters in the formula (4):

$$ \left[ {\begin{array}{*{20}c} {Q_{u} } \\ {A_{1} } \\ \end{array} } \right] = \left( {M^{T} M} \right)^{ - 1} M^{T} N $$
(7)

Through the analysis above, we can see that the nonlinear least squares problem defined by (5) is variable separable. For this kind of nonlinear least squares problem, the nonlinear parameters and linear parameters can be divided into two groups estimated separately. The nonlinear parameter B can be estimated by nonlinear optimization techniques. In this paper, golden section method as a commonly used method in univariate optimization problems is used. \(Q_{u}\) and A1 are linear parameters, them can be obtained through formula (7).

3.2 Golden Section Method

The main idea of the golden section method is to find the optimal solution by narrowing the area of the optimal solution step by step. In the process of optimization, only the value of the finite cost function needs to be calculated. To calculate the objective function value required by the golden section method (Arnau et al. 2012), let B take a particular value, First, the linear parameters \(Q_{u}\) and A1 corresponding to B is calculated by formula (7), the objective function J corresponding to B, \(Q_{u}\) and A1 is calculated by the formula (5).

For one dimension optimization problem:

$$ \min f(x),\quad x \in [a,b] $$

Order constant θ = 0.618, the first step in the Golden Section, let \(x_{1} = a + (1 - \theta ) \times (b - a)\), \(x_{2} = a + b - x_{1}\), Calculate \(f(x_{1} )\) and \(f(x_{2} )\).

The second step in the Golden Section is to compare the size of \(f(x_{1} )\) and \(f(x_{2} )\). If \(f(x_{1} ) \le f(x_{2} )\), the interval of the optimal solution is reduced to [a, x2], this situation order \(b = x_{2}\), the interval of the optimal solution can still be recorded as [a, b], at the same time, let \(x_{2} = x_{1}\), \(f(x_{2} ) = f(x_{1} )\), \(x_{1} = a + (1 - \theta ) \times (b - a)\), calculate the value of \(f(x_{1} )\); If \(f(x_{1} ) = f(x_{2} )\), the interval of the optimal solution is reduced to \([x_{1} ,b]\), at this point, \(a = x_{1}\), the interval of the optimal solution can still be recorded as \([a,b]\), at the same time, let \(x_{2} = x_{1}\), \(f(x_{2} ) = f(x_{1} )\), \(x_{1} = a + \theta \times (b - a)\), then calculate \(f(x_{2} )\).

The second step is repeated several times until the length of the interval \([a,b]\) is less than a predetermined constant ε, so that the optimal solution \(x_{b} = {{(a + b)} \mathord{\left/ {\vphantom {{(a + b)} 2}} \right. \kern-\nulldelimiterspace} 2}\) can be obtained.

After each iteration, the golden section reduces the length of the search interval to θ times that of the previous one (Xue et al. 2015; Sun et al. 2015).

3.3 Algorithm Flow

In summary, the golden section-least square procedure of estimating the unknown parameters a\b and qu in the exponential curve model defined by the formula (1) is as follows:

  1. (1)

    Sets the constant ε required to end the golden section search, order constant \(\theta = 0.618\); Sets the range of values of the parameter B \([\alpha ,\beta ]\).

  2. (2)

    Let \(B_{1} = a + (1 - \theta ) \times (\beta - \alpha )\), the corresponding objective function \(J_{1}\) is calculated by the formula (5); Let \(B_{2} = a + \beta - B_{1}\), the corresponding objective function \(J_{2}\) is calculated by the formula (5).

  3. (3)

    Compare the size of \(J_{1}\) and \(J_{2}\). If \(J_{1} \le J_{2}\), order \(\beta = B_{2}\), \(B_{2} = B_{1}\), \(J_{2} = J_{1}\), \(B_{1} = a + (1 - \theta ) \times (\beta - \alpha )\), \(J_{1}\) is calculated by the formula (5); Otherwise, order \(\alpha = B_{1}\), \(B_{1} = B_{2}\), \(J_{1} = J_{2}\), \(B_{2} = a + \theta \times (\beta - \alpha )\), \(J_{2}\) is calculated by the formula (5).

  4. (4)

    If \(\beta - \alpha \ge \varepsilon\), return to the step (3); Otherwise, let the optimal solution \(B^{ * } = {{(\alpha + \beta )} \mathord{\left/ {\vphantom {{(\alpha + \beta )} 2}} \right. \kern-\nulldelimiterspace} 2}\), the linear parameter and corresponding to B* are calculated by formula(3), (4), the objective function J* corresponding to, and can be calculated by formula (5). Let A* = A* 1/Q* u, to find out the optimal solution B*, A*, Q* u and the optimal objective function J*.

4 Example of Practical Calculation

To verify the performance of the above algorithm, Taking into account the static load test data of Wuhan Power Market Building provided by reference (Deling 2003), Set the constant \(\varepsilon = 1 \times 10^{ - 4}\) required by the golden section method, Set the range of parameter \(B[0,20]\) (Fig. 1).

According to the static load test data of Wuhan power market building provided by literature (Deling 2003), the predicted value is calculated by golden section least square method according to the algorithm flow of 3.3, and compared with the prediction data in literature (Deling 2003) and Literature. The detailed results are shown in Table 1.

Table 1 The optimal solutions obtained by different methods and their comparison
Table 2 Comparison table of different algorithm fitting results

The model fitting accuracy in Table 1 is defined as:

$$ \psi = \sqrt {1 - {{\sum\limits_{i = 1}^{n} {\left( {Q_{i} - Q_{i}^{m} } \right)^{2} } } \mathord{\left/ {\vphantom {{\sum\limits_{i = 1}^{n} {\left( {Q_{i} - Q_{i}^{m} } \right)^{2} } } {\sum\limits_{i = 1}^{n} {\left( {Q_{i} - \overline{Q}} \right)^{2} } }}} \right. \kern-\nulldelimiterspace} {\sum\limits_{i = 1}^{n} {\left( {Q_{i} - \overline{Q}} \right)^{2} } }}} $$

where \(Q_{i}^{m}\) corresponds to \(Q_{i}\), The load value calculated by the model is KN, \(\overline{Q}\) is the average value of measured load \(Q_{i}\) (i = 1,2,… n) (Fig. 2 and Table 2).

5 Conclusion

According to the traditional exponential model curve fitting method, an exponential model curve fitting optimization algorithm is proposed, and its theoretical prediction of the ultimate load of a single pile is deduced. The calculation results for typical problems show that this method has the advantages of small amount of calculation and high model accuracy. From the data, the fitting precision of curve fitting optimization algorithm of exponential model is higher than that of traditional method. Through comparison, it can be seen that the exponential model curve fitting optimization algorithm is more safe and reliable to predict the limit load value, and can meet the need of high precision in prediction or design.

Fig. 1
figure 1

The picture of single pile

Fig. 2
figure 2

A comparison figure between the golden section-the least squares solution and the measured values