Skip to content
Snippets Groups Projects
Verified Commit 2ad6b31d authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Option endogenous_terminal_period is only available for stack_solve_algo=0

parent 29396b0c
No related branches found
No related tags found
No related merge requests found
Pipeline #1501 passed
...@@ -39,6 +39,10 @@ if options_.linear_approximation && ~(isequal(options_.stack_solve_algo,0) || is ...@@ -39,6 +39,10 @@ if options_.linear_approximation && ~(isequal(options_.stack_solve_algo,0) || is
error('perfect_foresight_solver: Option linear_approximation is only available with option stack_solve_algo equal to 0 or 7.') error('perfect_foresight_solver: Option linear_approximation is only available with option stack_solve_algo equal to 0 or 7.')
end end
if options_.endogenous_terminal_period && options_.stack_solve_algo ~= 0
error('perfect_foresight_solver: option endogenous_terminal_period is only available with option stack_solve_algo equal to 0')
end
if options_.linear && (isequal(options_.stack_solve_algo, 0) || isequal(options_.stack_solve_algo, 7)) if options_.linear && (isequal(options_.stack_solve_algo, 0) || isequal(options_.stack_solve_algo, 7))
options_.linear_approximation = true; options_.linear_approximation = true;
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment