I am currently trying to calculate the consumption equivalent in order to rank my Ramsey policy against the decentralized benchmark solution.
I took the inspiration from the files proposed in this thread (Consumption Equivalence_Welfare analysis - #8 by mikegouv) about the consumption equivalent.
If I understood correctly, the proposed approach is to find the level of consumption (ξ) that is the zero of the difference between the recursive welfare function of the benchmark and the one of the alternative policy.
I created the two attached mod files (benchmark and alternative policy with ξ (called lambda_utility) in the utility function and hence in the recursive welfare ) and a loop file meant to find the value of ξ that is the zero of the difference of the two welfares. Yet, the values of the welfare functions I get in return (for different values of ξ) seems to be always equal, while I would expect them to change at every iteration, since the welfare equation does not participate to the dynamics of the model,since it is supposed to run always with the same variables, but whith different ξ.
Could you please help me undestrand if there is some mistake in the files of wheter if I am missing something conceptually?
Thank you very much for the help,
have a nice day