pub struct AdmmSolver {
pub rho: f64,
pub max_iter: usize,
pub tol: f64,
}Expand description
Alternating Direction Method of Multipliers (ADMM) for problems of the form:
minimise f(x) + g(z)
subject to x = zUses the augmented Lagrangian with penalty parameter rho.
Fields§
§rho: f64Augmented Lagrangian penalty ρ > 0.
max_iter: usizeMaximum number of ADMM iterations.
tol: f64Convergence tolerance on primal and dual residuals.
Implementations§
Source§impl AdmmSolver
impl AdmmSolver
Sourcepub fn solve(
&self,
x_init: Vec<f64>,
x_update: &dyn Fn(&[f64], &[f64], f64) -> Vec<f64>,
z_update: &dyn Fn(&[f64], &[f64], f64) -> Vec<f64>,
) -> AdmmResult
pub fn solve( &self, x_init: Vec<f64>, x_update: &dyn Fn(&[f64], &[f64], f64) -> Vec<f64>, z_update: &dyn Fn(&[f64], &[f64], f64) -> Vec<f64>, ) -> AdmmResult
Solve the consensus ADMM problem.
x_update: solvesargmin_x f(x) + (ρ/2)||x − z + u||².z_update: solvesargmin_z g(z) + (ρ/2)||x − z + u||².
Auto Trait Implementations§
impl Freeze for AdmmSolver
impl RefUnwindSafe for AdmmSolver
impl Send for AdmmSolver
impl Sync for AdmmSolver
impl Unpin for AdmmSolver
impl UnsafeUnpin for AdmmSolver
impl UnwindSafe for AdmmSolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.