Skip to content

Commit f672f86

Browse files
committed
heteroagentoptions.multiGEweights
1 parent 1c38231 commit f672f86

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

HeterogeneousAgent/FHorz/HeteroAgentStationaryEqm_Case1_FHorz.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@
124124
heteroagentoptions.outputGEform=0;
125125
end
126126

127+
temp=size(heteroagentoptions.multiGEweights);
128+
if temp(2)==1 % probably column vector
129+
heteroagentoptions.multiGEweights=heteroagentoptions.multiGEweights'; % make row vector
130+
end
131+
127132
%% Set up exogenous shock grids now (so they can then just be reused every time)
128133
% Check if using ExogShockFn or EiidShockFn, and if so, do these use a
129134
% parameter that is being determined in general eqm

HeterogeneousAgent/FHorz/PType/HeteroAgentStationaryEqm_Case1_FHorz_PType.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@
145145
heteroagentoptions.outputGEform=0;
146146
end
147147

148+
temp=size(heteroagentoptions.multiGEweights);
149+
if temp(2)==1 % probably column vector
150+
heteroagentoptions.multiGEweights=heteroagentoptions.multiGEweights'; % make row vector
151+
end
152+
148153
AggVarNames=fieldnames(FnsToEvaluate);
149154
nGEprices=length(GEPriceParamNames);
150155

HeterogeneousAgent/HeteroAgentStationaryEqm_Case1.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@
139139
heteroagentoptions.outputGEform=0;
140140
end
141141

142+
temp=size(heteroagentoptions.multiGEweights);
143+
if temp(2)==1 % probably column vector
144+
heteroagentoptions.multiGEweights=heteroagentoptions.multiGEweights'; % make row vector
145+
end
146+
142147

143148
%%
144149
% Check if gthere is an initial guess for V0

HeterogeneousAgent/PType/HeteroAgentStationaryEqm_Case1_PType.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
heteroagentoptions.outputGEform=0;
126126
end
127127

128+
temp=size(heteroagentoptions.multiGEweights);
129+
if temp(2)==1 % probably column vector
130+
heteroagentoptions.multiGEweights=heteroagentoptions.multiGEweights'; % make row vector
131+
end
128132

129133
AggVarNames=fieldnames(FnsToEvaluate);
130134
nGEprices=length(GEPriceParamNames);

0 commit comments

Comments
 (0)