#include "tao_solver.h"
int TaoLineSearchApply(TAO_SOLVER tao, TaoVec *xx, TaoVec *gg, TaoVec *dxdx, TaoVec *ww,
double *f, double *f_full, double *step, TaoInt*flag)
Collective on TAO_SOLVER
| tao | - the TAO_SOLVER solver context | |
| xx | - current solution | |
| gg | - current gradient | |
| dxdx | - step direction | |
| ww | - work vector | |
| f | - function value | |
| step | - initial stepsize |
| xx | - new solution | |
| gg | - new gradient | |
| f | - new function value | |
| step | - multiple of DX added to the previous solution | |
| flag | - indicator of success or failure (flag=0 is a success, flag=7 means DX is not a descent direction) |
To ensure descent in a projected line search, the input parameter gdx should be the inner product of the gradient and the first linear manifold being searched.
Level:developer
Location:src/interface/line.c
TAO Solver Index
Table of Contents