Skip to content
Snippets Groups Projects
Verified Commit c1034e39 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'lsqnonlin' of git.dynare.org:wmutschl/dynare

Ref. !1989
parents 1be1edf4 7f3bc60c
No related branches found
No related tags found
1 merge request!1989lsqnonlin only supported for method_of_moments
Pipeline #6577 passed
...@@ -6102,7 +6102,7 @@ block decomposition of the model (see :opt:`block`). ...@@ -6102,7 +6102,7 @@ block decomposition of the model (see :opt:`block`).
routine (available under MATLAB if the Optimization Toolbox is routine (available under MATLAB if the Optimization Toolbox is
installed; available under Octave if the `optim installed; available under Octave if the `optim
<https://octave.sourceforge.io/optim/>`__ package from <https://octave.sourceforge.io/optim/>`__ package from
Octave-Forge is installed). Octave-Forge is installed). Only supported for ``method_of_moments``.
   
``101`` ``101``
   
......
...@@ -542,6 +542,9 @@ switch minimizer_algorithm ...@@ -542,6 +542,9 @@ switch minimizer_algorithm
opt_par_values = opt_par_values(:); opt_par_values = opt_par_values(:);
case 13 case 13
% Matlab's lsqnonlin (Optimization toolbox needed). % Matlab's lsqnonlin (Optimization toolbox needed).
if ~isfield(options_,'mom')
error('Option mode_compute=13 is available only for method_of_moments estimation.')
end
if isoctave && ~user_has_octave_forge_package('optim') if isoctave && ~user_has_octave_forge_package('optim')
error('Option mode_compute=13 requires the optim package') error('Option mode_compute=13 requires the optim package')
elseif ~isoctave && ~user_has_matlab_license('optimization_toolbox') elseif ~isoctave && ~user_has_matlab_license('optimization_toolbox')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment