You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bobyqa.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/strike-goldd/STRIKE-GOLDD/MEIGO64/MEIGO/eSS/local_solvers/bobyqa
    
    the code of the file until where you have to start completion: function varargout = bobyqa(fun,x0,lb,ub,varargin)
% MatLab wrapper for the mexbobyqa.F routine, which ports Powell's BOBYQA
% routine to MatLab. mexbobyqa.F needs th have been compiled via mex
% before.

    
function varargout = bobyqa(fun,x0,lb,ub,varargin)
% MatLab wrapper for the mexbobyqa.F routine, which ports Powell's BOBYQA
% routine to MatLab. mexbobyqa.F needs th have been compiled via mex
% before.
%
% Input:
% fun     : objective function to be minimized
% x0      : initial guess for parameters
% lb, ub  : bounds for parameters
% options : struct with options for the algorithm:
%   Rhobeg, Rhoend