Skip to content
Snippets Groups Projects
Commit dbb19b8e authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Adds explicit message if optimal policy was used with steady

parent 58352429
No related branches found
No related tags found
No related merge requests found
......@@ -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
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment