Skip to content
Snippets Groups Projects
Verified Commit 68ea7d7c authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

MCP: remove duplicate initialization of bounds passed to LMMCP and PATH

The bounds are already initialized in solve_stacked_problem.m (and they do not
make sense in solve_stacked_linear_problem.m, since the latter is for linear
problems only).
parent a3f44cc6
Branches
No related tags found
No related merge requests found
Pipeline #10493 passed
......@@ -48,27 +48,6 @@ function [options_, y0, yT, z, i_cols, i_cols_J1, i_cols_T, i_cols_j, i_cols_1,
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
periods = options_.periods;
if (options_.solve_algo == 10)
if ~isfield(options_.lmmcp,'lb')
[lb, ub] = feval(sprintf('%s.dynamic_complementarity_conditions', M_.fname), M_.params);
if options_.linear_approximation
lb = lb - steadystate_y;
ub = ub - steadystate_y;
end
options_.lmmcp.lb = repmat(lb,periods,1);
options_.lmmcp.ub = repmat(ub,periods,1);
end
elseif (options_.solve_algo == 11)
if ~isfield(options_.mcppath,'lb')
[lb, ub] = feval(sprintf('%s.dynamic_complementarity_conditions', M_.fname), M_.params);
if options_.linear_approximation
lb = lb - steadystate_y;
ub = ub - steadystate_y;
end
options_.mcppath.lb = repmat(lb,periods,1);
options_.mcppath.ub = repmat(ub,periods,1);
end
end
if M_.maximum_lag > 0
y0 = endogenousvariables(:, M_.maximum_lag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment