@ ------------------------------------------- CoRRAM_2.g ----------------------

   Alfred Maußner
   28 December 2010

   Second piece of code to solve a DSGE model via linear or quadratic
   approximation of the model at the stationary equilibrium of the
   underlying deterministic model.

----------------------------------------------------------------------------- @


/* Solve for the policy functions  */
output file=^outfile reset; @ open the output file and write time and date information to it @
Mydate;
?"";

if not _equations; @ compute the linear policy rules if matrices are input and proceed  @
    {Lxx,Lxz,Llx,Llz,Lux,Luz}=SolveLA2(Cu,Cxl,Cz,Dxl,Fxl,Du,Fu,Dz,Fz,_Rho,_nx);
    Lyx=Lux|Llx;
    Lyz=Luz|Llz;
endif;
