Hi Dynare community,

I am trying to solve a perfect foresight path using lmmcp imposing two inequality constraints. In essence, my model looks like this (minimal example)

model;

a=0.8*a(-1);

[mcp=‘0.25<y<0.75’]

y=a(+1);

end;

There are just two variables, a and y. I set a to 1 in the first period. y is supposed to follow a, except when it falls outside the corridor [0.25,0.75], in which case it should be set to the bounds.

The problem works as long as I impose only one of the two bounds, either the upper or the lower bound. However, lmmcp gives an error when I impose both bounds simultaneously. Do you know if there is a way Dynare can handle this problem?

Thanks a lot for your help!