![]() |
SOPT
Sparse OPTimisation
|
#include <imaging_padmm.h>
Classes | |
struct | Diagnostic |
Values indicating how the algorithm ran. More... | |
struct | DiagnosticAndResult |
Holds result vector as well. More... | |
Public Types | |
using | value_type = typename PADMM::value_type |
using | Scalar = typename PADMM::Scalar |
using | Real = typename PADMM::Real |
using | t_Vector = typename PADMM::t_Vector |
using | t_LinearTransform = typename PADMM::t_LinearTransform |
using | t_Proximal = typename PADMM::t_Proximal |
using | t_IsConverged = typename PADMM::t_IsConverged |
Public Member Functions | |
template<typename DERIVED > | |
ImagingProximalADMM (Eigen::MatrixBase< DERIVED > const &target) | |
virtual | ~ImagingProximalADMM () |
proximal::L1< Scalar > * | g_proximal () |
SOPT_MACRO (l1_proximal, proximal::L1< Scalar >) | |
Maximum number of iterations. More... | |
SOPT_MACRO (l2ball_proximal, proximal::WeightedL2Ball< Scalar >) | |
The weighted L2 proximal functioning as g. More... | |
SOPT_MACRO (tight_frame, bool) | |
Whether Ψ is a tight-frame or not. More... | |
SOPT_MACRO (residual_tolerance, Real) | |
Convergence of the relative variation of the objective functions. More... | |
SOPT_MACRO (relative_variation, Real) | |
Convergence of the relative variation of the objective functions. More... | |
SOPT_MACRO (residual_convergence, t_IsConverged) | |
Convergence of the residuals. More... | |
SOPT_MACRO (objective_convergence, t_IsConverged) | |
Convergence of the residuals. More... | |
SOPT_MACRO (itermax, t_uint) | |
Maximum number of iterations. More... | |
SOPT_MACRO (regulariser_strength, Real) | |
γ parameter. More... | |
SOPT_MACRO (lagrange_update_scale, Real) | |
Lagrange update scale β More... | |
SOPT_MACRO (is_converged, t_IsConverged) | |
A function verifying convergence. More... | |
SOPT_MACRO (Phi, t_LinearTransform) | |
Measurement operator. More... | |
t_Vector const & | target () const |
Vector of target measurements. More... | |
template<typename DERIVED > | |
ImagingProximalADMM< Scalar > & | target (Eigen::MatrixBase< DERIVED > const &target) |
Sets the vector of target measurements. More... | |
Diagnostic | operator() (t_Vector &out) const |
Calls Proximal ADMM. More... | |
Diagnostic | operator() (t_Vector &out, std::tuple< t_Vector, t_Vector > const &guess) const |
Calls Proximal ADMM. More... | |
Diagnostic | operator() (t_Vector &out, std::tuple< t_Vector const &, t_Vector const & > const &guess) const |
Calls Proximal ADMM. More... | |
DiagnosticAndResult | operator() (std::tuple< t_Vector, t_Vector > const &guess) const |
Calls Proximal ADMM. More... | |
DiagnosticAndResult | operator() (std::tuple< t_Vector const &, t_Vector const & > const &guess) const |
Calls Proximal ADMM. More... | |
DiagnosticAndResult | operator() () const |
Calls Proximal ADMM. More... | |
DiagnosticAndResult | operator() (DiagnosticAndResult const &warmstart) const |
Makes it simple to chain different calls to PADMM. More... | |
ImagingProximalADMM &::type | Phi (ARGS &&... args) |
proximal::L1< Scalar > & | l1_proximal () |
L1 proximal used during calculation. More... | |
proximal::WeightedL2Ball< Scalar > & | l2ball_proximal () |
Proximal of the L2 ball. More... | |
t_LinearTransform const & | Psi () const |
Analysis operator Ψ More... | |
ImagingProximalADMM< Scalar > &::type | Psi (ARGS &&... args) |
SOPT_MACRO (itermax, l1, L1) | |
SOPT_MACRO (tolerance, l1, L1) | |
SOPT_MACRO (positivity_constraint, l1, L1) | |
SOPT_MACRO (real_constraint, l1, L1) | |
SOPT_MACRO (fista_mixing, l1, L1) | |
SOPT_MACRO (nu, l1, L1) | |
SOPT_MACRO (weights, l1, L1) | |
SOPT_MACRO (epsilon, l2ball, WeightedL2Ball) | |
SOPT_MACRO (weights, l2ball, WeightedL2Ball) | |
ImagingProximalADMM< Scalar > & | residual_convergence (Real const &tolerance) |
Helper function to set-up default residual convergence function. More... | |
ImagingProximalADMM< Scalar > & | objective_convergence (Real const &tolerance) |
Helper function to set-up default residual convergence function. More... | |
ImagingProximalADMM< Scalar > & | is_converged (std::function< bool(t_Vector const &x)> const &func) |
Convergence function that takes only the output as argument. More... | |
Definition at line 20 of file imaging_padmm.h.
using sopt::algorithm::ImagingProximalADMM< SCALAR >::Real = typename PADMM::Real |
Definition at line 27 of file imaging_padmm.h.
using sopt::algorithm::ImagingProximalADMM< SCALAR >::Scalar = typename PADMM::Scalar |
Definition at line 26 of file imaging_padmm.h.
using sopt::algorithm::ImagingProximalADMM< SCALAR >::t_IsConverged = typename PADMM::t_IsConverged |
Definition at line 31 of file imaging_padmm.h.
using sopt::algorithm::ImagingProximalADMM< SCALAR >::t_LinearTransform = typename PADMM::t_LinearTransform |
Definition at line 29 of file imaging_padmm.h.
using sopt::algorithm::ImagingProximalADMM< SCALAR >::t_Proximal = typename PADMM::t_Proximal |
Definition at line 30 of file imaging_padmm.h.
using sopt::algorithm::ImagingProximalADMM< SCALAR >::t_Vector = typename PADMM::t_Vector |
Definition at line 28 of file imaging_padmm.h.
using sopt::algorithm::ImagingProximalADMM< SCALAR >::value_type = typename PADMM::value_type |
Definition at line 25 of file imaging_padmm.h.
|
inline |
Setups imaging wrapper for ProximalADMM
[in] | f_proximal | proximal operator of the \(f\) function. |
[in] | g_proximal | proximal operator of the \(g\) function |
Definition at line 55 of file imaging_padmm.h.
|
inlinevirtual |
Definition at line 69 of file imaging_padmm.h.
|
inline |
Definition at line 85 of file imaging_padmm.h.
|
inline |
Convergence function that takes only the output as argument.
Definition at line 241 of file imaging_padmm.h.
Referenced by TEST_CASE().
|
inline |
L1 proximal used during calculation.
Non-const version to setup the object.
Definition at line 184 of file imaging_padmm.h.
Referenced by sopt::algorithm::ImagingProximalADMM< SCALAR >::Psi().
|
inline |
Proximal of the L2 ball.
Non-const version to setup the object.
Definition at line 187 of file imaging_padmm.h.
Referenced by TEST_CASE().
|
inline |
Helper function to set-up default residual convergence function.
Definition at line 237 of file imaging_padmm.h.
|
inline |
Calls Proximal ADMM.
[in] | guess | initial guess |
Definition at line 162 of file imaging_padmm.h.
References sopt::algorithm::ProximalADMM< SCALAR >::initial_guess(), sopt::algorithm::ImagingProximalADMM< SCALAR >::Phi(), sopt::algorithm::ImagingProximalADMM< SCALAR >::target(), and sopt::algorithm::ImagingProximalADMM< SCALAR >::DiagnosticAndResult::x.
Referenced by sopt::algorithm::ImagingProximalADMM< SCALAR >::operator()().
|
inline |
Makes it simple to chain different calls to PADMM.
Definition at line 169 of file imaging_padmm.h.
References sopt::algorithm::ProximalADMM< SCALAR >::Diagnostic::residual, and sopt::algorithm::ImagingProximalADMM< SCALAR >::DiagnosticAndResult::x.
|
inline |
Calls Proximal ADMM.
[in] | guess | initial guess |
Definition at line 154 of file imaging_padmm.h.
References sopt::algorithm::ImagingProximalADMM< SCALAR >::DiagnosticAndResult::x.
|
inline |
Calls Proximal ADMM.
[in] | guess | initial guess |
Definition at line 149 of file imaging_padmm.h.
References sopt::algorithm::ImagingProximalADMM< SCALAR >::operator()().
|
inline |
Calls Proximal ADMM.
[out] | out | Output vector x |
Definition at line 131 of file imaging_padmm.h.
References sopt::algorithm::ProximalADMM< SCALAR >::initial_guess(), sopt::algorithm::ImagingProximalADMM< SCALAR >::operator()(), sopt::algorithm::ImagingProximalADMM< SCALAR >::Phi(), and sopt::algorithm::ImagingProximalADMM< SCALAR >::target().
|
inline |
Calls Proximal ADMM.
[out] | out | Output vector x |
[in] | guess | initial guess |
Definition at line 143 of file imaging_padmm.h.
References sopt::algorithm::ImagingProximalADMM< SCALAR >::operator()().
|
inline |
Calls Proximal ADMM.
[out] | out | Output vector x |
[in] | guess | initial guess |
Definition at line 137 of file imaging_padmm.h.
References sopt::algorithm::ImagingProximalADMM< SCALAR >::operator()().
|
inline |
Definition at line 177 of file imaging_padmm.h.
References sopt::linear_transform().
Referenced by sopt::algorithm::ImagingProximalADMM< SCALAR >::operator()(), and TEST_CASE().
|
inline |
Analysis operator Ψ
Under-the-hood, the object is actually owned by the L1 proximal.
Definition at line 191 of file imaging_padmm.h.
References sopt::algorithm::ImagingProximalADMM< SCALAR >::l1_proximal(), and sopt::proximal::L1< SCALAR >::Psi().
Referenced by TEST_CASE().
|
inline |
Definition at line 194 of file imaging_padmm.h.
References sopt::algorithm::ImagingProximalADMM< SCALAR >::l1_proximal(), and sopt::proximal::L1< SCALAR >::Psi().
|
inline |
Helper function to set-up default residual convergence function.
Definition at line 233 of file imaging_padmm.h.
Referenced by main(), and TEST_CASE().
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | epsilon | , |
l2ball | , | ||
WeightedL2Ball | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | fista_mixing | , |
l1 | , | ||
L1 | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | is_converged | , |
t_IsConverged | |||
) |
A function verifying convergence.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | itermax | , |
l1 | , | ||
L1 | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | itermax | , |
t_uint | |||
) |
Maximum number of iterations.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | l1_proximal | , |
proximal::L1< Scalar > | |||
) |
Maximum number of iterations.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | l2ball_proximal | , |
proximal::WeightedL2Ball< Scalar > | |||
) |
The weighted L2 proximal functioning as g.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | lagrange_update_scale | , |
Real | |||
) |
Lagrange update scale β
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | nu | , |
l1 | , | ||
L1 | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | objective_convergence | , |
t_IsConverged | |||
) |
Convergence of the residuals.
If negative, this convergence criteria is disabled.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | Phi | , |
t_LinearTransform | |||
) |
Measurement operator.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | positivity_constraint | , |
l1 | , | ||
L1 | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | real_constraint | , |
l1 | , | ||
L1 | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | regulariser_strength | , |
Real | |||
) |
γ parameter.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | relative_variation | , |
Real | |||
) |
Convergence of the relative variation of the objective functions.
If negative, this convergence criteria is disabled.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | residual_convergence | , |
t_IsConverged | |||
) |
Convergence of the residuals.
If negative, this convergence criteria is disabled.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | residual_tolerance | , |
Real | |||
) |
Convergence of the relative variation of the objective functions.
If negative, this convergence criteria is disabled.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | tight_frame | , |
bool | |||
) |
Whether Ψ is a tight-frame or not.
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | tolerance | , |
l1 | , | ||
L1 | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | weights | , |
l1 | , | ||
L1 | |||
) |
sopt::algorithm::ImagingProximalADMM< SCALAR >::SOPT_MACRO | ( | weights | , |
l2ball | , | ||
WeightedL2Ball | |||
) |
|
inline |
Vector of target measurements.
Definition at line 121 of file imaging_padmm.h.
Referenced by sopt::algorithm::ImagingProximalADMM< SCALAR >::operator()(), sopt::algorithm::ImagingProximalADMM< SCALAR >::target(), and TEST_CASE().
|
inline |
Sets the vector of target measurements.
Definition at line 124 of file imaging_padmm.h.
References sopt::algorithm::ImagingProximalADMM< SCALAR >::target().