# TaoSetConvergenceHistory

Sets the array used to hold the convergence history.

## Synopsis

    #include "tao_solver.h"
    int TaoSetConvergenceHistory(TAO_SOLVER tao, double *a, int *its,int na,TaoTruth reset)

Collective on TAO_SOLVER

## Input Parameters

| tao | - the TAO_SOLVER solver context
| a | - array to hold history
| its | - integer array holds the number of linear iterations (or negative if not converged) for each solve.
| na | - size of a and its
| reset | - TAO_TRUE indicates each new minimization resets the history counter to zero, else it continues storing new values for new minimizations after the old ones

## Notes

If set, this array will contain the gradient norms computed at each step.

This routine is useful, e.g., when running a code for purposes of accurate performance monitoring, when no I/O should be done during the section of code that is being timed.

## Keywords

options, view, monitor, convergence, history

## See Also

TaoGetConvergenceHistory()

Level:intermediate
Location:src/interface/tao.c
TAO Solver Index
Table of Contents