Skip to main content

identify_active_constraints

Function identify_active_constraints 

Source
pub fn identify_active_constraints(
    g: &[Vec<f64>],
    h: &[f64],
    x: &[f64],
    tol: f64,
) -> Vec<usize>
Expand description

Identify active inequality constraints: those where h_i - G_i x ≤ tol (i.e., the slack is near zero).

Returns indices of the active constraints.