Do not enter in the last loop if aux_lead_nbr=0 (no auxiliary variables for leads).
parent
b5634d8e37
commit
b5bf0f5dbe
|
@ -31,7 +31,8 @@ for i=1:n
|
|||
k = k+1;
|
||||
end
|
||||
|
||||
for i=1:aux_lead_nbr+1;
|
||||
if aux_lead_nbr
|
||||
for i=1:aux_lead_nbr+1;
|
||||
if byte_code
|
||||
[info, res] = bytecode('static','evaluate',ys1,...
|
||||
[exo_steady_state; ...
|
||||
|
@ -47,4 +48,5 @@ for i=1:aux_lead_nbr+1;
|
|||
ys1(el) = ys1(el)-res(el);
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue