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;
|
||||
end
|
||||
end
|
||||
|
||||
check = ~info;
|
||||
if info~=1
|
||||
check = 1;
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue