Skip to main content
← OpenMECP Documentation

select_blend_step

Function select_blend_step 

Source
pub fn select_blend_step(
    blend_state: &OptimizationState_blend,
    config: &Config,
    step: usize,
) -> DVector<f64>
Expand description

Dispatcher for the blend experiment methods.

Routes to the correct blend step function based on config:

Uses blend_state.trust_radius for dynamic step control (initialized from config.max_step_size), enabling trust-region adaptation via adjust_trust_radius.

§Arguments

  • blend_state - Blend optimization state (immutable borrow).
  • config - Configuration including step size and threshold parameters.
  • step - Current optimization step number (for display).

§Returns

The predicted new geometry.