# TaoInitialize

Initializes the TAO component and many of the packages associated with it.

## Synopsis

    #include "tao_solver.h"
    int TaoInitialize(int *argc,char ***args,char file[],const char help[])

Collective on MPI_COMM_WORLD

## Input Parameters

| argc | - [optional] count of number of command line arguments
| args | - [optional] the command line arguments
| file | - [optional] PETSc database file, defaults to ~username/.petscrc (use TAO_NULL for default)
| help | - [optional] Help message to print, use TAO_NULL for no message

## Note

TaoInitialize() should always be called near the beginning of your program. However, this command should come after PetscInitialize()

## Note

The input arguments are required if the options database is to be used.

## Keywords

TAO_SOLVER, initialize

## See Also

TaoInitializeFortran(), TaoFinalize(), PetscInitialize()

Level:beginner
Location:src/interface/tao_init.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