We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4567661 commit fbdba0dCopy full SHA for fbdba0d
src/classy_blocks/optimize/iteration.py
@@ -121,6 +121,10 @@ def converged(self) -> bool:
121
report("Iteration limit hit, stopping optimization.")
122
return True
123
124
+ if self.iterations[-1].final_quality < TOL:
125
+ print("Nothing left to optimize.")
126
+ return True
127
+
128
if len(self.iterations) < 2:
129
# Can't decide without data
130
return False
@@ -129,8 +133,4 @@ def converged(self) -> bool:
133
print("Tolerance reached, stopping optimization.")
134
131
135
132
- if self.iterations[-1].final_quality < TOL:
- print("Nothing left to optimize.")
- return True
-
136
0 commit comments