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

Merge branch 'dyn_ramsey' of git.dynare.org:JohannesPfeifer/dynare

Ref. !2029
parents 1f2e2271 9b458865
No related branches found
No related tags found
1 merge request!2029dyn_ramsey_static.m: remove unnecessary piece of code
Pipeline #7036 passed
......@@ -153,11 +153,6 @@ else
needs_set_auxiliary_variables = 0;
end
% value and Jacobian of objective function
ex = zeros(1,M.exo_nbr);
[U,Uy,Uyy] = feval([fname '.objective.static'],x,ex, params);
Uyy = reshape(Uyy,endo_nbr,endo_nbr);
% set multipliers and auxiliary variables that
% depends on multipliers to 0 to compute residuals
if (options_.bytecode)
......@@ -171,7 +166,6 @@ end
% index of multipliers and corresponding equations
% the auxiliary variables before the Lagrange multipliers are treated
% as ordinary endogenous variables
aux_eq = [1:orig_endo_aux_nbr, orig_endo_aux_nbr+orig_eq_nbr+1:size(fJ,1)];
A = fJ(1:orig_endo_aux_nbr,orig_endo_nbr+find(aux_vars_type==6));
y = res(1:orig_endo_aux_nbr);
mult = -A\y;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment