Learn R Programming

maxLik (version 1.5-2.1)

maximType: Type of Minimization/Maximization

Description

Returns the type of optimization as supplied by the optimisation routine.

Usage

maximType(x)

Value

A text message, describing the involved optimisation algorithm

Arguments

x

object of class 'maxim' or another object which involves numerical optimisation.

Author

Ott Toomet

See Also

maxNR

Examples

Run this code
## maximize two-dimensional exponential hat.  True maximum c(2,1):
f <- function(a) exp(-(a[1] - 2)^2 - (a[2] - 1)^2)
m <- maxNR(f, start=c(0,0))
coef(m)
maximType(m)
## Now use BFGS maximisation.
m <- maxBFGS(f, start=c(0,0))
maximType(m)

Run the code above in your browser using DataLab