Merge pull request #1466 from JohannesPfeifer/discret_policy
Adjust error message if number of instruments does not match number o…time-shift
commit
c45f9b776d
|
@ -98,7 +98,9 @@ instr_nbr=endo_nbr-eq_nbr;
|
||||||
if instr_nbr==0
|
if instr_nbr==0
|
||||||
error('discretionary_policy:: There are no available instruments, because the model has as many equations as variables.')
|
error('discretionary_policy:: There are no available instruments, because the model has as many equations as variables.')
|
||||||
end
|
end
|
||||||
if size(Instruments,1)~= instr_nbr
|
if size(Instruments,1)< instr_nbr
|
||||||
|
error('discretionary_policy:: There are fewer declared instruments than omitted equations.')
|
||||||
|
elseif size(Instruments,1)> instr_nbr
|
||||||
error('discretionary_policy:: There are more declared instruments than omitted equations.')
|
error('discretionary_policy:: There are more declared instruments than omitted equations.')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue