Learn R Programming

micEcon (version 0.3-7)

maximisationType: Type of minimisation/maximisation

Description

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

Usage

maximisationType(x)

Arguments

x
object of class 'maximisation' 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)
maximisationType(m)
## Now try BHHH maximisation.  It shouldn't work but does.
m <- maxBHHH(f, start=c(0,0))
summary(m)
maximisationType(m)

Run the code above in your browser using DataLab