I keep on getting NaNs for the residuals of two static equations when running my .mod file.

Could someone please provide assistance checking my model? The Euler equation and the budget constraint seem to be problematic.BC_with_adj_costs.mod (687 Bytes)

You put the residual check before the initial values. Thus, you are checking residuals with 0 initial values instead of the `initval`

-block.If you put it after, the residuals are 0, implying, you should use a `steady_state_model`

-block.

1 Like