diff --git a/matlab/dyn_ramsey_static.m b/matlab/dyn_ramsey_static.m index 32616923df802b3fc1746e9760cc3f38708cb218..f944afbf15ac114b43c88adc228d97884d78da61 100644 --- a/matlab/dyn_ramsey_static.m +++ b/matlab/dyn_ramsey_static.m @@ -131,9 +131,14 @@ Uyy = reshape(Uyy,endo_nbr,endo_nbr); % set multipliers and auxiliary variables that % depends on multipliers to 0 to compute residuals -[res,fJ] = feval([fname '_static'],xx,[oo.exo_simul oo.exo_det_simul], ... +if (options_.bytecode) + [chck, res, junk] = bytecode('static',xx,[oo.exo_simul oo.exo_det_simul], ... + M.params, 'evaluate'); + fJ = junk.g1; +else + [res,fJ] = feval([fname '_static'],xx,[oo.exo_simul oo.exo_det_simul], ... M.params); - +end % index of multipliers and corresponding equations % the auxiliary variables before the Lagrange multipliers are treated % as ordinary endogenous variables