# New hybrid conjugate gradient methods with the generalized Wolfe line search

- Xiao Xu
^{1}Email authorView ORCID ID profile and - Fan-yu Kong
^{1}

**Received: **14 March 2016

**Accepted: **6 June 2016

**Published: **24 June 2016

## Abstract

The conjugate gradient method was an efficient technique for solving the unconstrained optimization problem. In this paper, we made a linear combination with parameters *β*
_{
k
} of the DY method and the HS method, and putted forward the hybrid method of DY and HS. We also proposed the hybrid of FR and PRP by the same mean. Additionally, to present the two hybrid methods, we promoted the Wolfe line search respectively to compute the step size *α*
_{
k
} of the two hybrid methods. With the new Wolfe line search, the two hybrid methods had descent property and global convergence property of the two hybrid methods that can also be proved.

## Keywords

## Background

### The conjugate gradient method

The conjugate gradient method is a very important and efficient technique for solving large scale minimization problems, due to it can complete with lower storage and simple computation (Birgin and Martinez 2001).

*R*

^{ n }denotes an n-dimensional Euclidean space and \(f:R^{n} \mathop{\longrightarrow}\limits{{}}R^{1}\) is a continuously differentiable function. We denote its gradient ∇

*f*(

*x*

_{ k }) by

*g*

_{ k }. We are concerned with the conjugate gradient methods for solving (1). The iterative process of the conjugate gradient method is given by.

*x*

_{1}is the initial point and

*x*

_{ k }∊

*R*

^{ n }is the k-th approximation to a solution,

*α*

_{ k }is a positive step size, and

*d*

_{ k }∊

*R*

^{ n }is a search direction defined by the following:

*β*

_{ k }is a parameter.

### Selection of step size

For selection of step size *α*
_{
k
} in the iteration formula, it is generally determined by the direct method (0.618 method), the analytical method (successive difference approximation method), exact line search and inexact line search methods and so on. What we usually used in nonlinear conjugate gradient method is the exact line search and inexact line search. In this paper, we mainly use the Wolfe line search as following

*α*

_{ k }> 0 which satisfies

*σ*, the line search will be more precise, but the greater the amount of calculation. So we set

*μ*= 0.1,

*σ*∊ [0.6, 0.8]. In order to facilitate analysis, the inexact line search should convert to the exact line search, but in the formula (5), when

*σ*→ 0, the search is not the exact line search. For this purpose, Fletcher proposed the stronger condition to take the place of (5):

### Selection of search direction

*d*

_{ k }is generally required to satisfy

*d*

_{ k }is a descent direction of

*f*(

*x*) at

*x*

_{ k }(Yuan 1993). In order to maintain the global convergence property, we sometimes require

*d*

_{ k }to satisfy a sufficient descent condition

*c*> 0 is a constant.

### Selection of the parameter *β*
_{
k
}

*β*

_{ k }of different conjugate gradient methods as follows (see (i) Fletcher and Reeves 1964, (ii) Polyak 1969; Polak et al. 1968, (iii) Hestenes and Stiefel 1952, (iv) Vincent 1983, (v), (vi) Dai and Yuan 2000).

For positive quadratic function, if we adopt the exact line search, several conjugate gradient methods in the above are equivalent, which implies that the conjugate gradient directions generated by several methods are equivalent. In practical application, the FR method and PRP method are the most common methods.

The FR method is the earliest nonlinear conjugate gradient method, under the exact line search, Powell (1977) pointed out the FR method could continuously produce small steps and have the global efficiency property. Zoutendijk (1970) proved the FR method are always convergence for general non-convex functions; Under the inexact line search, Al-Baali (1985); Liu et al. (1995) proved when \(\sigma \le \frac{1}{2}\), the FR method has the global convergence property with strong Wolfe line search. But the shortcoming is the FR method has slow convergence speed.

The PRP method is considered to be the best conjugate gradient method in numerical experiment results at present. Once produce a small step size, the next search direction generated by the PRP algorithm will approach the negative gradient direction automatically. It’s good to avoid the shortcoming that the FR method could continuously produce small steps. Under the exact line search, the PRP method has global convergence property for uniformly convex functions, but it is not established for general non-convex functions (Powell 1984). Under the inexact line search, if search direction is descent direction and the objective function is uniformly convex function, Yuan (1995) proved the PRP method has the global convergence property with Wolfe line search.

The characteristics of the HS method are similar to the PRP method, but compared with PRP method, an important feature of the HS method is that no matter whether the line precision is exist, the conjugate relation *d*
_{
k+1}
^{
T
}
*y*
_{
k
} = 0 is always formed.

The CD method is very similar with the FR method. Under the exact line search, *β*
_{
k
}
^{
CD
}
= *β*
_{
k
}
^{
FR
}
; Under the inexact line search, an important feature of the CD algorithm is that as long as the parameter *σ* < 1 in strong Wolfe line search, the CD method would generate a descent search direction in each iteration, but its global convergence property is not good.

Under the exact line search, the LS method is equivalent to the PRP method.

The DY method can always generate a descent direction in each iteration with Wolfe line search, but the disadvantage of this method is the bad numerical experiment results.

In the paper, we learn and analyze the above methods, then proposed two hybrid nonlinear conjugate gradient method, namely, the hybrid method of DY and HS and the hybrid method of FR and PRP. We also have a research on both each methods.

## Hybrid conjugate gradient method of DY and HS

### Preliminaries of the new conjugate gradient method

To the hybrid conjugate gradient method of DY and HS, we promote the Wolfe line search in our paper. The standard Wolfe line search (5) is revised as the following:

*d*

_{ k }

^{T}

*g*

_{ k+1}≥ 0, then

*d*

_{ k }

^{T}

*g*

_{ k+1}< 0, then

*β*

_{ k }of the hybrid conjugate gradient method is formulized as

*a*

_{1},

*a*

_{2}are nonnegative numbers and at least one are not zero, and that they are required to satisfy

A new Wolfe line search is proposed, which makes the hybrid conjugate gradient method keep the global convergence property and the descent property in this paper.

When *β*
_{
k
} = 0, the new hybrid method will degenerate into the steepest descent method.

**Algorithm** (*The new hybrid method with the new Wolfe line search*)

Step 1: Choose an initial point *x*
_{1} ∊ *R*
^{
n
}. Give the precision value *ɛ* > 0. Compute *g*
_{1}, if ‖*g*
_{1}‖ < *ɛ*, then stop, *x*
_{1} is the optimal point; otherwise go to Step 2

Step 2: Set *d*
_{1} = − *g*
_{1}. Let *k* = 1

Step 3: Set *x*
_{
k+1} = *x*
_{
k
} + *α*
_{
k
}
*d*
_{
k
}, *α*
_{
k
} is defined by the new generalized Wolfe line search (4) (8) (9)

Step 4: Compute *g*
_{
k+1}, if ‖*g*
_{
k+1}‖ < *ɛ*, then stop; otherwise go to Step 5

Step 5: Set \(k: = k + 1\); Set \(d_{k} = - g_{k} + \beta_{k}^{1} d_{k - 1}\), *β*
_{
k
}
^{(1)}
is defined by the formula (10), then go to Step 3

### The descent property

**Assumption H**

H1: The objective function *f*(*x*) is a continuously differentiable function. The level set *L*
_{1} = {*x* ∊ *R*
^{
n
}: *f*(*x*) ≤ *f*(*x*
_{1})} at *x*
_{1} is bounded (*x*
_{1} is the initial point); namely, there exists a constant *a* > 0 such that

H2: In any neighborhood *N* of *L*
_{1}, *f* is continuously differentiable, and its gradient *g*(*x*) is Lipschitz continuous with Lipschitz constant *L* > 0; i.e.,

\(\left\|{\text{g}}\left( x \right) - {\text{g}}\left( {\text{y}} \right)\right\| \le \left\|{\text{L}}x - y\right\|\) for all *x*, *y* ∊ *N*

###
**Lemma 1**

*Proof* For *k* = 1, we have *g*
_{1}
^{T}
*d*
_{1} = *g*
_{1}
^{T}
*g*
_{1} = − ‖*g*
_{1}‖^{2} < 0 according to *d*
_{1} = − *g*
_{1}.

For *k* > 1, suppose that *g*
_{
k
}
^{T}
*d*
_{
k
} < 0 holds at the k-th step, then we prove this inequality also holds at the k + 1-th step.

*g*

_{ k }‖

^{2}> |

*g*

_{ k }

^{T}

*g*

_{ k−1}| and (11), we have that

*σ*

_{2}< 1, we have

*g*

_{ k+1}

^{T}

*d*

_{ k+1}< 0.

Therefore, according to the mathematical induction, Lemma 1 is proved, which implies that the new hybrid method has the descent property.

### Global convergence

###
**Lemma 2**

*Assume that (H) hold, Consider the method* (2), (3), *where*
*d*
_{
k
}
* is a descent direction and *
*α*
_{
k
}
*satisfies the new Wolfe line search* (4), (8), (9), *β*
_{
k
}
^{(1)}
*satisfies the formula *(10). *Then we have that*
\(\sum\nolimits_{k \ge 1} {\frac{{(g_{k}^{\rm T} d_{k} )^{2} }}{{\left\| {d_{k} } \right\|^{2} }}} < \infty\)

*Proof*By Lemma 1, we have

*g*

_{ k }

^{T}

*d*

_{ k }< 0, so the sequence {

*f*(

*x*

_{ k })} is bounded and has monotone descending property, which implies that {

*f*(

*x*

_{ k })} is a convergent sequence. From (8), (9), we have

###
**Theorem 3**

*Proof*If lim

_{ k→∞}inf ‖

*g*

_{ k }‖ = 0 is not true, there exists a constant

*c*> 0 such that

*g*

_{ k }on the both sides, we have \(g_{k}^{\rm T} d_{k} = - \left\| {g_{k}^{{}} } \right\|^{2} + \beta_{k}^{(1)} g_{k}^{\text{T}} d_{k - 1}\). Thus (8) and (9) yield

*g*

_{ k }‖

^{2}> |

*g*

_{ k }

^{T}

*g*

_{ k−1}|, we have

*g*

_{ k }

^{T}

*d*

_{ k−1}≥ 0, then

*g*

_{ k }

^{T}

*d*

_{ k−1}< 0, then

*g*

_{ k }

^{T}

*d*

_{ k })

^{2}on the both sides, we have

*T*> 0 such that

## Hybrid conjugate gradient method of FR and PRP

As the hybrid conjugate gradient method of DY and HS, we promote the Wolfe line search as well in our paper. The standard Wolfe line search (5) is revised as the following:

*β*

_{ k }of the hybrid conjugate gradient method of FR and PRP is formulized as

*a*

_{1},

*a*

_{2}are nonnegative parameters and also at least one is not zero, and they are required to satisfy

The new Wolfe line search also can make the hybrid conjugate gradient method of FR and PRP keep the global convergence property and the descent property in this paper.

Both the properties can be proofed by the same process as the hybrid method of DY and HS.

## Numerical experiments

*g*

_{ k }‖ ≤ 10

^{−6}and we set the parameters as

*a*

_{1}= 0.2,

*a*

_{2}= 0.2,

*σ*

_{1}=

*σ*

_{2}= 0.6 and

*μ*= 0.4. Four conjugate gradient algorithms (DY, Hybrid conjugate gradient method of DY and HS, PRP, Hybrid conjugate gradient method of FR and PRP) are compared in numerical performance and the numerical results are given in Table 1.

Number of iterations and number of functional evaluations

p | n | DY | DY and HS | PRP | FR and PRP |
---|---|---|---|---|---|

21 | 10^4 | 72/222 | 70/212 | 58/179 | 50/189 |

22 | 10^4 | 74/532 | 70/520 | 63/429 | 58/409 |

23 | 10^4 | 62/241 | 60/241 | 41/198 | 40/176 |

24 | 10^4 | 89/304 | 89/300 | 82/297 | 82/302 |

25 | 10^4 | 51/153 | 44/143 | 46/127 | 44/107 |

26 | 10^4 | 55/202 | 56/202 | 52/198 | 46/188 |

27 | 10^4 | 45/246 | 46/238 | 52/239 | 42/209 |

28 | 10^4 | 91/425 | 84/415 | 84/337 | 80/312 |

29 | 10^4 | 58/245 | 55/240 | 45/211 | 39/183 |

30 | 10^4 | 53/308 | 48/298 | 43/281 | 43/277 |

31 | 10^4 | 74/268 | 74/258 | 76/281 | 70/265 |

32 | 10^4 | 77/457 | 74/447 | 87/421 | 82/425 |

33 | 10^4 | 48/172 | 38/152 | 37/136 | 33/126 |

34 | 10^4 | 82/396 | 80/383 | 58/385 | 56/354 |

35 | 10^4 | 76/342 | 74/322 | 72/276 | 68/256 |

CPU | – | 355 s | 312 s | 252 s | 231 s |

In Table 1, CPU denotes the CPU time (seconds) for solving all the 15 test problems. A pair numbers means the number of iterations and the number of functional evaluations. It can be seen from Table 1 that two hybrid methods with the new Wolfe line search is effective for solving some large scale problems. In particular, the Hybrid conjugate gradient method of FR and PRP seems to be the best one among the four algorithms because it uses the least number of iterations and functional evaluations when the algorithms reach the same precision.

## Conclusion

In this paper, we have proposed two hybrid conjugate gradient methods, respectively are the hybrid method of DY and HS, the hybrid method of FR and PRP. Moreover, we have proposed the corresponding new Wolfe line search, which make the corresponding hybrid method keep the global convergence property and the descent property.

*λ*

_{ k }∊ [0, 1],

*μ*

_{ k }∊ [0, 1],

*ω*

_{ k }∊ [0, 1−

*μ*

_{ k }].

*μ*

_{ k }= 1,

*ω*

_{ k }= 0, we have

*μ*

_{ k }=

*ω*

_{ k }= 0, then we have

*β*

_{ k }can be rewritten as

The difference between (22), (23) and *β*
_{
k
}
^{(1)}
, *β*
_{
k
}
^{(2)}
defined in the paper is the numerator ‖*g*
_{
k
}‖^{2} and *g*
_{
k
}
^{T}
(*g*
_{
k
} − *g*
_{
k−1}) are convex combination of the formula (22), (23), however, in the formula *β*
_{
k
}
^{(1)}
, *β*
_{
k
}
^{(2)}
, *a*
_{1} + *a*
_{2} ≠ 1, which have weakened the condition.

## Declarations

### Authors’ contributions

XX conceived and designed the study and the theorem. XX and FyK performed the proof of theorems and lemma to complete the paper. XX reviewed and edited the manuscript. Both authors read and approved the final manuscript.

### Acknowledgements

Thank you for all authors and my teachers, the professor Xiaoping Yang and Wei Xiao, for their instructive advice and useful suggestions on our paper. We are deeply grateful of their help in the completion of this paper.

### Competing interests

The authors declare that they have no competing interests.

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- Al-Baali M (1985) Descent property and global convergence of the Fletcher–Reeves method with inexact line search. IMA J Number Anal 5:121–124View ArticleGoogle Scholar
- Birgin EG, Martinez JM (2001) A spectral conjugate gradient method for unconstrained optimization. Appl Math Optim 43:117–128View ArticleGoogle Scholar
- Dai YH, Yuan Y (2000) A nonlinear conjugate gradient method with a strong global convergence property. SIAM J Optim 10:177–182View ArticleGoogle Scholar
- Fletcher R, Reeves C (1964) Function minimization by conjugate gradients. Comput J 7:149–154View ArticleGoogle Scholar
- Hestenes MR, Stiefel EL (1952) Method of conjugate gradient for solving linear systems. J Res Natl Bur Stand 49:409–432View ArticleGoogle Scholar
- Liu GH, Han JY, Yin HX (1995) Global convergence of the Fletcher–Reeves algorithm with an inexact line search. Appl Math J Chin Univ Ser B 10:75–82View ArticleGoogle Scholar
- More JJ, Garbow BS, Hillstrom KE (1981) Testing unconstrained optimization software. ACM Trans Math Softw 7:17–41View ArticleGoogle Scholar
- Polak E, Ribiere G, Polak E et al (1968) Note sur la convergence de methode de directions conjuguees[J]. Rev franaise Informat recherche Opérationnelle 16(16):35–43Google Scholar
- Polyak BT (1969) The conjugate gradient method in extreme problem. USSR Com-put Math Math Phys 9:94–112View ArticleGoogle Scholar
- Powell MJD (1977) Restart procedures of the conjugate gradient method. Math Progr 2:241–254View ArticleGoogle Scholar
- Powell MJD (1984) Nonconvex minimization calculations and the conjugate gradient method[M]//numerical analysis. Springer, Berlin, pp 122–141Google Scholar
- Vincent TL (1983) Practical methods of optimization-volume 1: unconstrained optimization (New York: Wiley & Sons). Math Bio Sci 64:151–152View ArticleGoogle Scholar
- Yuan Y (1993) numerical methods for nonlinear programming. Shanghai Scientific & Technical Publishers, ChinaGoogle Scholar
- Yuan Y, Stoer J (1995) A subspace study on conjugate algorithms. ZAMM Z Angew Math Mech 75(11):69–77View ArticleGoogle Scholar
- Zoutendijk G (1970) Nonlinear programming computational methods[J]. Integer Nonlinear Program 143(1):37–86Google Scholar