#include "petsctao.h" PetscErrorCode TaoGetObjective(Tao tao, PetscErrorCode (**func)(Tao, Vec, PetscReal*,void*),void **ctx)Not collective
tao | - the Tao context |
Output Parameters
func | - the objective function | |
ctx | - the user-defined context for private data for the function evaluation |
func (Tao tao, Vec x, PetscReal *f, void *ctx);
x | - input vector | |
f | - function value | |
ctx | - [optional] user-defined function context |