Skip to content
Snippets Groups Projects
Verified Commit 8e3c24df authored by Marco Ratto's avatar Marco Ratto Committed by Sébastien Villemot
Browse files

check if initial states are empty, and set them to zero.

(cherry picked from commit eb6f17e7)
parent 3bc5ba58
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ function [data_mat]=mkdata(n_periods,dr_A,dr_B,endo_names,exo_names,wish_list,sh
% given decision rule
neqs = size(endo_names,1);
if nargin<9
if nargin<9 || isempty(var_init)
var_init = zeros(neqs,1);
end
......
......@@ -48,7 +48,7 @@ T = DM.decrulea;
CONST = zeros(n_vars,1);
R = DM.decruleb;
if nargin<7
if nargin<7 || isempty(init)
init=zeros(n_vars,1);
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment