From 35fa0c0cdd07fd8a26fb15eae28b5b412007e5ba Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 18 Oct 2019 22:29:29 +0100 Subject: update Lipschitz constant (#404) --- Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py b/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py index a123e8d..2bf3b25 100755 --- a/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py +++ b/Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py @@ -51,7 +51,7 @@ class ScaledFunction(object): self.function = function if self.function.L is not None: - self.L = self.scalar * self.function.L + self.L = abs(self.scalar) * self.function.L def __call__(self,x, out=None): '''Evaluates the function at x ''' -- cgit v1.2.3