Commit e8ffa519 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

add diagnostic print statements

parent 1908cf45
Pipeline #19430 failed with stage
in 3 minutes and 51 seconds
...@@ -164,7 +164,7 @@ class LineSearchStrongWolfe(LineSearch): ...@@ -164,7 +164,7 @@ class LineSearchStrongWolfe(LineSearch):
phi_alpha0 = phi_alpha1 phi_alpha0 = phi_alpha1
phiprime_alpha0 = phiprime_alpha1 phiprime_alpha0 = phiprime_alpha1
else: else:
# max_iterations was reached print("max iterations reached")
return le_alpha1.energy return le_alpha1.energy
return result_energy return result_energy
...@@ -261,8 +261,7 @@ class LineSearchStrongWolfe(LineSearch): ...@@ -261,8 +261,7 @@ class LineSearchStrongWolfe(LineSearch):
phiprime_alphaj) phiprime_alphaj)
else: else:
# self.logger.error("The line search algorithm (zoom) did not " print("The line search algorithm (zoom) did not converge.")
# "converge.")
return le_alphaj return le_alphaj
def _cubicmin(self, a, fa, fpa, b, fb, c, fc): def _cubicmin(self, a, fa, fpa, b, fb, c, fc):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment