The following algorithm appears on p. 152 of Boyd and Parikh's book Proximal Algorithms.

I'd like to know how this was written in Latex, so that I can write my own algorithms in the same style. Which algorithm environment (if any) was used? Can anyone guess how this was written?

enter image description here


I'm afraid no specialized package has been used:




\textbf{given} $y^k$, $\lambda^{k-1}$, and parameter $\beta\in(0,1)$.


Let $\lambda:=\lambda^{k-1}$.


\item Let $z:=\prox_{\lambda g}(y^k-\lambda\nabla f(y^k))$.
\item \textbf{break if} $f(z)\le \hat{f}_\lambda(z,y^k)$.
\item Update $\lambda:=\beta\lambda$.


\textbf{return} $\lambda^k:=\lambda$, $x^{k+1}:= z$.



enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.