# TaoSetMethod

Sets the method for the unconstrained minimization solver.

## Synopsis

    #include "tao_solver.h"
    int TaoSetMethod(TAO_SOLVER solver,TaoMethod type)

Collective on TAO_SOLVER

## Input Parameters

| solver | - the TAO_SOLVER solver context
| type | - a known method

## Options Database Key

-tao_method <type> -Sets the method; use -help for a list of available methods (for instance, "-tao_method tao_lmvm" or "-tao_method tao_tron")

## 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_fr | - Fletcher-Reeves Nonlinear conjugate gradient method for unconstrained minimization
| tao_cg_pr | - Polak-Ribiere Nonlinear conjugate gradient method for unconstrained minimization
| tao_cg_prp | - Polak-Ribiere-Plus Nonlinear conjugate gradient method for 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

## Keywords

method, Create, solve

## See Also

TaoCreate(), TaoGetMethod()

Level:intermediate
Location:src/interface/newsolver.c
TAO Solver Index
Table of Contents