Skip to content
Snippets Groups Projects
Commit a89f21b5 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

solvopt.m: prevent returning with inf

parent 371fdb22
Branches
Tags
1 merge request!1809Prepare solve_opt for analytic gradients
......@@ -678,6 +678,9 @@ while 1
end
if ksm || kc>=mxtc
exitflag=-3;
% don't return with NaN or Inf despite error code
x=x1;
f=f1;
if trx
x=x';
end
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment