add support for PATH for steady state
parent
c159dff19c
commit
c49332df43
|
@ -1,11 +1,17 @@
|
|||
function [res,fjac,domer] = mcp_func(x,jacflag)
|
||||
global mcp_data
|
||||
|
||||
domer = 0;
|
||||
if jacflag
|
||||
[res,fjac] = mcp_data.func(x,mcp_data.args{:});
|
||||
fjac = sparse(fjac);
|
||||
else
|
||||
res = mcp_data.func(x,mcp_data.args{:});
|
||||
fjac = [];
|
||||
end
|
||||
disp(norm(res))
|
||||
if isreal(res)
|
||||
domer = 0;
|
||||
else
|
||||
domer = 1;
|
||||
end
|
||||
|
||||
disp(x'*res)
|
||||
|
|
|
@ -35,11 +35,12 @@ function [steady_state,params,info] = steady_(M_,options_,oo_)
|
|||
% You should have received a copy of the GNU General Public License
|
||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if options_.solve_algo < 0 || options_.solve_algo > 8
|
||||
if options_.solve_algo < 0 || options_.solve_algo > 12
|
||||
error('STEADY: solve_algo must be between 0 and 8')
|
||||
end
|
||||
|
||||
if ~options_.bytecode && ~options_.block && options_.solve_algo > 4
|
||||
if ~options_.bytecode && ~options_.block && options_.solve_algo > 4 && ...
|
||||
options_.solve_algo < 10
|
||||
error('STEADY: you can''t use solve_algo > 4 without block nor bytecode options')
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue