Adds explicit message if optimal policy was used with steady

time-shift
Johannes Pfeifer 2014-02-10 18:21:56 +01:00
parent 5835242982
commit dbb19b8e20
1 changed files with 3 additions and 0 deletions

View File

@ -44,4 +44,7 @@ if ~isempty(plist)
message = [message, 'If these parameters are not initialized in a steadystate file, Dynare may not be able to solve the model...'];
message_id = 'Dynare:ParameterCalibration:NaNValues';
warning(message_id,message);
if strmatch('optimal_policy_discount_factor',plist,'exact')
warning('Either you have not correctly initialized planner_discount or you are calling a command like steady or stoch_simul that is not allowed in the context of ramsey_policy')
end
end