diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-10-18 22:29:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 22:29:29 +0100 |
commit | 35fa0c0cdd07fd8a26fb15eae28b5b412007e5ba (patch) | |
tree | a81c3cf1efdc98270b9bc20255490e21365e0d7a /Wrappers | |
parent | d6917048bf92477bc26576b010b076b49b0da1b2 (diff) | |
download | framework-35fa0c0cdd07fd8a26fb15eae28b5b412007e5ba.tar.gz framework-35fa0c0cdd07fd8a26fb15eae28b5b412007e5ba.tar.bz2 framework-35fa0c0cdd07fd8a26fb15eae28b5b412007e5ba.tar.xz framework-35fa0c0cdd07fd8a26fb15eae28b5b412007e5ba.zip |
update Lipschitz constant (#404)
Diffstat (limited to 'Wrappers')
-rwxr-xr-x | Wrappers/Python/ccpi/optimisation/functions/ScaledFunction.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 '''
|