Failed to solve perfect foresight model

Hi, I am trying to use the perfect foresight block, but the dynare failed to solve it. I do not know why? Any general solutions?

Not really. Can you provide the file?

Sorry sir, I missed the message earlier, thank you for your reply.
foresight.mod (8.1 KB)
The problem is if I set any var in shocks block with a value that not zero, the matlab cannot solve the foresight part. Here is my code.

Then please provide a file that generates the problem.

That’s it.
foresight_zhr.mod (8.8 KB)

Going brute force with

perfect_foresight_solver(robust_lin_solve);

works.

Thank you so much, it helps a lot.