PETSc version 3.17.4
Fix/Edit manual page

# TaoSetSolution

Sets the vector holding the initial guess for the solve

### Synopsis

    #include "petsctao.h"
    PetscErrorCode TaoSetSolution(Tao tao, Vec x0)

Logically collective on Tao

### Input Parameters

| tao | - the Tao context
| x0 | - the initial guess

### See Also

TaoCreate(), TaoSolve(), TaoGetSolution()

### Level

beginner

### Location

src/tao/interface/taosolver_fg.c

### Examples

src/ts/tutorials/ex20opt_p.c.html
src/ts/tutorials/ex20opt_ic.c.html
src/tao/unconstrained/tutorials/eptorsion1.c.html
src/tao/unconstrained/tutorials/eptorsion2.c.html
src/tao/unconstrained/tutorials/minsurf2.c.html
src/tao/unconstrained/tutorials/rosenbrock1.c.html
src/tao/unconstrained/tutorials/rosenbrock2.c.html
src/tao/unconstrained/tutorials/rosenbrock3.c.html
src/tao/unconstrained/tutorials/spectraladjointassimilation.c.html
src/tao/unconstrained/tutorials/eptorsion2f.F.html
src/tao/unconstrained/tutorials/rosenbrock1f.F90.html
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages