TaoCreate

Creates a TAO_SOLVER context.

Synopsis

#include "tao_solver.h"  
int TaoCreate(MPI_Comm comm, TaoMethod method, TAO_SOLVER *newsolver)
Collective on MPI_Comm

Input Parameters

comm - MPI communicator
method - A TAO method.

Output Parameter

newsolver -the new TAO_SOLVER context

Options Database Keys

-tao_method -select which method TAO should use

Available methods include

tao_nls - Newton's method with line search for unconstrained minimization
tao_ntr - Newton's method with trust region for unconstrained minimization
tao_lmvm - Limited memory variable metric method for unconstrained minimization
tao_cg - Nonlinear conjugate gradient method for unconstrained minimization
tao_nm - Nelder-Mead algorithm for derivate-free unconstrained minimization
tao_tron - Newton Trust Region method for bound constrained minimization
tao_gpcg - Newton Trust Region method for quadratic bound constrained minimization
tao_blmvm - Limited memory variable metric method for bound constrained minimization
tao_kt - Formulate a bound constrained problem as a complementarity problem
tao_bqpip - Interior point method for quadratic bound constrained minimization
tao_ssils - Infeasible semismooth method with a linesearch for complementarity problems
tao_ssfls - Feasible semismooth method with a linesearch for complementarity problems

Note

If the second argument specifies a TaoMethod, quotation marks should surround the method.

Note

The TaoMethod can be TAO_NULL (C/C++) or TAO_NULL_CHARACTER (Fortran), in which case the method will be specified by the runtime option -tao_method

If a particular optimization method is specified at runtime by the option '-tao_method', this choice will be used instead of any default that may have been specified as the input parameter "method" to this routine.

Keywords

Create, solver, method, context

See Also

TaoSolve(), TaoSetMethod(), TaoSetApplication(), TaoDestroy()

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