Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
969fe3c2
Commit
969fe3c2
authored
Oct 09, 2013
by
Stéphane Adjemian
Browse files
Renamed options_.solve_maxit as options_.steady.maxit.
parent
bde961fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/dyn_risky_steadystate_solver.m
View file @
969fe3c2
...
...
@@ -111,7 +111,7 @@ function [dr,info] = dyn_risky_steadystate_solver(ys0,M, ...
n
=
length
(
x0
);
[
x
,
info
]
=
solve1
(
@risky
_residuals_ds
,
x0
,
1
:
n
,
1
:
n
,
0
,
1
,
options
.
gstep
,
...
options
.
solve_tolf
,
options
.
solve_tolx
,
...
options
.
s
olve_
maxit
,
options
.
debug
,
pm
,
M
,
dr
,
...
options
.
s
teady
.
maxit
,
options
.
debug
,
pm
,
M
,
dr
,
...
options
,
oo
);
if
info
error
(
'
DS
approach
can
''
t
be
computed
'
)
...
...
@@ -126,7 +126,7 @@ function [dr,info] = dyn_risky_steadystate_solver(ys0,M, ...
[
ys
,
info
]
=
solve1
(
func
,
ys0
,
1
:
endo_nbr
,
1
:
endo_nbr
,
0
,
1
,
options
.
gstep
,
...
options
.
solve_tolf
,
options
.
solve_tolx
,
...
options
.
s
olve_
maxit
,
options
.
debug
,
pm
,
M
,
dr
,
options
,
oo
);
options
.
s
teady
.
maxit
,
options
.
debug
,
pm
,
M
,
dr
,
options
,
oo
);
%
[
ys
,
info
]
=
csolve
(
func
,
ys0
,[],
1e-10
,
100
,
M
,
dr
,
options
,
oo
);
if
info
error
(
'
RSS
approach
can
''
t
be
computed
'
)
...
...
matlab/dynare_solve.m
View file @
969fe3c2
...
...
@@ -122,7 +122,7 @@ if options_.solve_algo == 0
elseif
options_
.
solve_algo
==
1
[
x
,
info
]
=
solve1
(
func
,
x
,
1
:
nn
,
1
:
nn
,
jacobian_flag
,
1
,
options_
.
gstep
,
...
tolf
,
options_
.
solve_tolx
,
...
options_
.
s
olve_
maxit
,
options_
.
debug
,
varargin
{:});
options_
.
s
teady
.
maxit
,
options_
.
debug
,
varargin
{:});
elseif
options_
.
solve_algo
==
2
||
options_
.
solve_algo
==
4
if
~
jacobian_flag
fjac
=
zeros
(
nn
,
nn
)
;
...
...
@@ -150,7 +150,7 @@ elseif options_.solve_algo == 2 || options_.solve_algo == 4
[
x
,
info
]
=
solve1
(
func
,
x
,
j1
(
r
(
i
):
r
(
i
+
1
)
-
1
),
j2
(
r
(
i
):
r
(
i
+
1
)
-
1
),
jacobian_flag
,
...
bad_cond_flag
,
options_
.
gstep
,
...
tolf
,
options_
.
solve_tolx
,
...
options_
.
s
olve_
maxit
,
options_
.
debug
,
varargin
{:});
options_
.
s
teady
.
maxit
,
options_
.
debug
,
varargin
{:});
if
info
return
end
...
...
@@ -159,7 +159,7 @@ elseif options_.solve_algo == 2 || options_.solve_algo == 4
if
max
(
abs
(
fvec
))
>
tolf
[
x
,
info
]
=
solve1
(
func
,
x
,
1
:
nn
,
1
:
nn
,
jacobian_flag
,
bad_cond_flag
,
...
options_
.
gstep
,
tolf
,
options_
.
solve_tolx
,
...
options_
.
s
olve_
maxit
,
options_
.
debug
,
varargin
{:});
options_
.
s
teady
.
maxit
,
options_
.
debug
,
varargin
{:});
end
elseif
options_
.
solve_algo
==
3
if
jacobian_flag
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment