The initial values for the steady state of the following variables are complex?

dear all:
there are something wrong with my mod,could anyone help me?many thanks!!

dynare oceansinky.mod
Using 64-bit preprocessor
Starting Dynare (version 4.6.4).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 39 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 1).
Processing outputs …
done
Preprocessing completed.

DYNARE_SOLVE (solve_algo=2|4): number of blocks = 24
DYNARE_SOLVE (solve_algo=2|4): solving block 23, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 22, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 21, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 20, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 19, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 18, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 17, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 16, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 15, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 14, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 13, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 12, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 11, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 10, of size 11
DYNARE_SOLVE (solve_algo=2|4): number of blocks = 24
DYNARE_SOLVE (solve_algo=2|4): solving block 23, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 22, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 21, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 20, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 19, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 18, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 17, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 16, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 15, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 14, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 13, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 12, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 11, of size 1
DYNARE_SOLVE (solve_algo=2|4): solving block 10, of size 11
MODEL_DIAGNOSTICS: The steady state cannot be computed

resid: The initial values for the steady state of the following variables are complex:
l
w
wstar
f1
f2

Residuals of the static equations:

Equation number 1 : 0 : lamda
Equation number 2 : 0 : 2
Equation number 3 : -0.002969 : 3
Equation number 4 : 0 : 4
Equation number 5 : 0 : q
Equation number 6 : 0.010517 : k
Equation number 7 : 0 : wstar
Equation number 8 : -4.8592 : f1
Equation number 9 : -0.0061297 : f2
Equation number 10 : -0.41628 : w
Equation number 11 : 0 : pistar
Equation number 12 : -0.12357 : g1
Equation number 13 : -0.14829 : g2
Equation number 14 : 0 : pi
Equation number 15 : 0 : vp
Equation number 16 : 0 : mc0
Equation number 17 : 0.0046912 : r
Equation number 18 : 0.015929 : wl
Equation number 19 : 0 : u
Equation number 20 : 0.0016846 : em
Equation number 21 : 0.0073987 : emcost
Equation number 22 : 0 : ce
Equation number 23 : 0.0453 : y1
Equation number 24 : 0.0044802 : y2
Equation number 25 : -0.033842 : Xat
Equation number 26 : 0 : Xup
Equation number 27 : 0 : Xlo
Equation number 28 : 0 : F
Equation number 29 : 0 : Tat
Equation number 30 : 0 : Tlo
Equation number 31 : 0 : en
Equation number 32 : -0.04978 : y
Equation number 33 : 0.44607 : 33
Equation number 34 : 0 : 34
Equation number 35 : 0 : 35
Equation number 36 : 0 : 36
Equation number 37 : 0 : 37
Equation number 38 : 0 : 38
Equation number 39 : 0 : 39

oceansinky.mod (8.1 KB)
myfunction.m (120 Bytes)

Your steady is wrong you should check each equation featuring positive residuals in initval again. Your problem seems to come from wage stickiness. ( You can check on Eric Sims web page, he has some sample code for wage stickiness with which you can compare your code)

ok,many thanks,dear friend!!

thanks,my friend! i modified my codes but new mistakes arise,could you please help me again?Residuals of the static equations:

Equation number 1 : 0 : lamda
Equation number 2 : 0 : 2
Equation number 3 : 0 : 3
Equation number 4 : 0 : q
Equation number 5 : 0 : k
Equation number 6 : 0 : y1
Equation number 7 : 0 : y2
Equation number 8 : 0 : vp
Equation number 9 : 0 : pi
Equation number 10 : 0 : pistar
Equation number 11 : 0 : g1
Equation number 12 : 0 : g2
Equation number 13 : 0 : mc0
Equation number 14 : 0 : mc
Equation number 15 : 0 : 15
Equation number 16 : 0 : w
Equation number 17 : 0 : u
Equation number 18 : 0 : em
Equation number 19 : 0 : emcost
Equation number 20 : 0 : ce
Equation number 21 : -0.026498 : Xat
Equation number 22 : -0.026497 : Xup
Equation number 23 : -0.026497 : Xlo
Equation number 24 : -56.5282 : F
Equation number 25 : 0 : Tat
Equation number 26 : 0 : Tlo
Equation number 27 : 0 : en
Equation number 28 : 0 : y
Equation number 29 : 0 : 29
Equation number 30 : 0 : 30
Equation number 31 : 0 : 31
Equation number 32 : 0 : 32
Equation number 33 : 0 : 33
Equation number 34 : 0 : 34
Equation number 35 : 0 : 35

错误使用 print_info (第 32 行)
Impossible to find the steady state (the sum of square residuals of the static equations is
3195.4417). Either the model doesn’t have a steady state, there are an infinity of steady
states, or the guess values are too far from the solution.
oceansinkl.mod (7.5 KB)
myfunction.m (120 Bytes)

Please do not cross-post. See my reply at The matrix is close to singular value, or scaling errors