1function [steady_state,params,info] = steady_(M_,options_,oo_)
2% function [steady_state,params,info] = steady_(M_,options_,oo_)
3% Computes the steady state
4%
5% INPUTS
6%   M                         struct           model structure
7%   options                   struct           options
8%   oo                        struct           output results
9%
10% OUTPUTS
11%   steady_state              vector           steady state
12%   params                    vector           parameters (may have been
13%                                              modified by user in
14%                                              explicit computation of
15%                                              the steady state)
16%   info                      2x1 vector       error codes
17%
18% SPECIAL REQUIREMENTS
19%   none
20
21% Copyright (C) 2001-2020 Dynare Team
22%
23% This file is part of Dynare.
24%
25% Dynare is free software: you can redistribute it and/or modify
26% it under the terms of the GNU General Public License as published by
27% the Free Software Foundation, either version 3 of the License, or
28% (at your option) any later version.
29%
30% Dynare is distributed in the hope that it will be useful,
31% but WITHOUT ANY WARRANTY; without even the implied warranty of
32% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33% GNU General Public License for more details.
34%
35% You should have received a copy of the GNU General Public License
36% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
37
38if options_.solve_algo < 0 || options_.solve_algo > 12
39    error('STEADY: solve_algo must be between 0 and 12')
40end
41
42if ~options_.bytecode && ~options_.block && options_.solve_algo > 4 && ...
43        options_.solve_algo < 9
44    error('STEADY: you can''t use solve_algo = {5,6,7,8} without block nor bytecode options')
45end
46
47if ~options_.bytecode && options_.block && options_.solve_algo == 5
48    error('STEADY: you can''t use solve_algo = 5 without bytecode option')
49end
50
51if isoctave && options_.solve_algo == 11
52    error(['SIMUL: you can''t use solve_algo = %u under Octave'],options_.solve_algo)
53end
54
55[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
56