pub struct ConstrainedConfig<T: Float> {
pub max_iterations: usize,
pub max_inner_iterations: usize,
pub constraint_tolerance: T,
pub optimality_tolerance: T,
pub initial_penalty: T,
pub penalty_growth: T,
pub initial_barrier: T,
pub barrier_reduction: T,
pub line_search_tolerance: T,
pub enable_feasibility_restoration: bool,
}Expand description
Configuration for constrained optimization algorithms
Fields§
§max_iterations: usizeMaximum number of outer iterations
max_inner_iterations: usizeMaximum number of inner iterations (for penalty/barrier methods)
constraint_tolerance: TTolerance for constraint violations
optimality_tolerance: TTolerance for optimality conditions
initial_penalty: TInitial penalty parameter
penalty_growth: TPenalty growth factor
initial_barrier: TInitial barrier parameter
barrier_reduction: TBarrier reduction factor
line_search_tolerance: TLine search parameters
enable_feasibility_restoration: boolEnable feasibility restoration
Trait Implementations§
Source§impl<T: Clone + Float> Clone for ConstrainedConfig<T>
impl<T: Clone + Float> Clone for ConstrainedConfig<T>
Source§fn clone(&self) -> ConstrainedConfig<T>
fn clone(&self) -> ConstrainedConfig<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for ConstrainedConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstrainedConfig<T>where
T: RefUnwindSafe,
impl<T> Send for ConstrainedConfig<T>where
T: Send,
impl<T> Sync for ConstrainedConfig<T>where
T: Sync,
impl<T> Unpin for ConstrainedConfig<T>where
T: Unpin,
impl<T> UnwindSafe for ConstrainedConfig<T>where
T: UnwindSafe,
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