About Discretionary policy

Dear Dynare users,
I’m trying to use ramsey_model and discretionary_policy commands under perfect foresight setup. In the case of ramsey_model it works fine. In the case of discretionary policy i get the following error:

ERROR: A .mod file cannot contain both one of {perfect_foresight_solver,simul} and one of {stoch_simul, estimation, osr, ramsey_policy, discretionary_policy}. This is not possible: one cannot mix perfect foresight context with stochastic context in the same file.

So, I want to know is there any command like rasmey_model allowing to do discretion under perfect foresight setup or it’s impossible to do discretion in deterministic case?

Thanks in advance.

No, the discretionary policy solver only works for stochastic models.