discretionary_policy: make incompatible with options_.loglinear

time-shift
Houtan Bastani 2019-09-11 18:05:10 +02:00
parent e043c60903
commit cb02ca5f1c
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ function [info, oo_, options_] = discretionary_policy(M_, options_, oo_, var_lis
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if options_.loglinear
% Ensure it's ok to ignore options_ returned from stoch_simul. #1197
error('discretionary_policy is not compatible with `loglinear` option set to 1')
end
origorder = options_.order;
options_.discretionary_policy = 1;
options_.order = 1;