From ee6a80101d7b9227549891efb1326480a9312ea2 Mon Sep 17 00:00:00 2001 From: Daniel Brosch <73886037+DanielBrosch@users.noreply.github.com> Date: Thu, 12 Sep 2024 22:02:22 +0200 Subject: [PATCH] Pseudocode fix in README (#27) Sigma is updated in a do-while loop in SDPLR, so it's always updated at least once. The inequality is the wrong way around, this way it would update forever. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 25b5970..7b6f34f 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,8 @@ while majiter++ < 100_000 if norm(vio) / (norm(b) + 1) <= rho_f || totaltime >= timelim || iter >= 10_000_000 return end - while norm(G) / (norm(C) + 1) > rho_c / sigma + sigma *= 2 + while norm(G) / (norm(C) + 1) < rho_c / sigma sigma *= 2 end lambdaupdate = 0