Home > code > util > misc > prepare_nl_opt_call.m

prepare_nl_opt_call

PURPOSE ^

SYNOPSIS ^

function nl_opt = prepare_nl_opt_call(obj, x0, lb, ub, options)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function nl_opt = prepare_nl_opt_call(obj, x0, lb, ub, options)
0002   if exist('OCTAVE_VERSION') % running Octave
0003      % extract MATLAB style options for fmincon
0004     max_iter = optimget(options, 'MaxIter');
0005     tol = optimget(options, 'TolFun');
0006     nl_opt = @() sqp(x0,obj,[],[],lb,ub,max_iter,tol);
0007   else % running matlab
0008     nl_opt = @() fmincon(obj,x0,[],[],[],[],lb,ub,[],options);
0009   end
0010 end

Generated on Mon 29-Apr-2013 19:29:13 by m2html © 2005