summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Wrappers/Python')
-rw-r--r--Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py b/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py
index 94b0bde..df53e57 100644
--- a/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py
+++ b/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py
@@ -140,18 +140,18 @@ def PDHG_old(f, g, operator, tau = None, sigma = None, opt = None, **kwargs):
y_old = y
# if isinstance(f, FunctionOperatorComposition):
- p1 = f(x) + g(x)
+# p1 = f(x) + g(x)
# else:
-# p1 = f(operator.direct(x)) + g(x)
- d1 = -(f.convex_conjugate(y) + g(-1*operator.adjoint(y)))
- pd1 = p1 - d1
+# p1 = f(operator.direct(x)) + g(x)
+# d1 = -(f.convex_conjugate(y) + g(-1*operator.adjoint(y)))
+# pd1 = p1 - d1
- primal.append(p1)
- dual.append(d1)
- pdgap.append(pd1)
+# primal.append(p1)
+# dual.append(d1)
+# pdgap.append(pd1)
- if i%100==0:
- print(p1, d1, pd1)
+# if i%100==0:
+# print(p1, d1, pd1)
# if isinstance(f, FunctionOperatorComposition):
# p1 = f(x) + g(x)
# else: