tao-2.1-p0 2012-07-24

TaoSetSeparableObjectiveRoutine

Sets the function evaluation routine for least-square applications

Synopsis

#include "taosolver.h" 
PetscErrorCode TaoSetSeparableObjectiveRoutine(TaoSolver tao, Vec sepobj, PetscErrorCode (*func)(TaoSolver, Vec, Vec, void*),void *ctx)
Logically collective on TaoSolver

Input Parameter

tao - the TaoSolver context
func - the objective function evaluation routine
ctx - [optional] user-defined context for private data for the function evaluation routine (may be PETSC_NULL)

Calling sequence of func

     func (TaoSolver tao, Vec x, Vec f, void *ctx);

x - input vector
f - function value vector
ctx - [optional] user-defined function context

See Also

TaoSetObjectiveRoutine(), TaoSetJacobianRoutine()

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

Examples

src/leastsquares/examples/tutorials/chwirut1.c.html
src/leastsquares/examples/tutorials/chwirut2.c.html
src/leastsquares/examples/tutorials/chwirut1f.F.html
src/leastsquares/examples/tutorials/chwirut2f.F.html