diff options
Diffstat (limited to 'Wrappers/Python/ccpi/optimisation/algorithms/FISTA.py')
-rwxr-xr-x | Wrappers/Python/ccpi/optimisation/algorithms/FISTA.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/FISTA.py b/Wrappers/Python/ccpi/optimisation/algorithms/FISTA.py index 347dacd..e23116b 100755 --- a/Wrappers/Python/ccpi/optimisation/algorithms/FISTA.py +++ b/Wrappers/Python/ccpi/optimisation/algorithms/FISTA.py @@ -73,7 +73,8 @@ class FISTA(Algorithm): self.f = f self.g = g - + if f.L is None: + raise ValueError('Error: Fidelity Function\'s Lipschitz constant is set to None') self.invL = 1/f.L self.t = 1 self.update_objective() |