function [residual, g1, g2] = hello_static(y, x, params)
%
% Status : Computes static model for Dynare
%
% Warning : this file is generated automatically by Dynare
%           from model file (.mod)

residual = zeros( 2, 1);

%
% Model equations
%

T26 = (-1)/(1+params(2))*y(2)^(-params(3));
T34 = 1-params(4)+params(1)*params(5)*y(1)^((-1)+params(1))*(1+x(1));
T48 = params(1)*params(5)*(1+x(1))*((-1)+params(1))*y(1)^((-1)+params(1)-1);
T62 = (-1)/(1+params(2))*(-params(3))*y(2)^((-params(3))-1);
lhs =y(2)+y(1);
rhs =(1-params(4))*y(1)+y(1)^params(1)*(1+x(1))*params(5);
residual(1)= lhs-rhs;
lhs =0;
rhs =T26*T34+y(2)^(-params(3));
residual(2)= lhs-rhs;
if ~isreal(residual)
  residual = real(residual)+imag(residual).^2;
end
if nargout >= 2,
  g1 = zeros(2, 2);

%
% Jacobian matrix
%

  g1(1, 2)=  g1(1, 2)+1;
  g1(1, 1)=  g1(1, 1)+1;
  g1(1, 1)=  g1(1, 1)+(-(1-params(4)+params(5)*(1+x(1))*params(1)*y(1)^(params(1)-1)));
  g1(2, 2)=  g1(2, 2)+(-((-params(3))*y(2)^((-params(3))-1)));
  g1(2, 1)=  g1(2, 1)+(-(T26*T48));
  g1(2, 2)=  g1(2, 2)+(-(T34*T62));
  if ~isreal(g1)
    g1 = real(g1)+2*imag(g1);
  end
end
