# TaoComputeMeritGradient

Computes the function that has been set with TaoSetMeritFunction().

## Synopsis

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

Collective on TAO_SOLVER

## Input Parameters

| solver | - the TAO_SOLVER solver context
| xx | - input vector

## Output Parameter

gg -merit gradient vector

TaoComputeMeritFunctionGradient() is typically used within minimization implementations, so most users would not generally call this routine themselves.

## Keywords

TAO_SOLVER, compute, minimization, function

## See Also

TaoSetMeritFunction()

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