# TaoSetOptions

Sets various TAO parameters from user options

## Synopsis

    #include "tao.h"
    int TaoSetOptions(TAO_APPLICATION taoapp, TAO_SOLVER tao)

Collective on TAO_APPLICATION

## Input Parameters

| taoapp | - the TAO Application (optional)
| tao | - the TAO optimization solver (optional)

## Note

This routine should be called after TaoSetupApplicationSolver()

## Note

This routine must be called if there are multiple processors involved and the MPI Communicator is different than MPI_COMM_WORLD.

## Keywords

options

## See Also

TaoSolveApplication()

Level:beginner
Location:src/petsctao/application/taoapp/taoapp_util.c
TAO Solver Index
Table of Contents

### Examples

src/bound/examples/tutorials/plate2.c.html
src/bound/examples/tutorials/jbearing2.c.html
src/bound/examples/tutorials/plate2f.F.html
src/complementarity/examples/tutorials/minsurf1.c.html
src/complementarity/examples/tutorials/blackscholes.c.html
src/unconstrained/examples/tutorials/eptorsion1.c.html
src/unconstrained/examples/tutorials/eptorsion2.c.html
src/unconstrained/examples/tutorials/minsurf2.c.html
src/unconstrained/examples/tutorials/rosenbrock1.c.html
src/unconstrained/examples/tutorials/eptorsion2f.F.html
src/unconstrained/examples/tutorials/rosenbrock1f.F.html