% computes the steady state of dog.mod (growthless deterministic growth model). 
% stephane [DOT] adjemian [AT] ens [DOT] fr

function [ys,check] = mymodel_steadystate(ys,exe)
global M_

%% DO NOT CHANGE THIS PART.
%%
%% Here we load the values of the deep parameters in a loop.
%%
NumberOfParameters = M_.param_nbr;                            % Number of deep parameters.
for i = 1:NumberOfParameters                                  % Loop...
  paramname = deblank(M_.param_names(i,:));                   %    Get the name of parameter i. 
  eval([ paramname ' = M_.params(' int2str(i) ');']);         %    Get the value of parameter i.
end                                                           % End of the loop.  
check = 0;
%%
%% END OF THE FIRST MODEL INDEPENDENT BLOCK.


%% THIS BLOCK IS MODEL SPECIFIC.
%%
%% Here the user has to define the steady state.
%%
y=((1-kappa)^(-gama)*(epsilon-1)/epsilon*(1-alfa)/chi)^((1-alfa)/(nu+(1-alfa)*gama+alfa));
g=y*kappa;
c=y*(1-kappa);
r=(1-betta)/betta;
pi=0;
ii=r;
n=y^(1/(1-alfa));
m=c^(gama/phi)*(betta*r)^(-1/phi);
mc=(epsilon-1)/epsilon;
Z=y/(1-betta*theta);
X=mc*y/(1-betta*theta);
yf=y;
w=mc*(1-alfa)*y^(-alfa/(1-alfa));
P=1;
g0=g;
a=1;
delta=1;
mcj=mc;
c_ssd=0;
g_ssd=0;
pi_ssd=0;

%%
%% END OF THE MODEL SPECIFIC BLOCK.


%% DO NOT CHANGE THIS PART.
%%
%% Here we define the steady state values of the endogenous variables of
%% the model.
%%
NumberOfEndogenousVariables = M_.endo_nbr;                    % Number of endogenous variables.
ys = zeros(NumberOfEndogenousVariables,1);                    % Initialization of ys (steady state).
for i = 1:NumberOfEndogenousVariables                         % Loop...
  varname = deblank(M_.endo_names(i,:));                      %    Get the name of endogenous variable i.                     
  eval(['ys(' int2str(i) ') = ' varname ';']);                %    Get the steady state value of this variable.
end                                                           % End of the loop.
%%
%% END OF THE SECOND MODEL INDEPENDENT BLOCK.