error('perfect_foresight_with_expectations_error_setup: at least one periods statement is specified using a date but neither first_simulation_period nor last_simulation_period option was passed')
error('perfect_foresight_with_expectations_error_setup: at least one periods statement or learnt_in option is specified using a date but neither first_simulation_period nor last_simulation_period option was passed')
end
end
%% Initialize information set at period 1 using “bare” shocks and endval blocks (or initval if there is no endval)
%% Initialize information set at period 1 using “bare” shocks and endval blocks (or initval if there is no endval)
...
@@ -111,11 +114,17 @@ else
...
@@ -111,11 +114,17 @@ else
end
end
%% Construct information sets for subsequent informational periods
%% Construct information sets for subsequent informational periods
forp=2:periods
% Since the learnt_in=… option with a dates object is never translated to a
% “bare” shocks or endval block by the preprocessor (contrary to
% learnt_in=1), the loop starts with p=1 to also handle dates objects
% in learnt_in option corresponding to the first period.