TaoAppComputeObjectiveAndGradient

Compute the gradient of the objective function using the routine set by TaoApplicationSetGradientRoutine().

Synopsis

#include "tao.h"  
int TaoAppComputeObjectiveAndGradient(TAO_APPLICATION taoapp, Vec X, double *f, Vec G)
Collective on TAO_APPLICATION

Input Parameters

taopp - the TAO_APPLICATION context
X - the point where the objective should be evaluated

Output Parameter

f - function value
G - the gradient vector.

Keywords

TAO_APPLICATION, objective

See Also

TaoAppComputeGradient(), TaoAppSetObjectiveAndGradientRoutine()

Level:developer
Location:src/petsctao/application/petscapp/tao_app_fg.c
TAO Solver Index
Table of Contents