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

maximType(x)

Arguments

x

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

Value

A text message, describing the involved optimisation algorithm

Author

Ott Toomet

See also

Examples

## 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)
#> [1] 2 1
maximType(m)
#> [1] "Newton-Raphson maximisation"
## Now use BFGS maximisation.
m <- maxBFGS(f, start=c(0,0))
maximType(m)
#> [1] "BFGS maximization"