Block decomposition: fixed bug introduced in 2ec5e407

parent fae433fb
......@@ -42,4 +42,4 @@ function r = lnsrch1_wrapper_one_boundary(ya, y_index, fname, y, x, params, stea
%reshape the input arguments of the dynamic function
y(it_, :) = ya;
[r, y, T, g1, g2, g3]=feval(fname, y, x, params, steady_state, T, it_, false);
[r, y, T, g1]=feval(fname, y, x, params, steady_state, T, it_, false);
......@@ -47,5 +47,5 @@ function ra = lnsrch1_wrapper_two_boundaries(ya, fname, y, y_index, x, ...
%reshape the input arguments of the dynamic function
y(y_kmin+1:y_kmin+periods, y_index) = reshape(ya',length(y_index),periods)';
[r, y, T, g1, g2, g3, b]=feval(fname, y, x, params, steady_state, T, periods, false, y_kmin, y_size, Periods);
[r, y, T, g1, b]=feval(fname, y, x, params, steady_state, T, periods, false, y_kmin, y_size, Periods);
ra = reshape(r(:, y_kmin+1:periods+y_kmin),periods*y_size, 1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment