diff --git a/matlab/stochastic_solvers.m b/matlab/stochastic_solvers.m index 326c25f80..7332654a8 100644 --- a/matlab/stochastic_solvers.m +++ b/matlab/stochastic_solvers.m @@ -53,7 +53,7 @@ if options_.linear end local_order = options_.order; -if M_.hessian_eq_zero +if M_.hessian_eq_zero && local_order~=1 local_order = 1; warning('stochastic_solvers: using order = 1 because Hessian is equal to zero'); end