From 5eda2024b92a7364a279b99a4dc1fe1780882739 Mon Sep 17 00:00:00 2001 From: jorgensd Date: Thu, 11 Jan 2018 17:37:37 +0100 Subject: [PATCH] Added missing stp_max adjuster of steplength --- moola/linesearch/armijo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moola/linesearch/armijo.py b/moola/linesearch/armijo.py index 379f658..fe426b4 100644 --- a/moola/linesearch/armijo.py +++ b/moola/linesearch/armijo.py @@ -55,6 +55,8 @@ def _adapt(self, it): self.start_stp *= 2 if it >=2: self.start_stp /= 2 + if self.start_stp >= self.stpmax: + self.start_stp /=4 def search(self, phi, phi_dphi, phi_dphi0): ''' Performs the line search on the function phi.