diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m index 13bfed9a8c31786731a72fe9290a85a0eb978331..b8d6d928f08262227f7a0b9d36f2c2d768296d7c 100644 --- a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m +++ b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m @@ -47,7 +47,7 @@ if options_.linear && (isequal(options_.stack_solve_algo, 0) || isequal(options_ options_.linear_approximation = true; end -if options_.slowc != 1 && (options_.block || options_.bytecode) +if options_.slowc ~= 1 && (options_.block || options_.bytecode) % The code is buggy and leads to wrong results, so forbid this combination error('Changing the value of the slowc option is not supported with block and/or bytecode option') end