ComputeObjectiveAndGradient

Compute the objective function and its gradient.

Synopsis

#include "tao_solver.h"  
// virtual int TaoABCFloatApplication::ComputeObjectiveAndGradient(float*x,int n,float*f,float *g)

Input Parameters

x -an array with the point at which the function and gradient should be evalutated.
g -an array that will contain the gradient vector. + n - the length of the arrays, which equals the number of variables

Output Parameters

f -function value
g -gradient vector

Level:beginner
Location:src/appobject/interface/taofloatapp.c
TAO Solver Index
Table of Contents