Starting/equilibrium values for K and L in steady state file

Dear forum.

I’m currently writing a master thesis based on a modified version of the model in Gertler and Karadis article from 2011 “A model of unconventional monetary policy”.

I want to solve some steady state values in an external Matlab steady state file. To do so, I need to pin down total production Y, which depends on the endogenous variables K and L. However, I don’t know how to provide Matlab with the starting/equilibrium values of K and L, so I currently get the errors seen below. Is there any way around this? I have attached my .mod file and _steadystate.m file:

gdyn_steadystate.m (2.0 KB)
gdyn.mod (10.7 KB)

Undefined function or variable ‘K’.

Error in gdyn_steadystate (line 26)
Y=log(exp(K)^alfa*exp(L)^(1-alfa));

Error in evaluate_steady_state_file (line 52)
[ys,check] = h_steadystate(ys_init, exo_ss);

Error in evaluate_steady_state (line 212)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, options,steadystate_check_flag);

Error in resol (line 104)
[dr.ys,M.params,info] = evaluate_steady_state(oo.steady_state,M,options,oo,~options.steadystate.nocheck);

Error in check (line 73)
[dr,info,M,options,oo] = resol(1,M,options,oo);

Error in gdyn (line 438)
oo_.dr.eigval = check(M_,options_,oo_);

Error in dynare (line 235)
evalin(‘base’,fname) ;

A steady state file requires you to be able to compute the steady state analytically or to be able to solve for it numerically. You need to sit down with pencil and paper to do this.