Help Investment adjustment cost equation codes in Dynare

Hi, all.
I’m dealing with a capital accumulation equation including capital adjustment cost.

I already checked the previous question and answer, so I found that there is something related between capital adjustment and the elasticity of the investmenr parameter, but still don’t get it.

This might be a dumb question, what’s the relationship between capital adjustment cost and the elasticity of the investment parameter, and how to enter the codes of these in Dynare?

in the model, the technoology of capital producers follows :
image
elasticity of investment function equals to 5
image
eta= -phi’‘(i/k)/phi’(i/k)*i/k

Thanks in advance!

Have a look at DSGE_mod/Jermann1998_Algebra.pdf at master · JohannesPfeifer/DSGE_mod · GitHub which shows the computation in Section 5 for a different type of function. You first need the investment FOC to get q.