#include "petsctaolinesearch.h" PetscErrorCode TaoLineSearchSetType(TaoLineSearch ls, TaoLineSearchType type)Collective on TaoLineSearch
| ls | - the TaoLineSearch context | |
| type | - the TaoLineSearchType selection |
| more | - thuente - line search with a cubic model enforcing the strong Wolfe/curvature condition | |
| armijo | - simple backtracking line search enforcing only the sufficient decrease condition | |
| unit | - do not perform a line search and always accept unit step length |
| -tao_ls_type <more | - thuente, armijo, unit> - select which method TAO should use at runtime |