pub struct CG { /* private fields */ }Expand description
Conjugate Gradient optimization algorithm
This struct configures the nonlinear conjugate gradient method with Polak-Ribiere+ (PR+) beta and orthogonality-based restarts. It is gradient-only (first-order) and memory-efficient, suitable for large-scale problems.
§Fields
max_steps- Maximum number of optimization steps.gtol- Optional tolerance for gradient norm (stop if ||grad|| < gtol).ftol- Optional tolerance for change in objective value (stop if |f - prev_f| < ftol).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CG
impl RefUnwindSafe for CG
impl Send for CG
impl Sync for CG
impl Unpin for CG
impl UnsafeUnpin for CG
impl UnwindSafe for CG
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