'Impossible to find the steady state' and 'Either the model doesn't have a steady state, there are an infinity of steady states's

And if I use model_diagnostics. I also get errors like:
model_diagnostics(M_,options_,oo_)
DYNARE_SOLVE (solve_algo=2|4): number of blocks = 8
DYNARE_SOLVE (solve_algo=2|4): solving block 7, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 6, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 5, of size 17
DYNARE_SOLVE (solve_algo=2|4): number of blocks = 8
DYNARE_SOLVE (solve_algo=2|4): solving block 7, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 6, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 5, of size 17
MODEL_DIAGNOSTICS: The steady state cannot be computed

Hi professor thanks for your reply. I deleted them. The mod is still not running. I know that the number of model equations should be identical to the number of variables. But I hope to include a resource constraint then I have 24 models but 23 variables. I named this as Y and I cannot connect this to the production function. Really appreciate your help.
logc.mod (4.5 KB)

That does in no way solve the issue. You get inconsistent results and now you claim one of the two is correct, although that seems not to be the case.

Hi jpfeifer. The four equations of l1ss and l2ss are for labor demand and labor supply respectively. Can I only include labor supply steady state equations?

No, you need to compute the proper market clearing wage. That is the reason why labor demand and supply are not consistent with each other.

I am saying the steady state computation for the market clearing wage is wrong as you get two different results when you use the demand and supply equations.

Thank you very much for your reply. I’m trying to resolve wage steady state properly and I aim to use CRRA utility for consumption. To solve the steady state equations, I can solve most equations analytically. But I have two non linear equations involved when solving the wage steady state. Is there example code or non linear solver that I can learn from to solve steady state in MATLAB and Dynare with non linear equations involved? Thanks!

See my reply at

Hi thank you so much for your reply.

I managed to solve steady state analytically eventually, but the mod file still not running. It shows very high residuals this time. I attach the mod file here. Is there anything I did fundamentally wrong? I really appreciate your help! Thanks!
M2CRRA.mod (4.5 KB)

Why is

Lss = 1.1153e-10

in your computed steady state.

Hi thanks for your reply! How did you find the value of Lss? The mod is not running and I can’t see any values.

And if I run model_diagnostics(M_,options_,oo_) giving back:
DYNARE_SOLVE (solve_algo=2|4): number of blocks = 8
DYNARE_SOLVE (solve_algo=2|4): solving block 7, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 6, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 5, of size 17

What they mean and where should I get a start to correct these?

Model diagnostics also gives back:
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 2.325029e-24.

MODEL_DIAGNOSTICS: The steady state cannot be computed

Many thanks for your help!

Does this mean my solution for wss or yss is wrong or the parameter value is wrong. Thanks for your advice!

Use F9 to execute the parameter statements. See Debugging parameter initializations and steady_state_model-blocks - YouTube

Thanks I see how it works.
I don’t make L to be 1. Lss = 1.1153e-10 does it mean anything?

It means that your steady state for labor is virtually 0.

Think it does mean that the model setting has something to improve? Can I send you the model draft, may be the model needs some changing?

It suggests that there is something wrong in your parameter settings. But I cannot do individual debugging.

Hi thanks for your reply. I adjusted the parameter setting and I changed another way to solve wage steady state. But steady state still cannot be computed. I can see that, from your previous reply, that values of labour demand and supply steady state are still not equal. Is that the problem that I have?
M2non.mod (4.7 KB)

Yes, that is most probably the main issue. In equilibrium both labor supply and demand need to be equal.