- Methodology
- Open Access
- Published:

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

*SpringerPlus*
**volume 5**, Article number: 881 (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.

## 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).

Consider an unconstrained minimization problem.

where *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.

where *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:

where *β*
_{
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

Given \(\mu \in \left( {0,\frac{1}{2}} \right)\), \(\sigma \in (\mu ,1)\) and *α*
_{
k
} > 0 which satisfies

Generally, the smaller the value of *σ*, 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):

We note (4) and (6) as the strong Wolfe line search.

### Selection of search direction

The search direction *d*
_{
k
} is generally required to satisfy

which guarantees that *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

where *c* > 0 is a constant.

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

Different parameters *β*
_{
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*
^{T}_{
k+1}
*y*
_{
k
} = 0 is always formed.

The CD method is very similar with the FR method. Under the exact line search, *β*
^{CD}_{
k
}
= *β*
^{FR}_{
k
}
; 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:

If *d*
^{T}_{
k
}
*g*
_{
k+1} ≥ 0, then

where \(-{\sigma}_{2}d_{k}^{\text{T}} g_{k} \,{<} - \sigma_{2} d_{k}^{\text{T}} \left( {g_{k} - g_{k+1} } \right)\)

If *d*
^{T}_{
k
}
*g*
_{
k+1} < 0, then

where \(- {\sigma}_{ 2} d_{k}^{\text{T}} \left( {g_{k} - g_{k + 1} } \right) < - \sigma_{ 2} d_{k}^{\text{T}} g_{k}.\)

The parameters *β*
_{
k
} of the hybrid conjugate gradient method is formulized as

i.e.

where *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}\), *β*
^{(1)}_{
k
}
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**

*Suppose that the objective function satisfies Assumption H. Consider the method* (2), (3)*, where α*
_{
k
}
*satisfies the new Wolfe line search* (4), (8), (9) *and β*
^{(1)}_{
k
}
*satisfies the formula* (10)*, then the following holds: *

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

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

From ‖*g*
_{
k
}‖^{2} > |*g*
^{T}_{
k
}
*g*
_{
k−1}| and (11), we have that

Then, by \(0 < a_{1} + 2a_{2} < \frac{1}{{1 + \sigma_{2} }} < 1\) and 0 ≤ *σ*
_{2} < 1, we have *g*
^{T}_{
k+1}
*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), *β*
^{(1)}_{
k
}
*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*
^{T}_{
k
}
*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

From the Assumption H2, we have

By summing this formula, we have

Then

The proof is completed.

###
**Theorem 3**

*Suppose that Assumption H1 and H2 are satisfied. Consider the method* (2), (3), *where α*
_{
k
}
*satisfies the new Wolfe line search* (4), (8), (9)*, β*
^{(1)}_{
k
}
*satisfies the formula* (10). *Then the following holds: *

*Proof* If lim _{
k→∞} inf ‖*g*
_{
k
}‖ = 0 is not true, there exists a constant *c* > 0 such that

Therefore, from \(d_{k} = { - }g_{k} + \beta_{k}^{\left( 1 \right)} d_{{k{ - }1}}\), multiplying with *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

Then

On the other hand, from ‖*g*
_{
k
}‖^{2} > |*g*
^{T}_{
k
}
*g*
_{
k−1}|, we have

If *g*
^{T}_{
k
}
*d*
_{
k−1} ≥ 0, then

If *g*
^{T}_{
k
}
*d*
_{
k−1} < 0, then

Therefore, by (16), we have

And, by squaring both sides of \(d_{k} + g_{k} = \beta_{k}^{\left( 1 \right)} d_{k - 1}\), we have

Then by multiplying with (*g*
^{T}_{
k
}
*d*
_{
k
})^{2} on the both sides, we have

However, because of

and thus from (17), we have

By using the recurrence method on the left-hand side of the above inequality, there exists a constant *T* > 0 such that

By summing the above inequality, we have \(\sum\nolimits_{k \ge 1} {\frac{{(g_{k}^{\rm T} d_{k} )^{2} }}{{\left\| {d_{k} } \right\|^{2} }}} \ge \sum\nolimits_{k \ge 1} {1/T = + \infty }\), which contradicts Lemma 2. So the proof is complete.

## 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:

If \(- \left\| {g_{k} } \right\|^{2} \le d_{k}^{T} g_{k}^{T}\) then

If \(- \left\| {g_{k} } \right\|^{2} > d_{k}^{T} g_{k}^{T}\) then

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

where *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

In this section, we report some preliminary numerical experiments. We chose 15 test problems (problems 21–35) with the dimension n = 10,000 and initial points from the literature (More et al. 1981) to implement the two hybrid methods with the new line search with a portable computer. The stop criterion is ‖*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.

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.

Dai and Yuan have proposed a family of the three-term conjugate gradient method:

where *λ*
_{
k
} ∊ [0, 1], *μ*
_{
k
} ∊ [0, 1], *ω*
_{
k
} ∊ [0, 1−*μ*
_{
k
}].

Let *μ*
_{
k
} = 1, *ω*
_{
k
} = 0, we have

Let *μ*
_{
k
} = *ω*
_{
k
} = 0, then we have

In our paper, *β*
_{
k
} can be rewritten as

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

## 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–124

Birgin EG, Martinez JM (2001) A spectral conjugate gradient method for unconstrained optimization. Appl Math Optim 43:117–128

Dai YH, Yuan Y (2000) A nonlinear conjugate gradient method with a strong global convergence property. SIAM J Optim 10:177–182

Fletcher R, Reeves C (1964) Function minimization by conjugate gradients. Comput J 7:149–154

Hestenes MR, Stiefel EL (1952) Method of conjugate gradient for solving linear systems. J Res Natl Bur Stand 49:409–432

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–82

More JJ, Garbow BS, Hillstrom KE (1981) Testing unconstrained optimization software. ACM Trans Math Softw 7:17–41

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–43

Polyak BT (1969) The conjugate gradient method in extreme problem. USSR Com-put Math Math Phys 9:94–112

Powell MJD (1977) Restart procedures of the conjugate gradient method. Math Progr 2:241–254

Powell MJD (1984) Nonconvex minimization calculations and the conjugate gradient method[M]//numerical analysis. Springer, Berlin, pp 122–141

Vincent TL (1983) Practical methods of optimization-volume 1: unconstrained optimization (New York: Wiley & Sons). Math Bio Sci 64:151–152

Yuan Y (1993) numerical methods for nonlinear programming. Shanghai Scientific & Technical Publishers, China

Yuan Y, Stoer J (1995) A subspace study on conjugate algorithms. ZAMM Z Angew Math Mech 75(11):69–77

Zoutendijk G (1970) Nonlinear programming computational methods[J]. Integer Nonlinear Program 143(1):37–86

## 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.

## Author information

### Affiliations

### Corresponding author

## Rights and permissions

**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.

## About this article

### Cite this article

Xu, X., Kong, F. New hybrid conjugate gradient methods with the generalized Wolfe line search.
*SpringerPlus* **5, **881 (2016). https://doi.org/10.1186/s40064-016-2522-9

Received:

Accepted:

Published:

### Keywords

- Conjugate gradient
- Unconstrained optimization
- Line search
- Descent property
- Global convergence