Test an optimization function with the same synopsis as bfgs.m
Package:
optim