TaoSolve

Solves an optimization problem min F(x) s.t. l <= x <= u

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoSolve(Tao tao)
Collective on Tao

Input Parameters

tao - the Tao context

Notes

The user must set up the Tao with calls to TaoSetInitialVector(), TaoSetObjectiveRoutine(), TaoSetGradientRoutine(), and (if using 2nd order method) TaoSetHessianRoutine().

You should call TaoGetConvergedReason() or run with -tao_converged_reason to determine if the optimization algorithm actually succeeded or why it failed.

Level: beginner

See Also

TaoCreate(), TaoSetObjectiveRoutine(), TaoSetGradientRoutine(), TaoSetHessianRoutine(), TaoGetConvergedReason()

Location:taosolver.c