Use check (the second output of the steady state file) to pass a

penalty defined in the steady state file.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2547 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
stepan 2009-04-02 13:24:41 +00:00
parent 9720af3354
commit 91fb6ee044
1 changed files with 7 additions and 3 deletions

View File

@ -89,9 +89,13 @@ else
end
% testing for problem
if check1
info(1) = 20;
resid = feval(fh,ys,oo_.exo_steady_state, M_.params);
info(2) = resid'*resid; % penalty...
info(1)= 20;
if options_.steadystate_flag
resid = check1 ;
else
resid = feval(fh,ys,oo_.exo_steady_state, M_.params);
end
info(2) = resid'*resid ; % penalty...
return
end