Hi everyone! I have a new problem with my code, the error it gives me is: “There are 8 eigenvalue(s) larger than 1 in modulus, for 5 forward-looking variable(s), The rank condition ISN’T verified!”. In this case I added the last five equations, in correct code, following the attached file, but I don’t understand the reason for these errors. Can any of you help me?

Dear professor,
I tried to do some tests, but it didn’t help. It must have been an oversight to leave it as a comment. I tried to change it, but it doesn’t work the same, do you have any suggestions I can apply?
Thank you!

sure, without the last five equations added and with the “predetermined variables k” command, the code works. Then I added these equations to follow the paper which should be all five connected but no longer works.

it is the log-linearized equation number 17 of the frist paper, it represents the evolution of foreign bonds. Do you think it is wrong? thank a lot for the help!

dear professor, you are right, they are two redundant equations, in fact by modifying the phif parameter I obtain the same equation. I added this equation for S, the exchange rate, otherwise the number of variables added and the number of equations didn’t add up. Can you suggest another way to specify the exchange rate?
I thank you, above all for dedicating your time to me.