From f5c2027e18d58fea0605145d7721557c0a5e6ad1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Thu, 19 Jun 2014 18:02:31 +0200
Subject: [PATCH] Do not impose the equality between the initial period as
 defined by the set_time command and the date of the initial observation
 defined in the datafile or dseries object.

---
 matlab/utilities/dataset/makedataset.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/matlab/utilities/dataset/makedataset.m b/matlab/utilities/dataset/makedataset.m
index 08b91229c0..d6ff48d4d0 100644
--- a/matlab/utilities/dataset/makedataset.m
+++ b/matlab/utilities/dataset/makedataset.m
@@ -123,7 +123,8 @@ end
 
 if ~set_time_default_initial_period && ~dataset_default_initial_period
     % Check if dataset.init and options_.initial_period are identical.
-    if  ~isequal(DynareOptions.initial_period, DynareDataset.init)
+    if DynareOptions.initial_period>DynareDataset.init
+        %if  ~isequal(DynareOptions.initial_period, DynareDataset.init)
         error('The date as defined by the set_time command is not consistent with the initial period in the database!')
     end
 end
-- 
GitLab