diff --git a/matlab/lmmcp/get_complementarity_conditions.m b/matlab/lmmcp/get_complementarity_conditions.m index 50f5f178e..95ef094f9 100644 --- a/matlab/lmmcp/get_complementarity_conditions.m +++ b/matlab/lmmcp/get_complementarity_conditions.m @@ -1,4 +1,4 @@ -function [lb,ub,eq_index] = get_complementarity_condition(M) +function [lb,ub,eq_index] = get_complementarity_conditions(M) % Copyright (C) 2014 Dynare Team % diff --git a/matlab/perfect_foresight_solver.m b/matlab/perfect_foresight_solver.m index 9c80f0e91..a32ffc03e 100644 --- a/matlab/perfect_foresight_solver.m +++ b/matlab/perfect_foresight_solver.m @@ -183,7 +183,14 @@ else elseif M_.maximum_endo_lag == 0 % Purely forward model sim1_purely_forward; else % General case - if options_.stack_solve_algo == 0 + if options_.mcp + [oo_.endo_simul,info] = dyn_lmmcp(M_,options_,oo_); + if info == 1 + oo_.deterministic_simulation.status = 0; + else + oo_.deterministic_simulation.status = 1; + end; + elseif options_.stack_solve_algo == 0 sim1; else % stack_solve_algo = 6 sim1_lbj;