I am trying to implement a complementary slackness condition in Dynare as follows:

phi*pi + y = 0 as long as i>=-ibar/(1+ibar)
or i = -ibar/(1+ibar) = -0.0030

I tried to write the code as follows:
[mcp = ‘i > -0.0030’]
0 = phi*pi + y;
and used it with
simul(periods=40,stack_solve_algo=7,solve_algo=10);

But I get the error “ERROR: calvo_ni.mod: line 77, cols 37-46: syntax error, unexpected SOLVE_ALGO”.

Can someone please tell me how to fix this?

I am attaching the mod file here for details.

The code works if I say: simul(periods=40) instead. But I am not sure that Dynare implements the complementary slackness condition without specifying the solve_algo and stack_solve_algo.