Dynare++ optimal policy

Dear All,
I am trying to solve an optimal policy problem with three constraints. I have a few of issues I would appreciate help with.
1) One of my constraints includes variables ('zav', 'zc', and 'rho' in the attached mod.file) which have mathematical definitions. Am I right to includes the definitions as 3 additional constraints for the problem?
2) The paper my policy problem is based on states that capital at two different time periods K_t and K_t+1 are choice variables. How do I incorporate this into the problem? I have only come across choice variables occurring at one time period.
3) Lastly, when I run the model, I get the error 'A wrong lag/lead of a variable in VarOrdering::do_pbspbfbf'. Could you please help me with what this means?
Please find the mod and m files attached.
Many thanks in advance.
I am trying to solve an optimal policy problem with three constraints. I have a few of issues I would appreciate help with.
1) One of my constraints includes variables ('zav', 'zc', and 'rho' in the attached mod.file) which have mathematical definitions. Am I right to includes the definitions as 3 additional constraints for the problem?
2) The paper my policy problem is based on states that capital at two different time periods K_t and K_t+1 are choice variables. How do I incorporate this into the problem? I have only come across choice variables occurring at one time period.
3) Lastly, when I run the model, I get the error 'A wrong lag/lead of a variable in VarOrdering::do_pbspbfbf'. Could you please help me with what this means?
Please find the mod and m files attached.
Many thanks in advance.