Home > matlab > steady_.m

steady_

PURPOSE ^

function [steady_state,params,info] = steady_(M_,options_,oo_)

SYNOPSIS ^

function [steady_state,params,info] = steady_(M_,options_,oo_)

DESCRIPTION ^

 function [steady_state,params,info] = steady_(M_,options_,oo_)
 Computes the steady state 
  
 INPUTS
   M                         struct           model structure
   options                   struct           options
   oo                        struct           output results
  
 OUTPUTS
   steady_state              vector           steady state
   params                    vector           parameters (may have been
                                              modified by user in
                                              explicit computation of
                                              the steady state)
   info                      2x1 vector       error codes

 SPECIAL REQUIREMENTS
   none

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [steady_state,params,info] = steady_(M_,options_,oo_)
0002 % function [steady_state,params,info] = steady_(M_,options_,oo_)
0003 % Computes the steady state
0004 %
0005 % INPUTS
0006 %   M                         struct           model structure
0007 %   options                   struct           options
0008 %   oo                        struct           output results
0009 %
0010 % OUTPUTS
0011 %   steady_state              vector           steady state
0012 %   params                    vector           parameters (may have been
0013 %                                              modified by user in
0014 %                                              explicit computation of
0015 %                                              the steady state)
0016 %   info                      2x1 vector       error codes
0017 %
0018 % SPECIAL REQUIREMENTS
0019 %   none
0020 
0021 % Copyright (C) 2001-2011 Dynare Team
0022 %
0023 % This file is part of Dynare.
0024 %
0025 % Dynare is free software: you can redistribute it and/or modify
0026 % it under the terms of the GNU General Public License as published by
0027 % the Free Software Foundation, either version 3 of the License, or
0028 % (at your option) any later version.
0029 %
0030 % Dynare is distributed in the hope that it will be useful,
0031 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0032 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0033 % GNU General Public License for more details.
0034 %
0035 % You should have received a copy of the GNU General Public License
0036 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
0037 
0038 if options_.solve_algo < 0 || options_.solve_algo > 8
0039     error('STEADY: solve_algo must be between 0 and 8')
0040 end
0041 
0042 if ~options_.bytecode && ~options_.block && options_.solve_algo > 4
0043     error('STEADY: you can''t use solve_algo > 4 without block nor bytecode options')
0044 end
0045 
0046 if ~options_.bytecode && options_.block && options_.solve_algo == 5
0047     error('STEADY: you can''t use solve_algo = 5 without bytecode option')
0048 end
0049 
0050 if exist('OCTAVE_VERSION') && options_.solve_algo == 7
0051     error('SIMUL: you can''t use solve_algo = 7 under Octave')
0052 end
0053 
0054 [steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);

Generated on Tue 22-May-2012 02:40:23 by m2html © 2005