Introduction - If you have any usage issues, please Google them yourself
Function: with BFGS algorithm solving unconstrained problem: min f (x)
input: x0 is the initial point, fun, gfun respectively are the objective function and its gradient
varargin is input variable parameter variable, simply call the BFGS can ignore it
but if other program loop to invoke the program will take place