function obj = wrap_lbfgsb_objfun(X,varargin)
  varargin = varargin{1}; f = varargin{1};
  obj = feval(f,X,varargin{2:end});