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-bf33cf982152time-shift
parent
9720af3354
commit
91fb6ee044
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue