I want to solve a model with complementarity slackness conditions using perfect foresight solver and lmmcp methods. The condition is that x >= 0 and when x = 0, the Lagrangian multiplier lambda > 0. I used the following code for the slackness condition:
lambda = 0;
Although Dynare told me that it `Failed to solve perfect foresight model’, the transition path it simulated seems fine. Did Dynare actually solve the model or not?