Welfare maximizing error

Dear dynare team, I use the cmase to solve welfare maximizing, but it cannot work. The code can be found in the attach. Please help me. Thanks so much.conditional_welfare_objective.m (1.1 KB)
housing.mod (7.7 KB)

You are missing

options_.qz_criterium = 1+1e-6;

before the call to the solver.

Dear jiang,
I downloaded you code of “housing.mod” and “conditional_welfare_objective.m”. After running housing .mod, I run “conditional_welfare_objective(x_opt_hat,x_opt_name)” to obtain the welfare value. Am I right???

That would give you the welfare at the particular parameter value. If you want optimal policy, you would need to run an optimizer over conditional_welfare_objective