# TaoSetLagrangianGradientVector

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

## Synopsis

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

## Input Parameter

| solver | - the TAO_SOLVER solver context
| gg | - the gradient of the Lagrangian function

Note: This routine does not create a vector. The vector specified here will be returned whenever TaoGetGradient() is called.

## Keywords

Gradient

## See Also

TaoGetGradient()

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