A wrapper of the optim function to be used for hindcast optimization

run_hindcast_optim(
  PAR.START = c(1.46, 1.5),
  FUN = model_hindcast,
  ...,
  LOWER = c(0.1, 0.1),
  UPPER = c(5, 10),
  HESSIAN = F,
  PGTOL = 1e-04,
  MAXIT = 1000
)

Arguments

PAR.START

initial parameter in optim

FUN

fn function in optim

...

Pass through varibles to be used in FUN

LOWER

Lower bound of parameter

UPPER

Uppler bound of parameter

HESSIAN

If T, producing Hessian metrix

PGTOL

Tolerance in optim for the "L-BFGS-B" method

MAXIT

Number of max iteration in optim

Value

Solutions from the optimization