diff options
Diffstat (limited to 'Wrappers/Python')
-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 '''
|