Skip to content

Commit

Permalink
Pseudocode fix in README
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DanielBrosch authored Sep 12, 2024
1 parent df6d761 commit 3156eb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3156eb1

Please sign in to comment.