Fix exit criterion in trust_region.m
Otherwise, error code -3 (Trust region became uselessly small) was accepted as a solved steady statetime-shift
parent
d7d8af34a0
commit
c01352ea3b
|
@ -179,8 +179,9 @@ while (niter < maxiter && ~info)
|
||||||
info = 1;
|
info = 1;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if info~=1
|
||||||
check = ~info;
|
check = 1;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue