Learn R Programming

maxLik (version 0.5-6)

maximType: Type of Minimization/Maximization

Description

Returns the type of optimisation. It should be returned by the optimisation routine.

Usage

maximType(x)

Arguments

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

Value

  • A text message, describing the involved optimisation algorithm

See Also

maxNR

Examples

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

Run the code above in your browser using DataLab