# Difference between revisions of "Trust-region methods"

Yewenhe0904 (Talk | contribs) (→Conjugated Gradient Steihaug’s Method) |
Yewenhe0904 (Talk | contribs) (→Trust Region Algorithm) |
||

Line 41: | Line 41: | ||

==Trust Region Algorithm== | ==Trust Region Algorithm== | ||

Before implementing the trust-region algorithm, we should first determine several parameters. | Before implementing the trust-region algorithm, we should first determine several parameters. | ||

− | <math>\Delta_M</math> is the upper bound for the size of the trust region. <math>\eta_1</math>, <math>\eta_2</math> and <math>\eta_3</math>,<math>t_1</math>,<math>t_2</math> are the threshold values for evaluating the goodness of the quadratic model thus for determining the trust-region’s size in the next iteration. | + | <math>\Delta_M</math> is the upper bound for the size of the trust region. <math>\eta_1</math>, <math>\eta_2</math> and <math>\eta_3</math>,<math>t_1</math>,<math>t_2</math> are the threshold values for evaluating the goodness of the quadratic model thus for determining the trust-region’s size in the next iteration. A typical set for these values are <math>0=<\eta_1<=\eta_2</math>, <math>\eta_2=0.25</math> and <math>\eta_3=0.75</math>,<math>t_1=0.25</math>,<math>t_2=2.0</math>. |

---- | ---- | ||

'''Pseudo-code''' | '''Pseudo-code''' | ||

− | + | '''Set''' the starting point at <math>x_0</math>, set the iteration number <math>k=1</math> | |

− | ''' | + | '''for''' <math>k=1,2...</math> |

− | Get the improving step by solving trust-region | + | Get the improving step by solving trust-region sub-problem () |

Evaluate <math>\rho_k</math> from equation() | Evaluate <math>\rho_k</math> from equation() | ||

− | ''' | + | '''if''' <math>\rho_k<\eta_2</math> |

<math>\Delta_{k+1}=t_1\Delta_k</math> | <math>\Delta_{k+1}=t_1\Delta_k</math> | ||

− | ''' | + | '''else''' |

− | ''' | + | '''if''' <math>\rho_k>\eta_3</math> and <math>p_k=||\Delta_k||</math> (full step and model is a good approximation) |

<math>\Delta_{k+1}=min(t_2\Delta_k,\Delta_M)</math> | <math>\Delta_{k+1}=min(t_2\Delta_k,\Delta_M)</math> | ||

− | ''' | + | '''else''' |

<math>\Delta_{k+1}=\Delta_k</math> | <math>\Delta_{k+1}=\Delta_k</math> | ||

− | ''' | + | '''if''' <math>\rho_k>\eta_1</math> |

<math>x_{k+1}=x_k+p_k</math> | <math>x_{k+1}=x_k+p_k</math> | ||

− | ''' | + | '''else''' |

<math>x_{k+1}=x_k</math>(the model is not a good approximation and need to solve another trust-region subproblem within a smaller trust-region) | <math>x_{k+1}=x_k</math>(the model is not a good approximation and need to solve another trust-region subproblem within a smaller trust-region) |

## Revision as of 20:11, 27 May 2014

Authors: Wenhe (Wayne) Ye (ChE 345 Spring 2014) Steward: Dajun Yue, Fengqi You Date Presented: Apr. 10, 2014

## Contents |

## Introduction

Trust-region method (TRM) is one of the most important numerical optimization method in solving nonlinear programing (NLP) problems. It works in a way that first define a region around the current best solution, in which a certain model (usually a quadratic model) can to some extent approximate the original objective function. TRM then take a step forward according to the model depicts within the region. Unlike the line search method, TRM usually determines both the step size and direction at the same time. If a notable decrease (our following discussion will based on minimization problems) is gained after the step forward, then the model is believed to be a good representation of the original objective function. If the improvement is too subtle or even a negative improvement is gained, the region is not to be believed as a good representation of the original objective function. The convergence is thus ensured that the size of the “trust region” (usually the radius in Euclidean norm) in each iteration would depend on the improvement previously made.

A pictorial view of trust-region method optimization pathway

## Important Concepts

**Trust-region**

In most cases, the trust-region is defined as a spherical area of radius in which the trust-region subproblem lies.

**Trust-region subproblem**

If we are using the quadratic model to approximate the original objective function, then our optimization problem is essentially reduced to solving a sequence of trust-region subporblems

Where is the trust region radius, is the gradient at current point and is the hessian (or a hessian approximation). It is easy to find the solution to the trust-region subproblem if is positive definite.

**Actual reduction and predicted reduction**

The most critical issue underlying the trust-region method is to update the size of the trust-region at every iteration. If the current iteration makes a satisfactory reduction, we may exploits our model more in the next iteration by setting a larger . If we only achieved a limited improvement after the current iteration, the radius of the trust-region then should not have any increase, or in the worst cases, we may decrease the size of the trust-region by adjusting the radius to a smaller value to check the model’s validity.

Whether to take a more ambitious step or a more conservative one is depend on the ratio between the actual reduction gained by true reduction in the original objective function and the predicted reduction expected in the model function. Empirical threshold values of the ratio will guide us in determining the size of the trust-region.

The picture shows both the stepsize and the improving direction is a consequence of a pre-determined trust-region size

## Trust Region Algorithm

Before implementing the trust-region algorithm, we should first determine several parameters. is the upper bound for the size of the trust region. , and ,, are the threshold values for evaluating the goodness of the quadratic model thus for determining the trust-region’s size in the next iteration. A typical set for these values are , and ,,.

**Pseudo-code**

**Set** the starting point at , set the iteration number

**for**

Get the improving step by solving trust-region sub-problem ()

Evaluate from equation()

**if**

**else**

**if** and (full step and model is a good approximation)

**else**

**if**

**else**

(the model is not a good approximation and need to solve another trust-region subproblem within a smaller trust-region)

**end**
>

## Methods of Solving the Trust-region Subproblem

### Cauchy point calculation

In line search methods, we may find an improving direction from the gradient information, that is, by taking the steepest descent direction with regard to the maximum range we could make. We can solve the trust-region subproblem in an inexpensive way. This method is also denoted as the Cauchy point calculation. We can also express the improving step explicitly by the following closed-form equations

if

otherwise

Illustration of Cauchy Point Calculation

### Limitations and Further Improvements

Though Cauchy point is cheap to implement, like the steepest descent method, it performs poorly in some cases. Varies kinds of improvements are based on including the curvature information from .

#### Dogleg Method

If is positive definite (we can use quasi-Newton hessian approximation to guarantee), then a V-shaped trajectory can be determined by

if

if

where is the steepest descent direction

Note that hessian or approximate hessian will be evaluated

Illustration of dogleg method trajectory

#### Conjugated Gradient Steihaug’s Method

The most widely used method for solving a trust-region sub-problem is by using the idea of conjugated gradient (CG) method for minimizing a quadratic function since CG guarantees convergence within a finite number of iterations for a quadratic programming. Also, CG Steihaug’s method has the merit of Cauchy point and Dogleg method that both in terms of super-linear convergence rate and inexpensiveness to compute.

**Pseudo-code for CG Steihaug method in solving trust region sub-problem**

*Given tolerance ;*

**Set**

**if**

**return** ;

**for**

**if**

Find such that minimizes

and satisfies ;

**return** ;

**Set** ;

**Set** ;

**if**

Find such that satisfies ;

**return** ;

**Set** ;

**if**

**return** ;

**Set** ;

**Set**

**end **

## Example

Here we use the trust-region method to solve an unconstrained problem as an example. The trust-region subproblems are solved by calculate the Cauchy point.

Starting point

Optimization trajectory

**Improving Process**

## Conclusion

**Trust-Region vs. Line Search**

Line search methods:

- Pick improving direction

- Pick stepsize to minimize

- Update the incumbent solution

Trust-region methods:

- Pick the stepsize (the trust-region subproblem is constrained)

- Solving the subproblem using the approximated model

- If the improvement is acceptable, update the incumbent solution and the size of the trust-region

## References

1. J. Nocedal, S. J. Wright, Numerical optimization. Springer, 1999.

2. Wikipedia page for Trust-Region Methods

3. Yuan, Y. "A review of trust region algorithms for optimization" in ICIAM 99: Proceedings of the Fourth International Congress on Industrial & Applied Mathematics, Edinburgh, 2000 Oxford University Press, USA.