TaoSetupApplicationSolver
This routine creates the vectors, matrices, linear solvers, and other data structures used in the during the optimization process. The application provides the solver with an objective function, constraints, derivative information, and application data structures. These structures include a vector of variables, and Hessian matrix.
Synopsis
#include "tao.h"
int TaoSetupApplicationSolver(TAO_APPLICATION myapp, TAO_SOLVER tao )
Collective on TAO_SOLVER
Input Parameters
| myapp | - user application context
|
| tao | - the TAO_SOLVER solver context
|
Note
This routine should be called before TaoGetKSP(), but after
TaoAppSetInitialSolutionVec() and after TaoAppSetHessianMat() (when Newton solvers are used).
Note
This method is called during TaoSetOptions() and TaoSolveApplication()
Keywords
application, context
Level:intermediate
Location:src/petsctao/application/taoapp/taoapp_util.c
TAO Solver Index
Table of Contents
Examples
src/complementarity/examples/tutorials/minsurf1.c.html