stoch_simul.m: provide informative error message if no varexo have been defined

time-shift
Johannes Pfeifer 2019-09-10 09:23:49 +02:00
parent 107be12543
commit 031632edd3
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ if isequal(options_.order,0)
error('stoch_simul:: The order of the Taylor approximation cannot be 0!')
end
if M_.exo_nbr==0
error('stoch_simul:: does not support having no varexo in the model. As a workaround you could define a dummy exogenous variable.')
end
test_for_deep_parameters_calibration(M_);
dr = oo_.dr;