fix bug introduced in 1c892bb3e9

time-shift
Houtan Bastani 2016-09-27 15:28:43 +02:00
parent 1c892bb3e9
commit 744b52d362
1 changed files with 1 additions and 5 deletions

View File

@ -141,11 +141,7 @@ switch minimizer_algorithm
error('Optimization algorithm 3 requires the optim package')
end
elseif ~isoctave && ~user_has_matlab_license('optimization_toolbox')
try
pkg load optimization_toolbox
catch
error('Optimization algorithm 3 requires the Optimization Toolbox')
end
error('Optimization algorithm 3 requires the Optimization Toolbox')
end
% Set default optimization options for fminunc.
optim_options = optimset('display','iter','MaxFunEvals',100000,'TolFun',1e-8,'TolX',1e-6);