pyproximal.optimization.primal.PPXAΒΆ
- pyproximal.optimization.primal.PPXA(proxfs: list[ProxOperator], x0: ndarray[tuple[Any, ...], dtype[_ScalarT]] | list[ndarray[tuple[Any, ...], dtype[_ScalarT]]], tau: float, eta: float = 1.0, weights: ndarray[tuple[Any, ...], dtype[_ScalarT]] | list[float] | None = None, niter: int = 1000, tol: float | None = None, rtol: float | None = None, callback: Callable[[...], None] | None = None, show: bool = False, itershow: tuple[int, int, int] = (10, 10, 10)) ndarray[tuple[Any, ...], dtype[_ScalarT]][source]ΒΆ
Parallel Proximal Algorithm (PPXA)
Solves the following minimization problem using Parallel Proximal Algorithm (PPXA):
\[\mathbf{x} = \argmin_\mathbf{x} \sum_{i=1}^m f_i(\mathbf{x})\]where \(f_i(\mathbf{x})\) are any convex functions that has known proximal operators.
- Parameters:
- proxfs
list A list of proximable functions \(f_1, \ldots, f_m\).
- x0
numpy.ndarrayorlist Initial vector \(\mathbf{x}\) for all \(f_i\) if 1-dimensional array is provided, or initial vectors \(\mathbf{x}_{i}\) for each \(f_i\) for \(i=1,\ldots,m\) if a
listof 1-dimensional arrays or a 2-dimensional array of size(m, d)is provided, wheredis the dimension of \(\mathbf{x}_{i}\).- tau
float Positive scalar weight
- eta
float, optional Relaxation parameter (must be between 0 and 2, 0 excluded).
- weights
numpy.ndarrayorlistorNone, optional Weights \(\sum_{i=1}^m w_i = 1, \ 0 < w_i < 1\), Defaults to None, which means \(w_1 = \cdots = w_m = \frac{1}{m}.\)
- niter
int, optional Number of iterations of iterative scheme.
- tol
float, optional Tolerance on change of objective function (used as stopping criterion). If
tol=None, run untilniteris reached- rtol
float, optional Relative tolerance on objective function wrt initial value. Stops the solver when the ratio of the current objective function to the initial objective function is below this value. If
rtol=None, run untilniteris reached or the other tolerance criterion is met- callback
callable, optional Function with signature (
callback(x)) to call after each iteration wherexis the current model vector- show
bool, optional Display iterations log
- itershow
tuple, optional Display set log for the first N1 steps, last N2 steps, and every N3 steps in between where N1, N2, N3 are the three element of the list.
- proxfs
- Returns:
- x
numpy.ndarray Inverted model
- x
See also
ConsensusADMMConsensus ADMM
Notes