# TaoGetGradient

Sets a pointer to the address of a TaoVector that contains the gradient of the Lagrangian function.

## Synopsis

    #include "tao_solver.h"
    int TaoGetGradient(TAO_SOLVER solver,TaoVec** gg)

## Input Parameter

solver -the TAO_SOLVER solver context

## Output Parameter

gg -the gradient of the Lagrangian function

Note: This routine does not create a vector. It sets a pointer to the location of an existing vector.

## Keywords

Gradient

## See Also

TaoGetSolution(), TaoGetSolutionStatus(), TaoGetHessian(), TaoSetApplication()

Level:advanced
Location:src/interface/tao_fghj.c
TAO Solver Index
Table of Contents